[SR-Users] Build Error for v3.0.0-rc2 (2009-12-03_3ed668) on Solaris

Bruce McAlister bruce.mcalister at blueface.ie
Thu Dec 3 17:21:17 CET 2009


Hi All,

I am trying to build Kamailio v3.0.0 RC2 on Solaris 10 (note: *not*
OpenSolaris), but I have been faced with a couple issues I hope you can
help me with.

The first issue has to do with GNU as (/usr/sfw/bin/gas), there appears
to be a check somewhere for what I assume to be the version number of
the GNU assembler. When the make is running "/usr/sfw/bin/gas -V" it
just hangs at this point with the following output from make:

----
make prefix=/opt/kamailio
Makefile:248: config.mak: No such file or directory
normal Makefile.defs exec
target architecture <i386>, host architecture <x86_64>
----

I did a process listing and noticed the  following process waiting:

1719  make prefix=/opt/kamailio
  1763  /bin/sh -c if [ -z "/usr/sfw/bin/gas" ] ; then echo "as" ; else
if /usr/sfw/bin
    1764  /usr/sfw/bin/gas -V

I ended up making a wrapper script that just output the version
information for "/usr/sfw/bin/gas -V" which let me get a little further.
The wrapper script looks as follows:

----
#/bin/ksh


if [ "$1" = "-V" ]; then
  echo "GNU assembler version 2.15 (i386-pc-solaris2.10) using BFD
version 2.15"
  exit
else
  /usr/sfw/bin/gas.bin $@
fi
----

However, when I now try a "make prefix=/opt/kamailio" I am faced with
the following error:

----
gcc: installation problem, cannot exec `/usr/sfw/bin/gas': Exec format error
----

The complete output of the make is as follows:

----
make prefix=/opt/kamailio
Makefile:248: config.mak: No such file or directory
normal Makefile.defs exec
target architecture <i386>, host architecture <x86_64>
making config...
yacc -d -b cfg cfg.y
conflicts: 5 shift/reduce
flex cfg.lex
Makefile.defs defs skipped
/usr/sfw/bin/gcc -g -O9 -funroll-loops -Wcast-align -m32
-minline-all-stringops -falign-loops -mtune=athlon -Wall
-DNAME='"kamailio"' -DVERSION='"3.0.0-rc2"' -DARCH='"i386"'
-DOS='solaris_' -DOS_QUOTED='"solaris"' -DCOMPILER='"/usr/sfw/bin/gcc
3.4.3"' -D__CPU_i386 -D__OS_solaris -DSER_VER=3000000
-DCFG_DIR='"/opt/kamailio/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP
-DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER
-DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS
-DSTATISTICS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DCC_GCC_LIKE_ASM -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H
-DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL
-DHAVE_SELECT -DHAVE_FILIO_H   -c action.c -o action.o
gcc: installation problem, cannot exec `/usr/sfw/bin/gas': Exec format error
make: *** [action.o] Error 1
----

If I remove the wrapper script then the make just hangs on the command
"/usr/sfw/bin/gas -V".

Would anyone know how I could work around the issue?

Just an FYI, I am able to build Kamailio 1.5.2-notls on the same machine
without any errors/hangs, although we are considering moving to Kamailio
3/Sip-Router when it is officially released, this is why I am trying to
build v3.0.0 RC2 at the moment.

If you need any further information please dont hesitate to ask, any
help in resolving the issue would be greatly appreciated.

Thanks
Bruce




More information about the sr-users mailing list