On Wed, 2011-09-14 at 09:11 -0400, Charles Lepple wrote: > On Sep 14, 2011, at 8:48 AM, Frédéric Bohé wrote: > > > On Wed, 2011-09-14 at 12:24 +0000, Charles Lepple wrote: > >> Author: clepple-guest > >> Date: Wed Sep 14 12:24:58 2011 > >> New Revision: 3225 > >> URL: http://trac.networkupstools.org/projects/nut/changeset/3225 > >> > >> Log: > >> Silence redefined PACKAGE_ macro warnings > >> > [...] > > I am not sure this one is needed. It seems that, on Solaris, > > nut-scanner uses a very old net-snmp library lying in /usr/sfw on the > > buildbot. Using this library raise an error on usmAESPrivProtocol > > constant. > > When building the snmp-ups driver, the tool chain uses a newer net- > > snmp > > libray lying in /usr/local, > > While you have both libraries installed, please check to see why the > two tools are using different libraries.
What I understand here, is that snmp-ups is linked with LIBNETSNMP_LIBS only which points to /usr/local. Whereas nut-scanner is linked with LIBNETSNMP_LIBS _and_ other libs (i.e. LIBUSB_LIBS) which introduce paths to /usr/sfw. This leads nut-scanner to be built against the lib in /usr/sfw rather than /usr/local. > > > which do not raise the error on > > usmAESPrivProtocol and hopefully shouldn't require this commit. > > I am in the process of trying to remove this old library on the > > buildbot > > but I am not very familiar with SunOS so I try to be very careful. > > What versions of net-snmp do you have? We should list the older > version in the "no longer needed?" comment in snmp-ups.c In the config.log, net-snmp version is 5.4.2.1 (the library which is in /usr/local). In /usr/sfw, "./net-snmp-config --version" gives : 5.0.9 I have not understood what you mean with "no longer needed" comment ? -- Team Open Source Eaton - http://powerquality.eaton.com -------------------------------------------------------------------------- _______________________________________________ Nut-upsdev mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev
