Re: Problems when building against external libltdl, and workarounds
Thomas Ries <[email protected]> Sat, 19 Jun 2010 22:52:00 +0200 (CEST)
| Newsgroups | gmane.network.siproxd |
|---|---|
| Message-ID | <[email protected]> |
--===============3573724543072154183== Content-Type: MULTIPART/SIGNED; MICALG=pgp-sha1; PROTOCOL="application/pgp-signature"; BOUNDARY="-1463810047-1804289383-1276980725=:5775" ---1463810047-1804289383-1276980725=:5775 Content-Type: TEXT/PLAIN; CHARSET=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: INLINE Hello Chi-Thanh, The first issue (building against external libltdl) has already been fixed in the current snapshots. The issue about the include file should be fixed now, I just made some modifications. I'm not sure about the undefined reference - It might be related to ltdl-2.2 you are using; I am using ltdl-1.5.22 here without such issues. It might be caused having mixed the local libltdl (included with siproxd) and the system installed libltdl while compiling/linking siproxd. Could you try the latest siproxd snapshot, perform a clean build and report back if this works now? <http://siproxd.tuxworld.ch/siproxd-19Jun2010.tar.gz> Best regards, /Thomas On 19 Jun, Ch=C3=AD-Thanh Christopher Nguy=E1=BB=85n wrote: > Hello, >=20 > when building against external libltdl/libtool-2.2, several issues > come up. Doing ./configure && make with libltdl on the system results > in: > --- > make all-recursive > make[1]: Entering directory `/tmp/siproxd-0.8.0' > Making all in libltdl > make[2]: Entering directory `/tmp/siproxd-0.8.0/libltdl' > make[2]: *** No rule to make target `all'. Stop. > make[2]: Leaving directory `/tmp/siproxd-0.8.0/libltdl' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/tmp/siproxd-0.8.0' > make: *** [all] Error 2 > --- > Removing libltdl from SUBDIRS in Makefile.in will make it build, but=20 > crash on start: > --- > Program received signal SIGSEGV, Segmentation fault. > 0x00002aaaabbe9ac0 in strcmp () from /lib/libc.so.6 > (gdb) bt > #0 0x00002aaaabbe9ac0 in strcmp () from /lib/libc.so.6 > #1 0x00002aaaab5459f0 in lt_dlpreload_open () from /usr/lib/libltdl.so.7 > #2 0x0000000000416ab3 in load_plugins () at plugins.c:66 > #3 0x0000000000406c78 in main (argc=3D5, argv=3D0x7fffffffe4b8) at > siproxd.c:294 > --- > Changing src/plugins.h from #include "../libltdl/ltdl.h" to #include=20 > <ltdl.h> will lead to a new build error: > --- > x86_64-pc-linux-gnu-gcc -Wall -D_GNU_SOURCE -DBUILDSTR=3D\"5471\" -O2=20 > -pipe -march=3Damdfam10 -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -o > siproxd siproxd.o proxy.o register.o sock.o utils.o sip_utils.o > sip_layer.o log.o readconf.o rtpproxy.o rtpproxy_relay.o accessctl.o > route_processing.o security.o auth.o fwapi.o resolve.o dejitter.o=20 > plugins.o .libs/siproxdS.o -Wl,--export-dynamic -lresolv=20 > /usr/lib64/libosip2.so -lnsl /usr/lib64/libosipparser2.so=20 > /usr/lib64/libltdl.so -ldl > plugins.o: In function `load_plugins': > plugins.c:(.text+0x283): undefined reference to=20 > `lt__PROGRAM__LTX_preloaded_symbols' > collect2: ld returned 1 exit status > --- > And adding a > #define lt__PROGRAM__LTX_preloaded_symbols > lt_libltdl_LTX_preloaded_symbols will finally make it build > successfully and not crash on start. >=20 >=20 > Best regards, > Chi-Thanh Christopher Nguyen >=20 > -------------------------------------------------------------------------= ----- > ThinkGeek and WIRED's GeekDad team up for the Ultimate=20 > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the=20 > lucky parental unit. See the prize list and enter to win:=20 > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Siproxd-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/siproxd-users ---1463810047-1804289383-1276980725=:5775 Content-Type: APPLICATION/PGP-SIGNATURE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFMHS31B2xLpFxU+GURAiG9AJ4vuLI3mPClo9aiC8SuuninlshF0QCffvs7 TcHuqhEpsE37nWD2Aq61rTo= =2c7f -----END PGP SIGNATURE----- ---1463810047-1804289383-1276980725=:5775-- --===============3573724543072154183== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo --===============3573724543072154183== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Siproxd-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/siproxd-users --===============3573724543072154183==--