bugGNU Octave - Bugs: bug #57000, [octave forge] (strings)...

 
 

bug #57000: [octave forge] (strings) Compilation failure

Submitted by:  Rafael Laboissiere <rlaboiss>
Submitted on:  Sat 05 Oct 2019 04:21:49 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  other Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 Sep 2020 07:00:17 PM UTC, comment #3: 

This error is still present on Octave 7.0.0 (hg id 903fe321649b).

octave:21> clc; pkg install -forge strings
error: 'octave_config_info' undefined near line 1, column 1
pcregexp.cc:51:9: warning: 'error_state' is deprecated [-Wdeprecated-declarations]
    if (error_state) {
        ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
pcregexp.cc:52:9: error: use of undeclared identifier 'gripe_wrong_type_arg'; did you mean 'err_wrong_type_arg'?
        gripe_wrong_type_arg("pcregexp", args(0));
        ^~~~~~~~~~~~~~~~~~~~
        err_wrong_type_arg
/usr/local/include/octave-7.0.0/octave/errwarn.h:119:1: note: 'err_wrong_type_arg' declared here
err_wrong_type_arg (const char *name, const octave_value& tc);
^
1 warning and 1 error generated.
make: *** [Makefile:11: pcregexp.oct] Error 1
make: Entering directory '/tmp/oct-Ec7W2T/strings-1.2.0/src'
/usr/local/bin/mkoctfile-7.0.0  -o pcregexp.oct pcregexp.cc
make: Leaving directory '/tmp/oct-Ec7W2T/strings-1.2.0/src'

error: pkg: error running 'make' for the strings package.
error: called from
    configure_make at line 110 column 9
    install at line 196 column 7
    pkg at line 568 column 9

Anonymous
Mon 07 Oct 2019 08:23:22 AM UTC, comment #2: 

Bug #55385 is not really a duplicate but it does fix the gripe_* compilation problem with Octave 5.1.0. Time to make a new release of the strings package?

Rafael Laboissiere <rlaboiss>
Sun 06 Oct 2019 11:23:33 PM UTC, comment #1: 

 A duplicate I think of https://savannah.gnu.org/bugs/?55385 which has a patch to check which function to use so will work in older versions of octave as well.

John Donoghue <lostbard>
Project Member
Sat 05 Oct 2019 04:21:49 PM UTC, original submission:  

Compilation of the strings package fails with Octave 5.1.0:

/usr/bin/mkoctfile --verbose  -o pcregexp.oct pcregexp.cc
g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-5.1.0/octave/.. -I/usr/include/octave-5.1.0/octave  -pthread -fopenmp -g -O2 -fdebug-prefix-map=/var/data/rlaboiss/debian/PKGS/octave-strings/oc
tave-strings=. -fstack-protector-strong -Wformat -Werror=format-security    pcregexp.cc -o /tmp/oct-FyqcIR.o
pcregexp.cc: In function ‘octave_value_list Fpcregexp(const octave_value_list&, int)’:
pcregexp.cc:52:9: error: ‘gripe_wrong_type_arg’ was not declared in this scope; did you mean ‘err_wrong_type_arg’?
   52 |         gripe_wrong_type_arg("pcregexp", args(0));
      |         ^~~~~~~~~~~~~~~~~~~~
      |         err_wrong_type_arg
make[1]: *** [Makefile:11: pcregexp.oct] Error 1

The patch attached to this bug report fixes the problem.

Rafael Laboissiere <rlaboiss>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by lostbard (Adding package mantainer)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-23 siko1056 StatusNone => Confirmed
        Summary[octave forge] (strings) Compilation faiure against Octave 5.1.0 => [octave forge] (strings) Compilation failure
    2019-10-07 lostbard Carbon-Copy- => Added oheim
    2019-10-05 rlaboiss Attached File- => Added err-instead-of-gripes.patch, #47619

    Back to the top


    Powered by Savane 3.5