Debian 'lt_preloaded_symbols' link error

Felix Lechner <felix.lechner-vdIa6hz1htNWk0Htik3J/[email protected]> Sat, 5 Feb 2011 12:40:19 -0800
Newsgroups gmane.network.siproxd
Message-ID <[email protected]>
--===============7531959670488918579==
Content-Type: multipart/alternative; boundary=00032557635a99a9ac049b8f0387

--00032557635a99a9ac049b8f0387
Content-Type: text/plain; charset=UTF-8

Hello,

I am packaging a snapshot for Debian, but have a stubborn symbol error.

The Autoconf website states that: "If you
use `LTDL_SET_PRELOADED_SYMBOLS' in your module loader, you must also
specify something to preload to avoid compilation failure due to
undefined `lt_preloaded_symbols'. You can name modules on the Libtool link
command line using one of `-dlopen' or `-dlpreopen'."

Looks like that is properly done in 'src/Makefile.am'.

DLOPENPLUGINS = -dlopen plugin_demo.la \
 -dlopen plugin_shortdial.la \
 -dlopen plugin_logcall.la \
-dlopen plugin_defaulttarget.la \
 -dlopen plugin_fix_bogus_via.la \
-dlopen plugin_stun.la
 siproxd_LDADD = $(LIBLTDL) $(DLOPENPLUGINS)

Yet it results in the error below this message.

I can probably force a build by updating 'libtool' but thought I would ask
this brief question to the developers first.

Autoconf picks Debian's own 'ldtl' library (and not the convenience
library).

Thank you for any pointers,
Felix

* * *

Output below:

/bin/bash ../libtool --tag=CC --mode=link gcc -D_GNU_SOURCE
 -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -g -Wall -O2 -pthread
-D_POSIX_THREAD_SAFE_FUNCTIONS   -o siproxd -export-dynamic 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 plugins.o  -dlopen plugin_demo.la -dlopen
plugin_shortdial.la -dlopen plugin_logcall.la -dlopen
plugin_defaulttarget.la -dlopen plugin_fix_bogus_via.la -dlopen
plugin_stun.la -lresolv -lresolv -losipparser2 -losip2   -lltdl
rm -f .libs/siproxd.nm .libs/siproxd.nmS .libs/siproxd.nmT
creating .libs/siproxdS.c
(cd .libs && gcc  -g -O2 -g -Wall -O2 -c -fno-builtin "siproxdS.c")
rm -f .libs/siproxdS.c .libs/siproxd.nm .libs/siproxd.nmS .libs/siproxd.nmT
gcc -D_GNU_SOURCE -DBUILDSTR=\"5831\" -g -O2 -g -Wall -O2 -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 plugins.o .libs/siproxdS.o -Wl,--export-dynamic
 -lresolv /usr/lib/libosip2.so -lnsl /usr/lib/libosipparser2.so
