For instance
ldd -r -u /usr/lib/apache2/modules/mod_ssl.so 2>&1 | grep -v 'undefined
symbol:\|lookup error:\|direct dependencies:\|^$'
gives
/lib/libuuid.so.1
/lib/librt.so.1
/lib/libcrypt.so.1
/lib/libpthread.so.0
/lib/libdl.so.2
that is, mod_ssl.so module (which is a shared library) has been linked during
"compile-link" time with the above unnecassary (unused) shared libraries.
Either these unnecessary libs (possibly in the gcc command line like "-ldl
-lpthread -lcrypt -lrt" etc. during compile-link time) should be removed (that
is, mod_ssl build should be fixed) or we should add something like
-Wl,--as-needed to mod_ssl build. hope that is clear enough. this is not a
showstopper, but these unused dependencies cost time and memory when loading
these modules.
actually i had mentioned unused dependency problems of tons of shared
libraries in ubuntu/debian a while back, dont know what happened then.
(hint: man ldd).
--
unnecassary dependencies of apache2 modules
https://bugs.launchpad.net/bugs/458274
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs