[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 02:47:43 PDT 2009


Hi All,

I get past this initial error if I change my C compiler from 
"usr/bin/cc" to "/usr/bin/c99".

After changing the above, the compilation goes further, but I am now 
faced with a different error:

---
/bin/bash 
/export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/libtool 
--silent --mode=compile /usr/bin/c99   -m32 -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 threadproc/unix/signals.lo -c threadproc/unix/signals.c && touch 
threadproc/unix/signals.lo
"threadproc/unix/signals.c", line 48: warning: implicit function 
declaration: kill
"threadproc/unix/signals.c", line 76: incomplete struct/union/enum 
sigaction: act
"threadproc/unix/signals.c", line 78: undefined struct/union member: 
sa_handler
"threadproc/unix/signals.c", line 78: warning: improper pointer/integer 
combination: op "="
"threadproc/unix/signals.c", line 79: warning: implicit function 
declaration: sigemptyset
"threadproc/unix/signals.c", line 79: undefined struct/union member: sa_mask
"threadproc/unix/signals.c", line 80: undefined struct/union member: 
sa_flags
"threadproc/unix/signals.c", line 103: warning: implicit function 
declaration: sigaction
"threadproc/unix/signals.c", line 105: improper member use: sa_handler
"threadproc/unix/signals.c", line 105: warning: improper pointer/integer 
combination: op "="
"threadproc/unix/signals.c", line 277: warning: implicit function 
declaration: sigdelset
"threadproc/unix/signals.c", line 327: warning: implicit function 
declaration: sigfillset
"threadproc/unix/signals.c", line 424: warning: implicit function 
declaration: pthread_sigmask
"threadproc/unix/signals.c", line 443: warning: implicit function 
declaration: sigaddset
c99: acomp failed for threadproc/unix/signals.c
make[2]: *** [threadproc/unix/signals.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
---

Any hints towards a solution would be appreciated.

Thanks
Bruce

Bruce McAlister wrote:
> 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
> 




More information about the FreeSWITCH-users mailing list