[Nut-upsuser] make errors on solaris express dev 02/07

Zoltan Farkas zoly at daxtechnologies.com
Tue Mar 6 17:20:39 CET 2007

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


-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com] 
Sent: Tuesday, March 06, 2007 11:03 AM
To: Peter Selinger
Cc: Zoltan Farkas; nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] make errors on solaris express dev 02/07

On 3/6/07, Peter Selinger <selinger at 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

More information about the Nut-upsuser mailing list