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

SourceForge.net noreply at sourceforge.net
Fri Sep 12 15:06:45 CEST 2008


Bugs item #1855859, was opened at 2007-12-21 17:26
Message generated for change (Comment added) 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: ver devel
Status: Open
Resolution: None
Priority: 3
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-09-12 13:06

Message:
Another round of fixes in trunk, the modules perlvdb, perl and mi_xmlrpc
remains.

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

Comment By: Henning Westerholt (henningw)
Date: 2008-07-10 11:38

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

Now also fixed for bdb_recover, the modules mi_xmlrpc, perlvdb and
snmpstats remains.

I don't want to change them at the current state of development, as i
don't have time to test them sufficiently. I think its ok to fix them in
1.5, decrease priority.

Henning

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

Comment By: Henning Westerholt (henningw)
Date: 2008-07-09 16:28

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

Hi, now fixed for carrierroute, h350 and db_berkeley.

Henning

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

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