arnaud.quette@mgeups.com
2005-Aug-17 08:08 UTC
[Nut-upsuser] Re: Problems compiling snmp-ups on Solaris
Hello Kim, First, I've forwarded your mail to the nut user mailing list. Thanks to register there (https://alioth.debian.org/mail/?group_id=30602) and we'll follow on the thread on it.> Terribly sorry to bother you, but I was hoping to get nut to work with > our Symmetra, which uses SNMP. nut-2.0.2 built fine on my Solaris 8 box, > but when I do "make build-snmp" it dies with this error: > > gcc -I../include -O -Wall -Wsign-compare -o snmp-ups snmp-ups.o main.o > dstate.o \> ../common/state.o ../common/upsconf.o ../common/parseconf.o \ > ../common/common.o ../common/setenv.o ../common/inet_aton.o> -lnsl -lsocket > Undefined first referenced> symbol in file> snmp_close snmp-ups.o > snmp_synch_response snmp-ups.o > snmp_errstring snmp-ups.o > snmp_api_errstring snmp-ups.o > snmp_pdu_create snmp-ups.o > snmp_errno snmp-ups.o > snmp_error snmp-ups.o > snmp_sess_error snmp-ups.o > snmp_free_pdu snmp-ups.o > snmp_add_null_var snmp-ups.o > snmp_add_var snmp-ups.o > snmp_sess_init snmp-ups.o > init_snmp snmp-ups.o > read_objid snmp-ups.o > snmp_open snmp-ups.o > ld: fatal: Symbol referencing errors. No output written to snmp-ups > collect2: ld returned 1 exit status > make[1]: *** [snmp-ups] Error 1 > make[1]: Leaving directory `/tmp/nut-2.0.2/drivers' > > I'm using net-snmp 5.2.1.2, and Solaris ld. I was wondering if you had > any suggestions. > > Thanks very much for your time.I don't see the net-snmp libs in the above link step (should be "... -L/usr/lib -lnetsnmp -lm -lwrap") what gives you a "net-snmp-config --version" and where net-snmp is installed? I think the libs wasn't found, or at list the net-snmp-config which gives back the necessary compile/link info... Check in your config.log (search for snmp): ... checking for Net-SNMP libs result: -L/usr/lib -lnetsnmp -lm -lwrap ... Arnaud Quette --- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt OpenSource Developer - http://arnaud.quette.free.fr/ Debian Developer - http://people.debian.org/~aquette/ ... and much more ...