Linking is overkill

Bug #582546 reported by Didier Raboud
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lightspark
Fix Released
Undecided
Unassigned

Bug Description

Hi,

the compiled binaries have overkill linking (spotted by dpkg-shlibdeps):

dpkg-shlibdeps: warning: dependency on libfontconfig.so.1 could be avoided if "debian/lightspark/usr/bin/lightspark" wer
e not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libatk-1.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" were n
ot uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpcre.so.3 could be avoided if "debian/lightspark/usr/bin/lightspark" were not
uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangocairo-1.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark"
 were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libfreetype.so.6 could be avoided if "debian/lightspark/usr/bin/lightspark" were
not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libICE.so.6 could be avoided if "debian/lightspark/usr/bin/lightspark" were not u
selessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangox-1.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" wer
e not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libglib-2.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" were
not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libXmu.so.6 could be avoided if "debian/lightspark/usr/bin/lightspark" were not u
selessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgio-2.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" were n
ot uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgdk_pixbuf-2.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark"
 were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgmodule-2.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" we
re not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libcairo.so.2 could be avoided if "debian/lightspark/usr/bin/lightspark" were not
 uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpango-1.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" were
 not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libSM.so.6 could be avoided if "debian/lightspark/usr/bin/lightspark" were not us
elessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgthread-2.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" we
re not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangoft2-1.0.so.0 could be avoided if "debian/lightspark/usr/bin/lightspark" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libfontconfig.so.1 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libatk-1.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpcre.so.3 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangocairo-1.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libfreetype.so.6 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libICE.so.6 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangox-1.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libglib-2.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libXmu.so.6 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgio-2.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgdk_pixbuf-2.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgmodule-2.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libcairo.so.2 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpango-1.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libSM.so.6 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgthread-2.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangoft2-1.0.so.0 could be avoided if "debian/mozilla-plugin-lightspark/usr/lib/mozilla/plugins/liblightsparkplugin.so" were not uselessly linked against it (they use none of its symbols).

Using -Wl--as-needed could be useful.

Thanks for considering,

OdyX

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

Should be fixed in next tagged release. Thanks a lot for the advice.

Changed in lightspark:
status: New → Fix Committed
Revision history for this message
Didier Raboud (odyx) wrote :

Great, thanks !

Changed in lightspark:
status: Fix Committed → Fix Released
Revision history for this message
Didier Raboud (odyx) wrote :
Download full text (4.4 KiB)

Hi,

I just compiled lightspark from git, and the "overkill linking" is again present with the shared library:

dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/lightspark/usr/bin/lightspark debian/lightspark/usr/bin/tightspark" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libffi.so.5 could be avoided if "debian/lightspark/usr/bin/lightspark debian/lightspark/usr/bin/tightspark" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: symbol rt used by debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0 found in none of the libraries.
dpkg-shlibdeps: warning: symbol pt used by debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0 found in none of the libraries.
dpkg-shlibdeps: warning: symbol sys used by debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0 found in none of the libraries.
dpkg-shlibdeps: warning: dependency on libffi.so.5 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libatk-1.0.so.0 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpcre.so.3 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangocairo-1.0.so.0 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libfreetype.so.6 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libICE.so.6 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpangox-1.0.so.0 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libglib-2.0.so.0 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libXmu.so.6 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgio-2.0.so.0 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgdk_pixbuf-2.0.so.0 could be avoided if "debian/liblightspark0.5/usr/lib/liblightspark.so.0.5.0" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgmodule...

Read more...

Changed in lightspark:
status: Fix Released → In Progress
Changed in lightspark:
milestone: none → lightspark-0.4.2
Changed in lightspark:
status: In Progress → Fix Committed
Changed in lightspark:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.