Zoltan Farkas
2007-Mar-06 03:54 UTC
[Nut-upsuser] make errors on solaris express dev 02/07
make fails at drivers: make[1]: Entering directory `/export/home/zoly/Documents/trunk/drivers' /bin/sh ../libtool --tag=CC --mode=link gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare -o al175 al175.o ../common/libcommon.a ../common/upsconf.o ../common/parseconf.o ../common/state.o main.o dstate.o serial.o gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare -o al175 al175.o ../common/upsconf.o ../common/parseconf.o ../common/state.o main.o dstate.o serial.o ../common/libcommon.a Undefined first referenced symbol in file bind dstate.o accept dstate.o listen dstate.o socket dstate.o ld: fatal: Symbol referencing errors. No output written to al175 collect2: ld returned 1 exit status make[1]: *** [al175] Error 1 make[1]: Leaving directory `/export/home/zoly/Documents/trunk/drivers' make: *** [all-recursive] Error 1 (mailto:nut-upsuser@lists.alioth.debian.org) can anyone help me with this? I was trying out the latest svn code. thanks --zoly -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20070305/cab89f01/attachment.html
Charles Lepple
2007-Mar-06 04:18 UTC
[Nut-upsuser] make errors on solaris express dev 02/07
On 3/5/07, Zoltan Farkas <zoly@daxtechnologies.com> wrote:> > make fails at drivers: > > make[1]: Entering directory > `/export/home/zoly/Documents/trunk/drivers' > /bin/sh ../libtool --tag=CC --mode=link gcc -I../include > -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 > -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g -Dsolaris2 -I. > -I/usr/sfw/include -O -Wall -Wsign-compare -o al175 al175.o > ../common/libcommon.a ../common/upsconf.o ../common/parseconf.o > ../common/state.o main.o dstate.o serial.o > gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal > -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g > -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare -o al175 al175.o > ../common/upsconf.o ../common/parseconf.o ../common/state.o main.o dstate.o > serial.o ../common/libcommon.a > Undefined first referenced > symbol in file > bind dstate.o > accept dstate.o > listen dstate.o > socket dstate.o > ld: fatal: Symbol referencing errors. No output written to al175 > collect2: ld returned 1 exit status > make[1]: *** [al175] Error 1 > make[1]: Leaving directory > `/export/home/zoly/Documents/trunk/drivers' > make: *** [all-recursive] Error 1I believe those symbols are pulled in from "-lnsl" on the linker command line, but I don't see that in the output above. Can you cut-and-paste the output from when you ran "./configure" ? (it is safe to re-run it with the same options if you don't still have the output.) Also, please do not sent HTML mail to the list (unless it is necessary to highlight logs, etc.) -- - Charles Lepple
Zoltan Farkas
2007-Mar-06 16:24 UTC
[Nut-upsuser] make errors on solaris express dev 02/07
I did the change and executed autoreconf; ./configure ; make. The result: ............................................................... gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare -o powerpanel powerpanel.o ../common/upsconf.o ../common/parseconf.o ../common/state.o main.o dstate.o serial.o ../common/libcommon.a -lsocket -lnsl if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare -MT snmp-ups.o -MD -MP -MF ".deps/snmp-ups.Tpo" -c -o snmp-ups.o snmp-ups.c; \ then mv -f ".deps/snmp-ups.Tpo" ".deps/snmp-ups.Po"; else rm -f ".deps/snmp-ups.Tpo"; exit 1; fi /bin/bash ../libtool --tag=CC --mode=link gcc -I../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/sfw/include -g -Dsolaris2 -I. -I/usr/sfw/include -O -Wall -Wsign-compare -o snmp-ups snmp-ups.o ../common/libcommon.a ../common/upsconf.o ../common/parseconf.o ../common/state.o main.o dstate.o -R../lib -L/usr/sfw/lib -lnetsnmp -lgen -lpkcs11 -lkstat -lelf -lm -ldl -lnsl -lsocket -ladm -lsocket -lnsl libtool: link: only absolute run-paths are allowed make[1]: *** [snmp-ups] Error 1 make[1]: Leaving directory `/export/home/zoly/Documents/nut/trunk/drivers' make: *** [all-recursive] Error 1 --zoly -----Original Message----- From: Charles Lepple [mailto:clepple@gmail.com] Sent: Tuesday, March 06, 2007 11:03 AM To: Peter Selinger Cc: Zoltan Farkas; nut-upsuser@lists.alioth.debian.org Subject: Re: [Nut-upsuser] make errors on solaris express dev 02/07 On 3/6/07, Peter Selinger <selinger@mathstat.dal.ca> wrote:> How I love "svn blame"!Sorry to imply that it was you - I just figured you might know based on the automake conversion. Interesting that the autoconf part didn't need more changes for automake.> I agree that these checks are useless. Probably a botched > copy-and-paste job. It should be: > > AC_CHECK_LIB(nsl, gethostbyname) > AC_CHECK_LIB(socket, connect)That looks right, but I don't have a Solaris machine handy to check that. Zoltan, can you try that change, rerun autoreconf, and let us know how it works? -- - Charles Lepple
Paul Cooley
2007-Mar-07 18:39 UTC
[Nut-upsuser] cannot connect to usb ups on solaris express 02/07
I've not tried the latest 2.0.5 release, but for support of the USB Tripp Lite 1000OMNILCD, I had to go to the head of the development tree (2 months ago). I used the newhidups driver. If you are curious what I did I drop a bit of documentation here (link below), mind you it is for Gentoo Linux. It may still help. http://linuxlore.blogspot.com/2006/12/howto-set-up-nut-on-gentoo-linux-for.html [snip] Paul Cooley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20070307/e2d7559f/attachment.html