[gambit-list] problem compiling gambit

Gabriel Filion Gabriel.Filion at gmx.net
Tue May 29 02:13:39 EDT 2007


Hello,

 I have a problem compiling gambit, it says a definition in unistd.h
redefines something.


gabster at barbiche:~/local/gambc-4.0b22$ ./configure
--prefix=/home/gabster/local/gambit/ --enable-single-host --enable-cplusplus
[ ... ]

gabster at barbiche:~/local/gambc-4.0b22$ make
making all in include
make[1]: Entering directory `/home/gabster/local/gambc-4.0b22/include'
make[1]: Leaving directory `/home/gabster/local/gambc-4.0b22/include'
making all in lib
make[1]: Entering directory `/home/gabster/local/gambc-4.0b22/lib'
g++ -I../include -I. -Wall -W -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fexpensive-optimizations -fforce-addr -fpeephole2 -falign-jumps
-falign-functions -fno-function-cse -ftree-copyrename -ftree-fre
-ftree-dce -fregmove -fgcse-las -freorder-functions -fcaller-saves
-fno-if-conversion2 -foptimize-sibling-calls -fcse-skip-blocks
-funit-at-a-time -finline-functions -fomit-frame-pointer -fPIC
-fno-common -mieee-fp -DHAVE_CONFIG_H -D___PRIMAL -D___LIBRARY
-D___GAMBCDIR=\"/home/gabster/local/gambit//4.0b22\" -c _io.c
g++ -I../include -I. -Wall -W -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fexpensive-optimizations -fforce-addr -fpeephole2 -falign-jumps
-falign-functions -fno-function-cse -ftree-copyrename -ftree-fre
-ftree-dce -fregmove -fgcse-las -freorder-functions -fcaller-saves
-fno-if-conversion2 -foptimize-sibling-calls -fcse-skip-blocks
-funit-at-a-time -finline-functions -fomit-frame-pointer -fPIC
-fno-common -mieee-fp -DHAVE_CONFIG_H -D___PRIMAL -D___LIBRARY
-D___GAMBCDIR=\"/home/gabster/local/gambit//4.0b22\" -c _num.c
g++ -I../include -I. -Wall -W -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fexpensive-optimizations -fforce-addr -fpeephole2 -falign-jumps
-falign-functions -fno-function-cse -ftree-copyrename -ftree-fre
-ftree-dce -fregmove -fgcse-las -freorder-functions -fcaller-saves
-fno-if-conversion2 -foptimize-sibling-calls -fcse-skip-blocks
-funit-at-a-time -finline-functions -fomit-frame-pointer -fPIC
-fno-common -mieee-fp -DHAVE_CONFIG_H -D___PRIMAL -D___LIBRARY
-D___GAMBCDIR=\"/home/gabster/local/gambit//4.0b22\" -c _std.c
os.h:537: error: previous declaration of ‘char** environ’ with ‘C++’ linkage
/usr/include/unistd.h:500: error: conflicts with new declaration with
‘C’ linkage
make[1]: *** [_std.o] Error 1
make[1]: Leaving directory `/home/gabster/local/gambc-4.0b22/lib'
make: *** [all-recursive] Error 1


am I missing some library or anything else? I just reinstalled my
computer and before doing so, I was able to compile gambit-4.0b22 with
the same options to configure without a problem.

-- 
Gabriel Filion



More information about the Gambit-list mailing list