Hi All,
When attempting to build SIPRouter version ser-2.99.99-pre3_src_2009-12-03_ca351a on Solaris 10 I am presented with the following error:
---- config.mak included make[1]: Entering directory `/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules/ctl' Makefile.defs defs skipped make[2]: Entering directory `/export/home/user/packages/BUILD/ser-2.99.99-pre3/utils/sercmd' make[2]: Leaving directory `/export/home/user/packages/BUILD/ser-2.99.99-pre3/utils/sercmd' Makefile.defs defs skipped make[2]: Entering directory `/export/home/user/packages/BUILD/ser-2.99.99-pre3/utils/sercmd' /usr/sfw/bin/gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m32 -minline-all-stringops -falign-loops -mtune=athlon -Wall -DNAME='"sercmd"' -DVERSION='"0.2"' -DMOD_NAME="utils/sercmd" -c parse_listen_id.c -o parse_listen_id.o /usr/sfw/bin/gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m32 -minline-all-stringops -falign-loops -mtune=athlon -Wall -DNAME='"sercmd"' -DVERSION='"0.2"' -DMOD_NAME="utils/sercmd" -c sercmd.c -o sercmd.o /usr/sfw/bin/gcc -m32 -O2 parse_listen_id.o sercmd.o -o sercmd Undefined first referenced symbol in file bind sercmd.o getservbyname parse_listen_id.o gethostbyname sercmd.o socket sercmd.o connect sercmd.o ld: fatal: Symbol referencing errors. No output written to sercmd collect2: ld returned 1 exit status make[2]: *** [sercmd] Error 1 make[2]: Leaving directory `/export/home/user/packages/BUILD/ser-2.99.99-pre3/utils/sercmd' ERROR: make -C ../../utils/sercmd install-if-newer failed make[1]: *** [install-utils] Error 1 make[1]: Leaving directory `/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules/ctl' make: *** [install-modules] Error 1 ----
Here are the steps that I have followed to get to this point:
[1] make prefix=/opt/kamailio [2] make prefix=/opt/kamailio 'include_modules=db_unixodbc db_postgres cpl-c snmpstats' modules [3] make basedir=/var/tmp/pkgbuild-user/SIPRouter-2.99.99-pre3-build prefix=/opt/kamailio 'include_modules=db_unixodbc db_postgres cpl-c snmpstats' install
The above error I receive is during the last step ([3]), the installation phase of SIPRouter.
I'm not sure where to go from here, although it looks like it may be a resolver library that is not included along the line. Any help would be appreciated.
If you need any further information, please dont hesitate to ask.
Thanks Bruce
On Dec 03, 2009 at 19:17, Bruce McAlister bruce.mcalister@blueface.ie wrote:
Hi All,
When attempting to build SIPRouter version ser-2.99.99-pre3_src_2009-12-03_ca351a on Solaris 10 I am presented with the following error:
[...]
/usr/sfw/bin/gcc -m32 -O2 parse_listen_id.o sercmd.o -o sercmd Undefined first referenced symbol in file bind sercmd.o getservbyname parse_listen_id.o gethostbyname sercmd.o socket sercmd.o connect sercmd.o ld: fatal: Symbol referencing errors. No output written to sercmd collect2: ld returned 1 exit status
Hmmm, that's strange. It works for me on opensolaris 2009.06.
[...]
Here are the steps that I have followed to get to this point:
[1] make prefix=/opt/kamailio [2] make prefix=/opt/kamailio 'include_modules=db_unixodbc db_postgres cpl-c snmpstats' modules [3] make basedir=/var/tmp/pkgbuild-user/SIPRouter-2.99.99-pre3-build prefix=/opt/kamailio 'include_modules=db_unixodbc db_postgres cpl-c snmpstats' install
The above error I receive is during the last step ([3]), the installation phase of SIPRouter.
I'm not sure where to go from here, although it looks like it may be a resolver library that is not included along the line. Any help would be appreciated.
Yes, it's the resolver library.
If you need any further information, please dont hesitate to ask.
Could you send me config.mak ? (it should be in the sip-router directory).
If you try building only sercmd (cd utils/sercmd ; make ) , does it work?
Andrei
Hi Andrei,
Andrei Pelinescu-Onciul wrote:
Hmmm, that's strange. It works for me on opensolaris 2009.06.
I am building it on Solaris 10, not OpenSolaris. There are aspects of OpenSolaris that have not been put back into Solaris. FYI, I am using Solaris 10 Update 5 to build the sources.
Could you send me config.mak ? (it should be in the sip-router directory).
I have attached config.mak for you.
If you try building only sercmd (cd utils/sercmd ; make ) , does it work?
Yes, if I go in to the directory after the failure and run "make" as suggested, then the compile works.
# this file is autogenerated by make cfg MAIN_NAME= ser CFG_NAME= sip-router SCR_NAME= sip-router FLAVOUR= sip-router INSTALL_FLAVOUR= sip-router RELEASE= 2.99.99-pre3 OS= solaris ARCH= i386 C_DEFS= -DNAME='"ser"' -DVERSION='"2.99.99-pre3"' -DARCH='"i386"' -DOS='solaris_' -DOS_QUOTED='"solaris"' -DCOMPILER='"/usr/sfw/bin/gcc 3.4.3"' -D__CPU_i386 -D__OS_solaris -DSER_VER=2099099 -DCFG_DIR='"/opt/kamailio/etc/ser/"' -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 -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 DEFS_RM= PROFILE= CC= /usr/sfw/bin/gcc LD= /usr/sfw/bin/gcc MKDEP= /usr/sfw/bin/gcc -MM MKTAGS= ctags -R . LDFLAGS= -m32 -O2 C_INCLUDES= MOD_LDFLAGS= -G -m32 -O2 LIB_LDFLAGS= -G -m32 -O2 UTILS_LDFLAGS= -m32 -O2 LIB_SONAME= -Wl,-h, LD_RPATH= -Wl,-R, LIB_SUFFIX= .so LIB_PREFIX= lib LIBS= -ldl -lresolv -L/usr/local/lib -lxnet -lnsl -lrt LEX= flex YACC= yacc YACC_FLAGS= -d -b cfg PREFIX= /usr/local LOCALBASE= /usr/local TAR= gtar INSTALL= ginstall INSTALL_CFG= ginstall -m 644 INSTALL_BIN= ginstall -m 755 INSTALL_MODULES= ginstall -m 755 INSTALL_DOC= ginstall -m 644 INSTALL_MAN= ginstall -m 644 INSTALL_LIB= ginstall -m 755 INSTALL_TOUCH= touch INSTALL_SHARE= ginstall -m 644 Q= CC_EXTRA_OPTS= CPU= athlon CFLAGS_RM= CFLAGS= -g -O9 -funroll-loops -Wcast-align $(PROFILE) -m32 -minline-all-stringops -falign-loops -mtune=$(CPU) $(CC_EXTRA_OPTS) -Wall MOD_CFLAGS= -fPIC -DPIC $(CFLAGS) LIB_CFLAGS= -fPIC -DPIC $(CFLAGS) UTILS_CFLAGS= $(CFLAGS) BASEDIR= basedir= $(BASEDIR) DESTDIR= $(LOCALBASE) PREFIX= $(DESTDIR) prefix= /opt/kamailio cfg_prefix= $(basedir)$(prefix) cfg_dir= etc/$(MAIN_NAME)/ bin_prefix= $(basedir)$(prefix) bin_dir= sbin/ modules_prefix= $(basedir)$(prefix) modules_dir= lib/$(MAIN_NAME)/ doc_prefix= $(basedir)$(prefix) doc_dir= doc/$(MAIN_NAME)/ man_prefix= $(basedir)$(prefix) man_dir= man/ ut_prefix= $(basedir)$(prefix) ut_dir= share_prefix= $(basedir)$(prefix) share_dir= share/$(MAIN_NAME)/ lib_prefix= $(basedir)$(prefix) lib_dir= lib/$(MAIN_NAME)/ cfg_target= $(prefix)/$(cfg_dir) lib_target= $(prefix)/$(lib_dir) override makefile_defs:=1 C_DEFS:=$(filter-out $(DEFS_RM) $(extra_defs),$(C_DEFS)) $(extra_defs) CFLAGS:=$(filter-out $(CFLAGS_RM) $(CC_EXTRA_OPTS), $(CFLAGS)) $(CC_EXTRA_OPTS)
On Dec 04, 2009 at 15:36, Bruce McAlister bruce.mcalister@blueface.ie wrote: [...]
If you try building only sercmd (cd utils/sercmd ; make ) , does it work?
Yes, if I go in to the directory after the failure and run "make" as suggested, then the compile works.
It should be fixed now on sr_3.0. It was not a solaris specific problem (the libs were reset on make install, but since -lnsl and -lxnet are included in libc on some other OSes there was no symptom there).
You can either wait until tomorrow and get the tarball from http://sip-router.org/tarballs/sr/sr_3.0/, or you can get it using git. For git use: git clone git://git.sip-router.org/sip-router sip-router.git cd sip-router.git git checkout -b sr_3.0 origin/sr_3.0
After that to update to the latest sources use: git fetch origin git pull --rebase origin sr_3.0
See also: http://sip-router.org/wiki/git/sip-router-repository http://sip-router.org/wiki/git/crash-course (and replace master with sr_3.0)
Andrei
Hi Andrei,
Andrei Pelinescu-Onciul wrote:
It should be fixed now on sr_3.0. It was not a solaris specific problem (the libs were reset on make install, but since -lnsl and -lxnet are included in libc on some other OSes there was no symptom there).
Thanks, the standard build works now with release:
ser-2.99.99-pre3_src_2009-12-05_b8e67f
Thanks Bruce