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
On Donnerstag, 3. Dezember 2009, Bruce McAlister wrote:
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: [..] If you need any further information please dont hesitate to ask, any help in resolving the issue would be greatly appreciated.
Hello Bruce,
it seems that Andrei did a few solaris specific fixes recently, this one 0f7ec046ce88202 - makefile: fix assembler detection on solaris
Assembler test waited forever for input (missing /dev/null input redirection for as -V).
looks at it fits to your problem. This is probably not yet included in the - rc2 version, perhaps you can try the sr_3.0 branch until it a new -rc has been releases.
Regards,
Henning
Henning Westerholt wrote:
it seems that Andrei did a few solaris specific fixes recently, this one 0f7ec046ce88202 - makefile: fix assembler detection on solaris
Assembler test waited forever for input (missing /dev/null input redirection for as -V).
looks at it fits to your problem. This is probably not yet included in the -rc2 version, perhaps you can try the sr_3.0 branch until it a new -rc has been releases.
Hi Henning,
Thanks for the quick response. Is there a link on the SIP Router home page that has the steps on how to check out the sr_3.0 branch?
Once I know how to get the version you are refering to I will test it out.
Thanks Bruce
The fixes should already be in the daily tarballs http://sip-router.org/tarballs/sr/sr_3.0/
regards klaus
Henning Westerholt wrote:
On Donnerstag, 3. Dezember 2009, Bruce McAlister wrote:
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: [..] If you need any further information please dont hesitate to ask, any help in resolving the issue would be greatly appreciated.
Hello Bruce,
it seems that Andrei did a few solaris specific fixes recently, this one 0f7ec046ce88202 - makefile: fix assembler detection on solaris
Assembler test waited forever for input (missing /dev/null input redirection for as -V).
looks at it fits to your problem. This is probably not yet included in the -rc2 version, perhaps you can try the sr_3.0 branch until it a new -rc has been releases.
Regards,
Henning
sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Klaus,
Thanks. I have downloaded the following version of SIPRouter:
ser-2.99.99-pre3_src_2009-12-03_ca351a
Now I dont have the problem with /usr/sfw/bin/gas anymore, however I do have a different error now which I will put together in a separate email.
Thanks all for your help.
Thanks Bruce
Klaus Darilion wrote:
The fixes should already be in the daily tarballs http://sip-router.org/tarballs/sr/sr_3.0/
regards klaus
Henning Westerholt wrote:
On Donnerstag, 3. Dezember 2009, Bruce McAlister wrote:
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: [..] If you need any further information please dont hesitate to ask, any help in resolving the issue would be greatly appreciated.
Hello Bruce,
it seems that Andrei did a few solaris specific fixes recently, this one 0f7ec046ce88202 - makefile: fix assembler detection on solaris
Assembler test waited forever for input (missing /dev/null input redirection for as -V).
looks at it fits to your problem. This is probably not yet included in the -rc2 version, perhaps you can try the sr_3.0 branch until it a new -rc has been releases.
Regards,
Henning
sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users