Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228375 - net-im/jabberd-1.6.1.1: /usr/lib64/libjabberd.so.2.0.0 has improper linking with USE=-debug, fails to compile with USE=debug
Summary: net-im/jabberd-1.6.1.1: /usr/lib64/libjabberd.so.2.0.0 has improper linking w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 15:34 UTC by Thomas Anderson (tanderson) (RETIRED)
Modified: 2008-06-20 19:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the debug__zones issue (jabberd-1.6.1.1-undefineddebug.patch,981 bytes, patch)
2008-06-19 15:37 UTC, Thomas Anderson (tanderson) (RETIRED)
Details | Diff
Fixes the debug__zones issue -- Take 2 (jabberd-1.6.1.1-undefineddebug.patch,1.30 KB, patch)
2008-06-19 15:56 UTC, Thomas Anderson (tanderson) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-19 15:34:47 UTC
ldd -r /usr/lib64/libjabberd.so.2.0.0:

undefined symbol: debug__zones	(/usr/lib64/libjabberd.so)

If I use the patch to fix this(I'll attach it), I get compile time errors:

 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=athlon64 -O2 -pipe -MT mtq.lo -MD -MP -MF .deps/mtq.Tpo -c mtq.cc  -fPIC -DPIC -o .libs/mtq.o
if /bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib    -march=athlon64 -O2 -pipe -MT log.lo -MD -MP -MF ".deps/log.Tpo" -c -o log.lo log.cc; \
	then mv -f ".deps/log.Tpo" ".deps/log.Plo"; else rm -f ".deps/log.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=athlon64 -O2 -pipe -MT xdb.lo -MD -MP -MF .deps/xdb.Tpo -c xdb.cc  -fPIC -DPIC -o .libs/xdb.o
 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=athlon64 -O2 -pipe -MT deliver.lo -MD -MP -MF .deps/deliver.Tpo -c deliver.cc  -fPIC -DPIC -o .libs/deliver.o
if /bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib    -march=athlon64 -O2 -pipe -MT mio_raw.lo -MD -MP -MF ".deps/mio_raw.Tpo" -c -o mio_raw.lo mio_raw.cc; \
	then mv -f ".deps/mio_raw.Tpo" ".deps/mio_raw.Plo"; else rm -f ".deps/mio_raw.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=athlon64 -O2 -pipe -MT log.lo -MD -MP -MF .deps/log.Tpo -c log.cc  -fPIC -DPIC -o .libs/log.o
if /bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib    -march=athlon64 -O2 -pipe -MT mio_xml.lo -MD -MP -MF ".deps/mio_xml.Tpo" -c -o mio_xml.lo mio_xml.cc; \
	then mv -f ".deps/mio_xml.Tpo" ".deps/mio_xml.Plo"; else rm -f ".deps/mio_xml.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=athlon64 -O2 -pipe -MT mio_raw.lo -MD -MP -MF .deps/mio_raw.Tpo -c mio_raw.cc  -fPIC -DPIC -o .libs/mio_raw.o
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib    -march=athlon64 -O2 -pipe -MT subjectAltName_asn1_tab.lo -MD -MP -MF ".deps/subjectAltName_asn1_tab.Tpo" -c -o subjectAltName_asn1_tab.lo subjectAltName_asn1_tab.c; \
	then mv -f ".deps/subjectAltName_asn1_tab.Tpo" ".deps/subjectAltName_asn1_tab.Plo"; else rm -f ".deps/subjectAltName_asn1_tab.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=athlon64 -O2 -pipe -MT mio_xml.lo -MD -MP -MF .deps/mio_xml.Tpo -c mio_xml.cc  -fPIC -DPIC -o .libs/mio_xml.o
if x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib    -march=athlon64 -O2 -pipe -MT jabberd.o -MD -MP -MF ".deps/jabberd.Tpo" -c -o jabberd.o jabberd.cc; \
	then mv -f ".deps/jabberd.Tpo" ".deps/jabberd.Po"; else rm -f ".deps/jabberd.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=athlon64 -O2 -pipe -MT subjectAltName_asn1_tab.lo -MD -MP -MF .deps/subjectAltName_asn1_tab.Tpo -c subjectAltName_asn1_tab.c  -fPIC -DPIC -o .libs/subjectAltName_asn1_tab.o
subjectAltName_asn1_tab.c:42: warning: 'subjectAltName_asn1_tab' initialized and declared 'extern'
/bin/sh ../libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++  -march=athlon64 -O2 -pipe  -lgnutls   -lgnutls-extra -lgnutls   -o libjabberd.la -rpath /usr/lib64 -lgnutls   -lgnutls-extra -lgnutls   -version-info 2:0:0 -export-dynamic -version-info 2:0:0 acl.lo config.lo gcrypt_init.lo heartbeat.lo mio.lo mio_tls.lo mtq.lo xdb.lo deliver.lo log.lo mio_raw.lo mio_xml.lo subjectAltName_asn1_tab.lo -lexpat ../jabberd/lib/libjabberdlib.la -lresolv  -ldl -lidn -lpth -lexpat -lmysqlclient
x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o  .libs/acl.o .libs/config.o .libs/gcrypt_init.o .libs/heartbeat.o .libs/mio.o .libs/mio_tls.o .libs/mtq.o .libs/xdb.o .libs/deliver.o .libs/log.o .libs/mio_raw.o .libs/mio_xml.o .libs/subjectAltName_asn1_tab.o -Wl,--whole-archive ../jabberd/lib/.libs/libjabberdlib.a -Wl,--no-whole-archive  /usr/lib64/libgnutls-extra.so -L/usr/lib64 /usr/lib64/libopencdk.so -lnsl /usr/lib64/liblzo2.so /usr/lib64/libgnutls.so /usr/lib64/libtasn1.so -lz /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so -lresolv -ldl /usr/lib64/libidn.so /usr/lib64/libpth.so /usr/lib64/libexpat.so -lmysqlclient -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o  -march=athlon64 -Wl,-soname -Wl,libjabberd.so.2 -o .libs/libjabberd.so.2.0.0
(cd .libs && rm -f libjabberd.so.2 && ln -s libjabberd.so.2.0.0 libjabberd.so.2)
(cd .libs && rm -f libjabberd.so && ln -s libjabberd.so.2.0.0 libjabberd.so)
creating libjabberd.la
(cd .libs && rm -f libjabberd.la && ln -s ../libjabberd.la libjabberd.la)
/bin/sh ../libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++  -march=athlon64 -O2 -pipe  -lgnutls   -lgnutls-extra -lgnutls   -o jabberd -lgnutls   -lgnutls-extra -lgnutls   -export-dynamic jabberd.o ../jabberd/base/libjabberdbase.la libjabberd.la -lpopt -lresolv  -ldl -lidn -lpth -lexpat -lmysqlclient
x86_64-pc-linux-gnu-g++ -march=athlon64 -O2 -pipe -o .libs/jabberd jabberd.o -Wl,--export-dynamic  -L/usr/lib64 ../jabberd/base/.libs/libjabberdbase.a ./.libs/libjabberd.so /usr/lib64/libgnutls-extra.so /usr/lib64/libopencdk.so -lnsl /usr/lib64/liblzo2.so /usr/lib64/libgnutls.so /usr/lib64/libtasn1.so -lz /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /usr/lib64/libpopt.so -lresolv -ldl /usr/lib64/libidn.so /usr/lib64/libpth.so /usr/lib64/libexpat.so -lmysqlclient 
./.libs/libjabberd.so: undefined reference to `debug_log(char*, char const*, ...)'
collect2: ld returned 1 exit status
make[3]: *** [jabberd] Error 1
make[3]: Leaving directory `/var/tmp/paludis/net-im-jabberd-1.6.1.1/work/jabberd14-1.6.1.1/jabberd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/paludis/net-im-jabberd-1.6.1.1/work/jabberd14-1.6.1.1/jabberd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/net-im-jabberd-1.6.1.1/work/jabberd14-1.6.1.1'
make: *** [all] Error 2


Reproducible: Always
Comment 1 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-19 15:37:27 UTC
Created attachment 157631 [details, diff]
Fixes the debug__zones issue

I've yet to figure out how to fix the compile-time warnings...
Comment 2 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-19 15:40:38 UTC
er, errors I meant of course ;-)
Comment 3 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-19 15:56:26 UTC
Created attachment 157655 [details, diff]
Fixes the debug__zones issue -- Take 2

Revised slightly
Comment 4 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-20 19:34:39 UTC
Fixed in CVS, thanks for reporting!