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.
On Wed, Sep 01, 2010 at 09:57:12AM -0400, Brother Railgun of Reason wrote:> 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.10Oh, footnote to that: I specified the host triple because although the correct triple for this system is actually i686-pc-solaris2.10, nut configuration was incorrectly detecting it as i386-pc-solaris2.10. This is probably Solaris 10's fault, as even though this is a dual 32/64-bit Solaris 10 install on x86_64 hardware (P4 Xeons, Nocona architecture), Solaris insists on reporting uname -p as i386 rather than i686 or amd64. -- 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.
Citeren Brother Railgun of Reason <alaric op caerllewys.net>:> 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 -ladmThis isn't a Makefile bug. The above flags are found through 'net-snmp-config --libs', which on Solaris 10 isn't configured properly. This has to be fixed by the Solaris packager and/or in the NetSNMP package. If you want to override the automatically detected value, use --with-snmp-libs (see also docs/configure.txt). Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected)