Ticket #95 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

dynamic libraries are not dynamic

Reported by: bencer Owned by: smoku
Priority: major Component: Build
Version: 2.1.5 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

when you use dlopen to load dyn libs, they are not linked at build time so --enable-ldap or --enable-foo shouldn't make appear libfoo on a ldd dump. see:

jabberd compiled with ldap and berkeleydb:

sid:~/jabberd/jabberd-2.1.6$ ldd c2s/c2s

--> libldap_r.so.2 => /usr/lib/libldap_r.so.2 (0x00002b5ab7086000)

liblber.so.2 => /usr/lib/liblber.so.2 (0x00002b5ab7284000)

--> libdb-4.3.so => /usr/lib/libdb-4.3.so (0x00002b5ab7392000)

etc.

Change History

follow-up: ↓ 2   Changed 14 months ago by smoku

What system is this? Autotools version? Libtool version?

I do not see it at my system.

authreg_sqlite.so links libsqlite3.so:

$ ldd storage/.libs/authreg_sqlite.so 
        linux-gate.so.1 =>  (0xffffe000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb7f74000)
        libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7f33000)
[...]

but c2s/c2s does not:

$ ldd c2s/c2s
        linux-gate.so.1 =>  (0xffffe000)
        libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7eb7000)
[...]

in reply to: ↑ 1   Changed 14 months ago by bencer

Replying to smoku:

What system is this? Autotools version? Libtool version?

up to date debian sid: gcc 4.2.1 autotools 20070306.1 autoconf 2.61-4 automake 1.9.6 libtool 1.5.22-4

I do not see it at my system.

with --enable-sqlite works as expected here as well, but try with --enable-db or --enable-ldap:

$ ldd c2s/c2s

libdb-4.3.so => /usr/lib/libdb-4.3.so (0x00002b0e7035b000)

  Changed 14 months ago by smoku

  • status changed from new to closed
  • resolution set to fixed

(In [266]) Keeping garbage out of LIBS variable. Fixes #95

  Changed 14 months ago by smoku

  • version changed from 2.1 to 2.1.5
Note: See TracTickets for help on using tickets.