unnecassary dependencies of apache2 modules

Bug #458274 reported by jfcgauss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: apache2

on ubuntu 9.04 having apache2-worker installed, please check out the output of
ldd -r -u /usr/lib/apache2/modules/mod_* 2>&1 | grep -v 'undefined symbol:\|lookup error:\|direct dependencies:\|^$'
there are some unnecassary library dependencies of apache2 modules

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: wl nvidia
Package: apache2 2.2.11-2ubuntu2.3
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apache2
Uname: Linux 2.6.28-16-generic x86_64

Revision history for this message
jfcgauss (jfcgauss) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Can you describe what is uneccessary in a bit more detail please?

Regards
chuck

Changed in apache2 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
jfcgauss (jfcgauss) wrote :

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).

Revision history for this message
Chuck Short (zulcss) wrote :

Sounds reasonable can you show me examples of bugs you reported?

Thanks
chuck

Changed in apache2 (Ubuntu):
importance: Low → Wishlist
Revision history for this message
jfcgauss (jfcgauss) wrote :
Chuck Short (zulcss)
Changed in apache2 (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed in lucid.

Regards
chuck

Changed in apache2 (Ubuntu):
status: Triaged → 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.