[Nut-upsuser] Makefile bug in nut-2.4.3

Brother Railgun of Reason alaric at caerllewys.net
Wed Sep 1 13:57:12 UTC 2010


I'm just in the process of upgrading from nut-2.4.1 to 2.4.3 on a 
dual-Xeon box running Solaris 10 amd64 (i686-pc-solaris2.10).  I 
configured as follows:

./configure --prefix=/opt/nut --with-gnu-ld --with-serial --without-usb 
--with-cgi --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, if SNMP 
is enabled.

(Fortunately for me, I don't need to use SNMP and was able to avoid the 
problem by simply adding --without-snmp.)



-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric at caerllewys.net   alaric at metrocast.net   phil at co.ordinate.org
         Renaissance Man, Unix ronin, Perl hacker, Free Stater
                 It's not the years, it's the mileage.



More information about the Nut-upsuser mailing list