Displaying 3 results from an estimated 3 matches for "libnetsnmp_ldflags".
2010 Sep 01
2
Makefile bug in nut-2.4.3
...--with-gd-includes=-I/usr/local/include
--with-gd-libs="-L/usr/local/lib -R/usr/local/lib -lgd" --with-user=nut
--with-group=nut --host=i686-pc-solaris2.10 --build=i686-pc-solaris2.10
--target=i686-pc-solaris2.10
This resulte in a drivers/Makefile containing the following definition:
LIBNETSNMP_LDFLAGS = -R../lib -L/usr/sfw/lib -lnetsnmp -lgen -lpkcs11
-lkstat -lelf -lm -ldl -lnsl -lsocket -ladm
This does not work, as the Solaris link directive -R specifies runtime
link paths and is not permitted to be a relative path. This will
therefore cause a link failure when building the SNMP drivers,...
2009 Dec 15
1
patch for m4/nut_check_libnetsnmp.m4
...S_ORIG="${CFLAGS}"
LDFLAGS_ORIG="${LDFLAGS}"
@@ -38,6 +39,7 @@
fi
AC_MSG_CHECKING(for Net-SNMP headers)
+ CPPFLAGS="${CPPFLAGS} ${CFLAGS}"
AC_TRY_CPP([#include <net-snmp/net-snmp-config.h>],
[AC_MSG_RESULT(yes)
],
@@ -49,7 +51,8 @@
LIBNETSNMP_LDFLAGS="${LDFLAGS}"
fi
- dnl restore original CFLAGS and LDFLAGS
+ dnl restore original CPPFLAGS CFLAGS and LDFLAGS
+ CPPFLAGS="${CFLAGS_ORIG}"
CFLAGS="${CFLAGS_ORIG}"
LDFLAGS="${LDFLAGS_ORIG}"
----------------------------
--
Tim Rice Mul...
2009 May 27
2
New NUT user with HP R3000XR problem
...I've just installed nut-2.4.1 on a Solaris 10 x86 machine to monitor a
HP R3000XR UPS.
SunOS babylon4 5.10 Generic_138889-08 i86pc i386 i86pc Solaris
First of all, I encountered a single problem during the build. After
configuring, drivers/Makefile ends up containing the following line:
LIBNETSNMP_LDFLAGS = -R../lib -L/usr/sfw/lib -lnetsnmp -lgen [...]
This is clearly wrong, as runtime lib specifications cannot be relative.
By correcting that to -R/usr/sfw/lib, everything compiled and installed
fine.
(This occurs regardless of whether or not snmp support is enabled.)
I've already seen f...