Solaris 10 build fails with "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
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
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
Bruce McAlister <bruce.mcalister@blueface.ie> wrote:
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:
Have you tried compiling with gcc? I would also suggest starting the build procedure from the beginning.
Hi Jason, If I try to compile with GCC, then I am faced with the original problem where the error returns saying I need to use a c99 compatible compiler, here is the specific error: /bin/bash /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/libtool --silent --mode=compile /usr/sfw/bin/gcc -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 locks/unix/thread_mutex.lo -c locks/unix/thread_mutex.c && touch locks/unix/thread_mutex.lo In file included from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/sys/types.h:27, from ./include/apr.h:113, from /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/include/arch/unix/apr_arch_thread_mutex.h:24, from locks/unix/thread_mutex.c:17: /usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99" 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 In all cases I have started the build from the beginning, whereby I remove and re-extract the 1.0.4pre8 tarball. I've tried with just a configure and also a bootstrap/configure, but I end up with the same error (except when I change the compiler to Sun Studio 12's c99). Is GCC 3.4.3 too old to use to build this version of freeswitch? Thanks Bruce Jason White wrote:
Bruce McAlister <bruce.mcalister@blueface.ie> wrote:
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:
Have you tried compiling with gcc? I would also suggest starting the build procedure from the beginning.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi All, Any pointers or suggestions on this issue would be greatly appreciated. PS: I tried compiling several version of FreeSWITCH to see if I encounter the same issue, I have varying results. Version 1.0 compiles fine, version 1.0.2 fails and 1.0.3RC1/1.0.3 builds fine. But this error message is new in version 1.0.4preX. I've not tried any older pre-releases of 1.0.4 though. Thanks Bruce Thanks Bruce
/bin/bash /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/libtool --silent --mode=compile /usr/sfw/bin/gcc -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 locks/unix/thread_mutex.lo -c locks/unix/thread_mutex.c && touch locks/unix/thread_mutex.lo In file included from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/sys/types.h:27, from ./include/apr.h:113, from /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/include/arch/unix/apr_arch_thread_mutex.h:24, from locks/unix/thread_mutex.c:17: /usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99" 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
In all cases I have started the build from the beginning, whereby I remove and re-extract the 1.0.4pre8 tarball. I've tried with just a configure and also a bootstrap/configure, but I end up with the same error (except when I change the compiler to Sun Studio 12's c99).
Is GCC 3.4.3 too old to use to build this version of freeswitch?
if you could nail down a specific svn revision that causes this issue and file a jira at http://jira.freeswitch.org that would be a big help in resolving this issue. Mike On Jun 3, 2009, at 3:43 PM, Bruce McAlister wrote:
Hi All,
Any pointers or suggestions on this issue would be greatly appreciated.
PS: I tried compiling several version of FreeSWITCH to see if I encounter the same issue, I have varying results. Version 1.0 compiles fine, version 1.0.2 fails and 1.0.3RC1/1.0.3 builds fine. But this error message is new in version 1.0.4preX. I've not tried any older pre-releases of 1.0.4 though.
Thanks Bruce
Thanks Bruce
/bin/bash /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/ libtool --silent --mode=compile /usr/sfw/bin/gcc -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 locks/unix/thread_mutex.lo -c locks/unix/thread_mutex.c && touch locks/unix/thread_mutex.lo In file included from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/sys/types.h:27, from ./include/apr.h:113, from /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/ include/arch/unix/apr_arch_thread_mutex.h:24, from locks/unix/thread_mutex.c:17: /usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99" 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
In all cases I have started the build from the beginning, whereby I remove and re-extract the 1.0.4pre8 tarball. I've tried with just a configure and also a bootstrap/configure, but I end up with the same error (except when I change the compiler to Sun Studio 12's c99).
Is GCC 3.4.3 too old to use to build this version of freeswitch?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Mike, As per request, here is the build status of 1.0.4preX for me: 1.0.4pre2 compile successful 1.0.4pre3 compile successful 1.0.4pre4 compile successful 1.0.4pre5 compile successful 1.0.4pre6 compile successful 1.0.4pre7 compile successful 1.0.4pre8 compile fails I have used the same spec file for each build so the build environment is identical for each. I have filed a jira at: http://jira.freeswitch.org/browse/FSBUILD-169 Thanks Bruce Michael Jerris wrote:
if you could nail down a specific svn revision that causes this issue and file a jira at http://jira.freeswitch.org that would be a big help in resolving this issue.
Mike
On Jun 3, 2009, at 3:43 PM, Bruce McAlister wrote:
Hi All,
Any pointers or suggestions on this issue would be greatly appreciated.
PS: I tried compiling several version of FreeSWITCH to see if I encounter the same issue, I have varying results. Version 1.0 compiles fine, version 1.0.2 fails and 1.0.3RC1/1.0.3 builds fine. But this error message is new in version 1.0.4preX. I've not tried any older pre-releases of 1.0.4 though.
Thanks Bruce
Thanks Bruce
/bin/bash /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/ libtool --silent --mode=compile /usr/sfw/bin/gcc -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 locks/unix/thread_mutex.lo -c locks/unix/thread_mutex.c && touch locks/unix/thread_mutex.lo In file included from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/sys/types.h:27, from ./include/apr.h:113, from /export/home/user/packages/BUILD/freeswitch-1.0.4pre8/libs/apr/ include/arch/unix/apr_arch_thread_mutex.h:24, from locks/unix/thread_mutex.c:17: /usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99" 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
In all cases I have started the build from the beginning, whereby I remove and re-extract the 1.0.4pre8 tarball. I've tried with just a configure and also a bootstrap/configure, but I end up with the same error (except when I change the compiler to Sun Studio 12's c99).
Is GCC 3.4.3 too old to use to build this version of freeswitch?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Bruce McAlister
-
Jason White
-
Michael Jerris