linking issues

Andreas Ericsson ae at op5.se
Sun May 22 21:09:02 CEST 2005


Andreas Ericsson wrote:
> What's the reason for linking in libmath and libnsl?
> 
> Insofar as I know no functions in either nagios or any of the cgi's use 
> any advanced math and should work well without it.
> 

Except for statuswrl.c, which I don't build (meh the stupid). It seems 
curious in the base dir though.

> libnsl is another library out of place. Perhaps it's needed by Sun and 
> friends. On Linux (Fedora 3, Openwall current, Debian sarge) Nagios 
> builds nicely without them, although I know Sun (and some others) have 
> huge problems understanding any C-code at all without it. Perhaps -lnsl 
> should be linked explicitly on those and dropped for other platforms?
> 

This remains a mystery.

To remove the -lm stuff in base, you can apply the attached patch.

-- 
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-base-nomath.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20050522/fab05b90/attachment.ksh>


More information about the Developers mailing list