bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-glpk] GLPK 4.14 : Build error on Linux/GNU system


From: Jonathan Guiton
Subject: [Bug-glpk] GLPK 4.14 : Build error on Linux/GNU system
Date: Wed, 28 Feb 2007 03:34:14 +0300

The package wouldn #39;t compile due to missing include file in glplib05.c 
halting with the 
following error message. NULL undeclared due to missing include file. Works 
fine if
<stddef.h> is included in the appropriate branches of #if ... #elif...#else 
(windows branch
untested) 

gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.14\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1  -I. 
-I.  -I../include    -g -O2 -c glplib05.c
glplib05.c: In function '_glp_lib_get_time':
glplib05.c
:94: error: 'NULL' undeclared (first use in this function)
glplib05.c:94: error: (Each undeclared identifier is reported only once
glplib05.c:94: error: for each function it appears in.)
make[1]: *** [glplib05.o] Error 1
make[1]: Leaving directory `/usr/src/glpk-4.14/src #39;
make: *** [all-recursive] Error 1

Works fine if <stddef.h> is included in the appropriate branches of #if ... 
#elif...#else (windows branch
untested). The following patch correcrts this (also included as attachment)

------------------------start------------------------
84a85
> #include <stddef.h>
102a104
> #include <stddef.h
>
-------------------------end-------------------------

Hope this helps. 

Jon 


 
The package wouldn't compile due to missing include file in glplib05.c halting with the
following error message. NULL undeclared due to missing include file. Works fine if
<stddef.h> is included in the appropriate branches of #if ... #elif...#else (windows branch
untested)

gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.14\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1  -I. -I.  -I../include    -g -O2 -c glplib05.c
glplib05.c: In function '_glp_lib_get_time':
glplib05.c :94: error: 'NULL' undeclared (first use in this function)
glplib05.c:94: error: (Each undeclared identifier is reported only once
glplib05.c:94: error: for each function it appears in.)
make[1]: *** [glplib05.o] Error 1
make[1]: Leaving directory `/usr/src/glpk-4.14/src'
make: *** [all-recursive] Error 1

Works fine if <stddef.h> is included in the appropriate branches of #if ... #elif...#else (windows branch
untested). The following patch correcrts this (also included as attachment)

------------------------start------------------------
84a85
> #include <stddef.h>
102a104
> #include <stddef.h >
-------------------------end-------------------------

Hope this helps.

Jon


Attachment: patchfile
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]