[gambit-list] Compiling Gambit on Solaris 10
Marc Feeley
feeley at iro.umontreal.ca
Tue Jun 30 14:02:33 EDT 2009
Some people have reported that Gambit does not compile "out of the
box" on Solaris 10 with gcc. The error message output by gcc when
compiling Gambit is the following:
In file included from /usr/include/sys/wait.h:24,
from os.h:998,
from _std.c:2273:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
...
It appears that the problem is caused by an improperly installed gcc
(compiled on Solaris 9 and incompatible with the new header files in
Solaris 10). The problem with gcc is discussed here:
http://forums.sun.com/thread.jspa?threadID=5077618
A permanent solution is to recompile and reinstall gcc on Solaris 10
(as explained in the link above). A temporary solution is to use the
following configure command:
% ./configure CC="gcc -Dctid_t=id_t -Dzoneid_t=id_t"
What this does is to define the ctid_t and zoneid_t types used by the
Solaris 10 sys/wait.h file (these types did not exist in Solaris 9).
There is another problem with the Gambit makefiles on Solaris (the use
of a GNU extension to the sed utility). The fix has been pushed to
Gambit's git repository.
Marc
More information about the Gambit-list
mailing list