bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] Re: Installing 4.2 on Mac OS X


From: Andrew Makhorin
Subject: [Bug-glpk] Re: Installing 4.2 on Mac OS X
Date: Fri, 12 Dec 2003 13:04:40 +0300

>There seems to be a bug in 4.2. configure works fine but make stops
>with the following:
>
>----------------------------------
>
>[andre2:~/optimization/glpk-4.2] andrgira% make
>Making all in include
>make[1]: Nothing to be done for `all'.
>Making all in src
>gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.2\" -DSTDC_HEADERS=1  -I. -I.  
>-I../include    -g -O2 -c glpmps.c
>glpmps.c:319: illegal member reference, found `('
>glpmps.c:324: illegal member reference, found `('
>cpp-precomp: warning: errors during smart preprocessing, retrying in 
>basic mode
>glpmps.c: In function `read_card':
>glpmps.c:319: parse error before '(' token
>glpmps.c:319: parse error before ')' token
>glpmps.c:324: parse error before '(' token
>glpmps.c:324: parse error before ')' token
>glpmps.c: At top level:
>glpmps.c:331: parse error before "if"
>glpmps.c:342: parse error before '->' token
>make[1]: *** [glpmps.o] Error 1
>make: *** [all-recursive] Error 1
>
>------------------------------------
>
>The installation of 4.1 worked like a charm.
>
>System is Mac OS X 10.2.8
>
>Compiler is
>
>-------------------------------------
>[andre2:~/optimization/glpk-4.2] andrgira% gcc -v
>Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
>Thread model: posix
>Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 
>20020420 (prerelease)
>--------------------------------------

Thank you very much for your bug report!

I have no access to macos, so I cannot attain the bug to appear. Most
probably there is something wrong in standard macros feof and ferror
(stdio.h), because the preprocessing errors happen only in lines 319
and 324 where feof and ferror are used. I believe there is a conflict
between system macros and macros defined in glpmps.c.

Please replace glpmps.c by a patched one I am posting (see the
attachment) before compiling the package. The error must disappear.

Note that there is another bug detected in the version 4.2. To avoid it
you need to use 'make LIBS=-lm ...' rather than just 'make ...'. For
more details see:
<http://mail.gnu.org/archive/html/help-glpk/2003-11/msg00015.html>.

Andrew Makhorin

Attachment: glpmps.c.gz
Description: GNU Zip compressed data


reply via email to

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