[nut-Bugs][310582] Net-SNMP CFLAGS are used for drivers even when --without-snmp is used

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Sun Feb 10 15:41:43 UTC 2008


Bugs item #310582, was opened at 2008-02-10 15:41
>Status: Closed
Priority: 3
Submitted By: Charles Lepple (clepple-guest)
Assigned to: Nobody (None)
Summary: Net-SNMP CFLAGS are used for drivers even when --without-snmp is used 
Category: None
Group: None
>Resolution: Fixed


Initial Comment:
This problem was brought up in this thread:

http://article.gmane.org/gmane.comp.monitoring.nut.user/3273

I think there are two problems:

 * When --without-snmp is passed in, we should not look for Net-SNMP.
 * Even when Net-SNMP is found, we should not use those flags when compiling other drivers.

We can get away with just fixing the latter problem, but we really should fix both in case someone has a really broken Net-SNMP installation.

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

>Comment By: Arjen de Korte (adkorte-guest)
Date: 2008-02-10 16:41

Message:
I think we should only use the target specific CFLAGS for targets that are selected. By doing so, we allow maximum re-use of object files, while still allowing to exclude really broken <enter target here> installations. Fixed in r1296.

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

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=411542&aid=310582&group_id=30602



More information about the NUT-tracker mailing list