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

Peter Selinger selinger at mathstat.dal.ca
Tue Mar 6 16:57:57 CET 2007


How I love "svn blame"! 

   571 selinger-guest if ( test "${ac_cv_func_connect}" = "no" ); then
     2    aquette       AC_CHECK_LIB(nsl, printf, [
     2    aquette               NETLIBS="-lnsl"
     2    aquette       ], [], [])
     2    aquette
     2    aquette       AC_CHECK_LIB(socket, printf, [
   571 selinger-guest           NETLIBS="${NETLIBS} -lsocket"
     2    aquette       ], [], [])
     2    aquette fi

These checks have been there since revision 2 (Thu, 27 Jan 2005), and
probably for a long time before that. (My contribution in r571 was
only to fix the quoting style). 

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)

-- Peter

Charles Lepple wrote:
> 
> Peter,
> 
> I will look at this more later, but do you know why configure.in is
> checking for "printf" in -lnsl?
> 
> checking for printf in -lnsl... yes
> checking for printf in -lsocket... yes
> 
> It seems like it should be checking for a socket function instead.
> 
> Zoltan, can you send the config.out generated by configure? Please
> gzip it - it will probably be big.
> 
> On 3/6/07, Zoltan Farkas <zoly at daxtechnologies.com> wrote:
> > See attached the configure.out file for the configure output.
> >
> > Thanks
> >
> > --zoly
> >
> > -----Original Message-----
> > From: Charles Lepple [mailto:clepple at gmail.com]
> > Sent: Monday, March 05, 2007 11:19 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/5/07, Zoltan Farkas <zoly at 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 1
> >
> > I 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
> >
> >
> 
> 
> -- 
> - Charles Lepple
> 




More information about the Nut-upsuser mailing list