/usr/lib/libltdl.so -ldl
plugins.o: In function `load_plugins':
/root/siproxd/siproxd-05Feb2011/src/plugins.c:65: undefined reference to
`lt__PROGRAM__LTX_preloaded_symbols'
collect2: ld returned 1 exit status
rm -f .libs/siproxdS.o
make[3]: *** [siproxd] Error 1
make[3]: Leaving directory `/root/siproxd/siproxd-05Feb2011/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/siproxd/siproxd-05Feb2011'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/siproxd/siproxd-05Feb2011'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

--00032557635a99a9ac049b8f0387
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,<div><br>I am packaging a snapshot for Debian, but have a stubborn sy=
mbol error.</div><div><br>The Autoconf website states that: &quot;If you us=
e=C2=A0`LTDL_SET_PRELOADED_SYMBOLS&#39;=C2=A0in your module loader, you=C2=
=A0must=C2=A0also specify something to preload to avoid compilation failure=
 due to undefined=C2=A0`lt_preloaded_symbols&#39;. You can name modules on =
the Libtool link command line using one of=C2=A0`-dlopen&#39;=C2=A0or=C2=A0=
`-dlpreopen&#39;.&quot;</div>

<div><br></div><div>Looks like that is properly done in &#39;src/Makefile.a=
m&#39;.</div><div><div><br></div><meta http-equiv=3D"content-type" content=
=3D"text/html; charset=3Dutf-8"><div><span class=3D"Apple-tab-span" style=
=3D"white-space: pre; ">	</span>DLOPENPLUGINS =3D <span class=3D"Apple-tab-=
span" style=3D"white-space:pre">	</span>-dlopen <a href=3D"http://plugin_de=
mo.la">plugin_demo.la</a> \</div>

<meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8"><d=
iv><span class=3D"Apple-tab-span" style=3D"white-space: pre; "></span></div=
><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>-d=
lopen <a href=3D"http://plugin_shortdial.la">plugin_shortdial.la</a> \</div=
>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>-dl=
open <a href=3D"http://plugin_logcall.la">plugin_logcall.la</a> \</div><div=
><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>-dlopen=
 <a href=3D"http://plugin_defaulttarget.la">plugin_defaulttarget.la</a> \</=
div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>-dl=
open <a href=3D"http://plugin_fix_bogus_via.la">plugin_fix_bogus_via.la</a>=
 \</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</=
span>-dlopen <a href=3D"http://plugin_stun.la">plugin_stun.la</a></div>

</div><meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf=
-8"><div><span class=3D"Apple-tab-span" style=3D"white-space: pre; ">	</spa=
n>siproxd_LDADD =3D $(LIBLTDL) $(DLOPENPLUGINS)</div><div><br></div><div>Ye=
t it results in the error below this message.</div>

<div><br></div><div>I can probably force a build by updating &#39;libtool&#=
39; but thought I would ask this brief question to the developers first.</d=
iv><div><br></div><div>Autoconf picks Debian&#39;s own &#39;ldtl&#39; libra=
ry (and not the convenience library).</div>

<div><br></div><div>Thank you for any pointers,</div><div>Felix</div><div><=
br></div><div>* * *</div><div><br></div><div>Output below:<br><br></div><di=
v>/bin/bash ../libtool --tag=3DCC --mode=3Dlink gcc -D_GNU_SOURCE =C2=A0-DB=
UILDSTR=3D&quot;\&quot;`cat .buildno`\&quot;&quot; -g -O2 -g -Wall -O2 -pth=
read -D_POSIX_THREAD_SAFE_FUNCTIONS =C2=A0 -o siproxd -export-dynamic sipro=
xd.o proxy.o register.o sock.o utils.o sip_utils.o sip_layer.o log.o readco=
nf.o rtpproxy.o rtpproxy_relay.o accessctl.o route_processing.o security.o =
auth.o fwapi.o resolve.o dejitter.o plugins.o =C2=A0-dlopen <a href=3D"http=
://plugin_demo.la">plugin_demo.la</a> -dlopen <a href=3D"http://plugin_shor=
tdial.la">plugin_shortdial.la</a> -dlopen <a href=3D"http://plugin_logcall.=
la">plugin_logcall.la</a> -dlopen <a href=3D"http://plugin_defaulttarget.la=
">plugin_defaulttarget.la</a> -dlopen <a href=3D"http://plugin_fix_bogus_vi=
a.la">plugin_fix_bogus_via.la</a> -dlopen <a href=3D"http://plugin_stun.la"=
>plugin_stun.la</a> -lresolv -lresolv -losipparser2 -losip2 =C2=A0 -lltdl=
=C2=A0<br>

rm -f .libs/siproxd.nm .libs/siproxd.nmS .libs/siproxd.nmT<br>creating .lib=
s/siproxdS.c<br>(cd .libs &amp;&amp; gcc =C2=A0-g -O2 -g -Wall -O2 -c -fno-=
builtin &quot;siproxdS.c&quot;)<br>rm -f .libs/siproxdS.c .libs/siproxd.nm =
.libs/siproxd.nmS .libs/siproxd.nmT<br>

gcc -D_GNU_SOURCE -DBUILDSTR=3D\&quot;5831\&quot; -g -O2 -g -Wall -O2 -pthr=
ead -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 plugins.o .libs/siproxdS.o -Wl,--export-dynamic =C2=A0-lresolv =
/usr/lib/libosip2.so -lnsl /usr/lib/libosipparser2.so /usr/lib/libltdl.so -=
ldl =C2=A0<br>

plugins.o: In function `load_plugins&#39;:<br>/root/siproxd/siproxd-05Feb20=
11/src/plugins.c:65: undefined reference to `lt__PROGRAM__LTX_preloaded_sym=
bols&#39;<br>collect2: ld returned 1 exit status<br>rm -f .libs/siproxdS.o<=
br>

make[3]: *** [siproxd] Error 1<br>make[3]: Leaving directory `/root/siproxd=
/siproxd-05Feb2011/src&#39;<br>make[2]: *** [all-recursive] Error 1<br>make=
[2]: Leaving directory `/root/siproxd/siproxd-05Feb2011&#39;<br>make[1]: **=
* [all] Error 2<br>

make[1]: Leaving directory `/root/siproxd/siproxd-05Feb2011&#39;<br>make: *=
** [debian/stamp-makefile-build] Error 2<br>dpkg-buildpackage: error: debia=
n/rules build gave error exit status 2<br>debuild: fatal error at line 1325=
:<br>

dpkg-buildpackage -rfakeroot -D -us -uc -b failed<br></div>

--00032557635a99a9ac049b8f0387--


--===============7531959670488918579==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
--===============7531959670488918579==
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

--===============7531959670488918579==--