[OpenSER-Devel] [ openser-Bugs-1855859 ] Modules are linked with more libs than necessary

SourceForge.net noreply at sourceforge.net
Tue Jul 1 11:20:17 CEST 2008


Bugs item #1855859, was opened at 2007-12-21 17:26
Message generated for change (Settings changed) made by henningw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1855859&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dan (dan_pascu)
>Assigned to: Henning Westerholt (henningw)
Summary: Modules are linked with more libs than necessary

Initial Comment:
The link command for modules receives a generic LIBS variable that contains more libraries that needed for some of the modules. As a result they are linked against libraries from which they do not use any symbol, resulting in unwanted dependencies. Any distribution  that packages some modules separately may have undesired dependencies for those modules as a result.

I think that the LIBS varaible for modules should only contain the bare minimum (which is most likely only libc) and let the modules add the extra libs they need on a per module basis.

In the attached file you can see the extra unused libraries that a debian build has found for some of the modules packages separately.


----------------------------------------------------------------------

Comment By: Henning Westerholt (henningw)
Date: 2008-02-12 16:04

Message:
Logged In: YES 
user_id=337916
Originator: NO

Hi Dan,

there are actually two problems: 

Some problems include to many libs in their makefile, i've fixed this for
db_unixodbc.
This is not so easy to fix for perl and perlvdb, because they use perl
tool to generate the dependencies.

The other one is, as you wrote, that the LIBS variable from the root
Makefile contains to many libs. This is mainly an issue if you've enabled
TLS, as you can see in your error log.

Henning

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1855859&group_id=139143



More information about the Devel mailing list