[Freeswitch-users] Solaris 10 build fails with "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"

Bruce McAlister bruce.mcalister at blueface.ie
Wed Jun 3 00:16:01 PDT 2009


Hi All,

I am trying to build FS 1.0.4pre8 for Solaris 10 (Update 5), however the 
build fails with the following error:

/bin/bash 
/export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/libtool 
--silent --mode=compile /usr/bin/cc -g   -DHAVE_CONFIG_H -DSOLARIS2=10 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE 
-I./include 
-I/export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/include/arch/unix 
-I./include/arch/unix 
-I/export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/include 
  -o locks/unix/thread_mutex.lo -c locks/unix/thread_mutex.c && touch 
locks/unix/thread_mutex.lo
"/usr/include/sys/feature_tests.h", line 336: #error: "Compiler or 
options invalid; UNIX 03 and POSIX.1-2001 applications       require the 
use of c99"
cc: acomp failed for locks/unix/thread_mutex.c
make[2]: *** [locks/unix/thread_mutex.lo] Error 1
make[2]: Leaving directory 
`/export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr'
make: *** [libs/apr/libapr-1.la] Error 2

I have the JDS-CBE build environment setup as recommended on the wiki 
with Sun Studio 12 compiler suite installed as well.

I have tried building using Sun's compiler and GNU compiler but I get 
the same error message.

I just recently tried "bootstrap.sh" prior to "configure", "make" but 
the error is still the same.

Would someone have any suggestions for me to try to get around this?

Thanks
Bruce




More information about the FreeSWITCH-users mailing list