|Title||Linux build fails.|
|Assigned user||David Jones|
|Description||Linux build fails.|
On the current master (change level 161906), I get:
cc1: warnings being treated as errors
pthrdext.c: In function ‘PThreadextSuspend’:
pthrdext.c:332: warning: implicit declaration of function
pthrdext.c:332: warning: nested extern declaration of
make: *** [lii4gc/hi/pthrdext.o] Error 1
make: *** [target] Error 2
make: *** [amcss] Error 2
(Yes, I really did get those funny characters, they appeared as
typographically correct open- and close- single quotes. The spacing
was wrong, naturally).
I'm running on Fedora Core 6 on a Parallels VM:
$ uname -a
Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16
14:54:20 EDT 2006 i686 i686 i386 GNU/Linux
|Analysis||Looks like some #include or open-sesame magic I guess.|
Seems that more recent version of linux are more careful with their
open-sesame magic. In particular "#define _POSIX_C_SOURCE 1 " is not
sufficient to get a declaration of pthread_kill from <signal.h>.
Fixed by changing POSIX_C_SOURCE 1 to _XOPEN_SOURCE 500 (to claim that
we want X/Open XSH5 conformance).
|Created by||David Jones|
|Created on||2007-03-09 11:38:28|
|Last modified by||David Jones|
|Last modified on||2007-03-09 12:34:59|
|History||2007-03-09 DRJ Created.|
2007-03-09 DRJ Analysed. Fixed.
|161907||closed||2007-03-09 12:31:34||David Jones||MPS: Fixing linux builds. Recent Linuxes are more careful with their open-sesame magic.|