[csw-maintainers] building reSIProcate on build10s
Daniel Pocock
daniel at opencsw.org
Thu Apr 19 01:39:23 CEST 2012
I've recently migrated reSIProcate upstream to autotools, in the hope of
easier build and packaging, particularly for the SIP proxy (repro) and
TURN server (reTurn)
However, I'm running into some issues just doing a test compile on the
build10s machine. This command should build rutil, one of the
foundation libraries, and run some test cases:
$ ./configure \
CXXFLAGS="-I/opt/csw/include -mt -library=stlport4 " \
LDFLAGS="-L/opt/csw/lib -DTHREAD=MULTI -mt -dalign -V -v" \
--with-c-ares && \
gmake -C rutil clean && \
gmake -C rutil check
It stops while linking the first test case - am I doing something wrong
with CXXFLAGS or LDFLAGS, is there possibly some issue with this machine?
I notice the librutil.so was built, and the class referred to,
RRCache.o, was linked into the shared library.
Making check in test
gmake[1]: Entering directory `/home/daniel/ws/resip-trunk.git/rutil/test'
gmake testCoders testCountStream testData testDataPerformance
testDataStream testDnsUtil testFifo testFileSystem testInserter
testIntrusiveList testLogger testMD5Stream testParseBuffer testRandomHex
testRandomThread testThreadIf testXMLCursor
gmake[2]: Entering directory `/home/daniel/ws/resip-trunk.git/rutil/test'
source='testCoders.cxx' object='testCoders.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../../build-aux/depcomp \
CC -DHAVE_CONFIG_H -I. -I../.. -I/opt/csw/include -mt
-library=stlport4 -DRESIP_OSTYPE_LINUX -DRESIP_ARCH_SPARC
-DRESIP_LARCH_sparc -D_REENTRANT -DRESIP_TOOLCHAIN_GNU -c -o
testCoders.o testCoders.cxx
/bin/bash ../../libtool --tag=CXX --mode=link CC -I/opt/csw/include
-mt -library=stlport4 -DRESIP_OSTYPE_LINUX -DRESIP_ARCH_SPARC
-DRESIP_LARCH_sparc -D_REENTRANT -DRESIP_TOOLCHAIN_GNU -L/opt/csw/lib
-DTHREAD=MULTI -mt -dalign -V -v -o testCoders testCoders.o
../librutil.la -lpthread -lsocket -lnsl
libtool: link: CC -I/opt/csw/include -mt -DRESIP_OSTYPE_LINUX
-DRESIP_ARCH_SPARC -DRESIP_LARCH_sparc -D_REENTRANT
-DRESIP_TOOLCHAIN_GNU -DTHREAD=MULTI -mt -dalign -V -v -o
.libs/testCoders testCoders.o -L/opt/csw/lib ../.libs/librutil.so
-library=stlport4 -lcares -lrt -lpthread -lsocket -lnsl -mt -R/usr/local/lib
### command line files and options (expanded):
### -I/opt/csw/include -DRESIP_OSTYPE_LINUX -DRESIP_ARCH_SPARC
-DRESIP_LARCH_sparc -D_REENTRANT -DRESIP_TOOLCHAIN_GNU -DTHREAD=MULTI
-xmemalign=8s -V -v -o .libs/testCoders testCoders.o -L/opt/csw/lib
../.libs/librutil.so -lcares -lrt -lpthread -lsocket -lnsl -mt
-R/usr/local/lib -library=no%Cstd,stlport4
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-28 2011/12/14
### CC: Note: NLSPATH =
/opt/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
### CC: Note: LD_LIBRARY_PATH = (null)
### CC: Note: LD_RUN_PATH = (null)
### CC: Note: LD_OPTIONS = (null)
ln -s /opt/SUNWspro/prod/lib /tmp/lib_link.19882.0
ln -s /opt/SUNWspro/prod/lib /tmp/lib_base_link.19882.1
/usr/ccs/bin/ld -zld32=-S/tmp/lib_base_link.19882.1/libldstab_ws.so
-zld64=-S/tmp/lib_base_link.19882.1/v9/libldstab_ws.so
-zld32=-S/tmp/lib_base_link.19882.1/libCCexcept.so.1
-zld64=-S/tmp/lib_base_link.19882.1/v9/libCCexcept.so.1 -V
-R/usr/local/lib
-R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib/stlport4:/opt/SUNWspro/lib/sparc:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib
-o .libs/testCoders /opt/SUNWspro/prod/lib/crti.o
/opt/SUNWspro/prod/lib/CCrti.o /opt/SUNWspro/prod/lib/crt1.o
/opt/SUNWspro/prod/lib/values-xa.o -Y
P,/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib/stlport4:/opt/SUNWspro/lib/sparc:/opt/SUNWspro/prod/lib/rw7:/opt/SUNWspro/prod/lib/stlport4:/opt/SUNWspro/prod/lib/sparc:/opt/SUNWspro/lib:/opt/SUNWspro/prod/lib:/usr/ccs/lib:/lib:/usr/lib
testCoders.o -L/opt/csw/lib ../.libs/librutil.so -lcares -lrt -lpthread
-lsocket -lnsl -lstlport -lrt -lCrun -lm -lthread -lc
/opt/SUNWspro/prod/lib/CCrtn.o /opt/SUNWspro/prod/lib/crtn.o
>&/tmp/ld.19882.2.err
/opt/SUNWspro/prod/bin/c++filt -V -filt=no%stdlib </tmp/ld.19882.2.err
>/tmp/c++filt.19882.3.err
/opt/SUNWspro/prod/bin/c++filt: Sun C++ 5.9 SunOS_sparc 2007/05/03
rm /tmp/ld.19882.2.err
/opt/SUNWspro/prod/bin/stdlibfilt -stderr </tmp/c++filt.19882.3.err
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.500
Undefined first referenced
symbol in file
bool resip::RRCache::lookup(const
resip::Data&,int,int,std::vector<resip::DnsResourceRecord*>&,int&)
../.libs/librutil.so
ld: fatal: Symbol referencing errors. No output written to .libs/testCoders
rm /tmp/c++filt.19882.3.err
rm /tmp/lib_link.19882.0
rm /tmp/lib_base_link.19882.1
gmake[2]: *** [testCoders] Error 1
gmake[2]: Leaving directory `/home/daniel/ws/resip-trunk.git/rutil/test'
gmake[1]: *** [check-am] Error 2
gmake[1]: Leaving directory `/home/daniel/ws/resip-trunk.git/rutil/test'
gmake: *** [check-recursive] Error 1
gmake: Leaving directory `/home/daniel/ws/resip-trunk.git/rutil'
More information about the maintainers
mailing list