sean finney <sean...@debian.org> writes: > dpkg-shlibdeps: warning: dependency on libSM.so.6 could be avoided if > "debian/fbpager/usr/bin/fbpager" 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/fbpager/usr/bin/fbpager" were not uselessly linked against it (they > use none of its symbols). > > looking in /usr/share/autoconf/autoconf/libs.m4: > > # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to > # check for ICE first), but we must link in the order -lSM -lICE or > # we get undefined symbols. So assume we have SM if we have ICE. > # These have to be linked with before -lX11, unlike the other > # libraries we check for below, so use a different variable. > # John Interrante, Karl Berry > AC_CHECK_LIB(ICE, IceConnectionNumber, > [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS) > LDFLAGS=$ac_save_LDFLAGS > > it seems there ought to be a better test for that...
Hmm, certainly it would be nice to avoid these warnings. Most X11 programs, to the best of my knowledge, do not use any functions from the ICE or SM libraries, which are fairly esoteric. But the AC_PATH_XTRA macro has always (at least since 2001 or so) checked for the ICE and SM libraries and added them to $X_PRE_LIBS, so presumably some programs that use Autoconf depend on that behavior, and removing it would break them. In other words, I would like to do something about this (or to ask the upstream Autoconf developers to do so) but I don't see a way to do it without breaking other things. Suggestions are welcome, of course... -- Ben Pfaff http://benpfaff.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org