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

Zoltan Farkas zoly at daxtechnologies.com
Wed Mar 7 02:43:10 CET 2007


disabled to build snmp:

./configure --with-user=ups --with-group=ups --without-snmp

now I get the following compilation error:

if gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../include  -O -Wall -Wsign-compare -MT ssl.o -MD -MP -MF ".deps/ssl.Tpo" -c -o ssl.o ssl.c; \
then mv -f ".deps/ssl.Tpo" ".deps/ssl.Po"; else rm -f ".deps/ssl.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../include  -O -Wall -Wsign-compare -MT sstate.o -MD -MP -MF ".deps/sstate.Tpo" -c -o sstate.o sstate.c; \
then mv -f ".deps/sstate.Tpo" ".deps/sstate.Po"; else rm -f ".deps/sstate.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../include  -O -Wall -Wsign-compare -MT access.o -MD -MP -MF ".deps/access.Tpo" -c -o access.o access.c; \
then mv -f ".deps/access.Tpo" ".deps/access.Po"; else rm -f ".deps/access.Tpo"; exit 1; fi
access.c: In function `mask_cmp':
access.c:73: error: syntax error before "u_int32_t"
make[1]: *** [access.o] Error 1
make[1]: Leaving directory `/export/home/zoly/Documents/nut/trunk/server'
make: *** [all-recursive] Error 1


will disable ipv6 and try again.

--zoly





-----Original Message-----
>From Zoltan Farkas <zoly at daxtechnologies.com>
Sent Tue 3/6/2007 2:06 PM
To Charles Lepple <clepple at gmail.com>
Cc nut-upsuser at lists.alioth.debian.org <nut-upsuser at lists.alioth.debian.org>
Subject RE: [Nut-upsuser] make errors on solaris express dev 02/07

This is the configure I have executed:

./configure --with-user=ups --with-group=ups

Here are the versions of the tools:

$ libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

$ autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.


$ automake --version
automake (GNU automake) 1.9.6
Written by Tom Tromey <tromey at redhat.com>.

Will try to disable Net-SNMP and HAL and see if it builds

Thanks

--zoly




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

On 3/6/07, Zoltan Farkas <zoly at daxtechnologies.com> wrote:
> /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

I think libtool is objecting to the '-R../lib' part. Did you use any
relative paths in anything that you passed to configure?

You might try disabling HAL or Net-SNMP support and seeing if that goes away.

Which versions of autoconf, libtool, automake, etc. are you using?

--
- Charles Lepple


_______________________________________________
Nut-upsuser mailing list
Nut-upsuser at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser




More information about the Nut-upsuser mailing list