bugGNU Octave - Bugs: bug #43509, Compilation stop, because of...

 
 

bug #43509: Compilation stop, because of undefined 'gets'

Submitter:  John <jcoppens>
Submitted:  Fri 31 Oct 2014 04:04:21 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  John Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 Oct 2014 04:36:06 PM UTC, comment #1: 

Sorry! This was caused by one of the modules having been compiled with the previous version of glibc, it seems. A distclean and reconfigure seem to have solved this.

I'll try to find how to close this. Else someone, please!

John <jcoppens>
Fri 31 Oct 2014 04:04:21 PM UTC, original submission:  

Compilation stops with this message:


libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I./array -I./cruft/misc -Inumeric -I./numeric -Ioperators -I./operators -I./system -I./util -I../libgnu -I../libgnu -I./cruft/Faddeeva -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -MT numeric/numeric_libnumeric_la-randgamma.lo -MD -MP -MF numeric/.deps/numeric_libnumeric_la-randgamma.Tpo -c numeric/randgamma.c  -fPIC -DPIC -o numeric/.libs/numeric_libnumeric_la-randgamma.o
In file included from /usr/include/sys/types.h:219:0,
                 from ../libgnu/sys/types.h:27,
                 from ../libgnu/stdio.h:58,
                 from numeric/randgamma.c:84:
../libgnu/stdio.h:1034:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
make[4]: *** [numeric/numeric_libnumeric_la-randgamma.lo] Error 1
make[4]: Leaving directory `/usr/local/src/system/octave-3.8.2/liboctave'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/system/octave-3.8.2/liboctave'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/system/octave-3.8.2/liboctave'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/system/octave-3.8.2'
make: *** [all] Error 2


Again, no expert. But could it be that if gets isn't defined in the stdio lib, then this warning fails?

I could not find any instance of an actual use of gets in the code. I suspect this error shouldn't be triggered?

I also checked the configure log, and it says gets is not defined without a macro.

John <jcoppens>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jcoppens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-31 carandraug StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code