[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 04:36:05 PDT 2009


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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 




More information about the FreeSWITCH-users mailing list