linking issues

Andreas Ericsson ae at op5.se
Mon May 23 15:17:48 CEST 2005


sean finney wrote:
> hey,
> 
> On Mon, May 23, 2005 at 09:16:00AM +0200, Andreas Ericsson wrote:
> 
>>>i believe there's an autoconf macro that can determine whether or not
>>>the libraries are necessary.
>>
>>Nah. autoconf only determines if libraries are necessary for certain 
>>functions. For nagios, -lnsl isn't required on Linux. To the best of my 
> 
> 
> right.  so check if they're necessary for a couple functions that
> typically need it :)
> 

Yes, but checking if it's needed for functions that aren't used won't 
yield useful results.

> 
>>knowledge it isn't required on *BSD either, but I'm not certain. What I 
>>was curious about was on which platforms it is actually required, or if 
>>it could be dropped entirely (as I believe).
> 
> 
> i assumed it would be necessary for solaris, but i just fired off
> a build that ran successfully without it, so maybe it can just be
> removed.  i guess the worst case scenario is that it gets taken out
> and someone send a mail to nagios-devel saying that we need it
> after all...
> 

Sun/Solaris being the main culprit of unnecessary linkings to libnsl, I 
think it's safe to remove it. The attached patch can be used for that. 
Apply with -p1.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios-no-libnsl.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20050523/014b127b/attachment.ksh>


More information about the Developers mailing list