Opened 10 years ago

Closed 10 years ago

#305 closed defect (fixed)

avoid needlessly linking libraries that are not used to libpacketdump

Reported by: matt@… Owned by: perry
Priority: minor Milestone:
Component: documentation Version:
Keywords: Cc:

Description

libpacketdump needlessly links against all the libraries required by libtrace (e.g. libz, libbz2). This causes unnecessary dependencies to be generated in the Debian packages (e.g. libpacketdump depends directly on libbz2, libpcap) even though there are no symbols from any of these libraries in the libpacketdump code.

Full list of unneeded linkages on libpacketdump below:

dpkg-shlibdeps: warning: dependency on libz.so.1 could be avoided if "debian/libpacketdump3/usr/lib/libpacketdump/eth_2048.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_33.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_11.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump.so.3.0.10 debian/libpacketdump3/usr/lib/libpacketdump/eth_34916.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_1.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_1.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_10.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_0.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_132.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_44.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_9.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_2054.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34887.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_47.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34525.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_33024.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_6.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_6.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_2.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34958.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_4.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_17.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_15.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_0.so.0.0.0" were not uselessly linked against it (they use none of its symbols).

dpkg-shlibdeps: warning: dependency on libpcap.so.0.8 could be avoided if "debian/libpacketdump3/usr/lib/libpacketdump.so.3.0.10" were not uselessly linked against it (they use none of its symbols).

dpkg-shlibdeps: warning: dependency on libbz2.so.1.0 could be avoided if "debian/libpacketdump3/usr/lib/libpacketdump/eth_2048.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_33.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_11.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump.so.3.0.10 debian/libpacketdump3/usr/lib/libpacketdump/eth_34916.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_1.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_1.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_10.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_0.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_132.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_44.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_9.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_2054.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34887.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_47.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34525.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_33024.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_6.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_6.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_2.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34958.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_4.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_17.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_15.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_0.so.0.0.0" were not uselessly linked against it (they use none of its symbols).

dpkg-shlibdeps: warning: dependency on libncurses.so.5 could be avoided if "debian/libpacketdump3/usr/lib/libpacketdump/eth_2048.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_33.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_11.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump.so.3.0.10 debian/libpacketdump3/usr/lib/libpacketdump/eth_34916.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_1.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_1.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_10.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_0.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_132.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_44.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_9.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_2054.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34887.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_47.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34525.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_33024.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_6.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_6.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_2.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_34958.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_4.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/ip_17.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/link_15.so.0.0.0 debian/libpacketdump3/usr/lib/libpacketdump/eth_0.so.0.0.0" were not uselessly linked against it (they use none of its symbols).

Change History (1)

comment:1 Changed 10 years ago by salcock

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed in r1701.

Note: See TracTickets for help on using tickets.