I found some bug items on SunSolve. None of them are really clear though. Compilation failed with : "/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid only in a c99 compilation environment." I added "-xc99" to CFLAGS. extract from the cc man : -xc99[=o] The -xc99 flag controls compiler recognition of the implemented features from the C99 standard (ISO/IEC 9899:1999, Programming Language - C). o can be a comma separated list comprised of the fol- lowing: Value Meaning [no]_lib [Do not] Enable the 1999 C standard library semantics of routines that appeared in both the 1990 and 1999 C standard. all Turn on recognition of supported C99 language features and enable the 1999 C standard library semantics of routines that appear in both the 1990 and 1999 C standard. none Turn off recognition of C99 language features, and do not enable the 1999 C standard library semantics of routines that appeared in both the 1990 and 1999 C standard. If you do not specify -xc99, the compiler defaults to -xc99=all,no_lib. If you specify -xc99 without any values, the option is set to -xc99=all. (cc: Sun C 5.9 SunOS_sparc Patch 124867-02 2007/11/27) Nicolas
Could somebody tell me which file I have to modify to fix this bug ?
(In reply to comment #1) > Could somebody tell me which file I have to modify to fix this bug ? > You mean how to automatically add -xc99 to the CFLAGS when configure detects the Sun compiler?
(In reply to comment #2) > > Could somebody tell me which file I have to modify to fix this bug ? > > > You mean how to automatically add -xc99 to the CFLAGS when configure > detects the Sun compiler? Definitively.
we have several machines which build samba on sparc with the sun studio compiler. if this bug still is valid for you with samba 3.4.3 or later please reopen and attach the config.log produced by configure.