[Nut-upsdev] ./configure on RHEL4

William H. Bell w.bell at physics.gla.ac.uk
Tue Jun 6 13:23:27 UTC 2006


Hi,

I'm trying to build nut version 2.0.3 on a RHEL43 rebuild (Scientific LINUX 
43).  While trying to configure the package I get the following error:

]$ ./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc/nut 
--with-statepath=/var/nut --with-drvpath=/usr/sbin 
--with-cgipath=/var/www/cgi-bin --with-cgi --with-user=nutmon 
--with-group=nutmon --mandir=/usr/share/man --datadir=/usr/share/nut 
--enable-shared
...
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for gdImagePng in -lgd... no
configure: WARNING: libgd not found - CGI build will fail
...

Looking on the RHEL43 machine libgd is clearly present and contains the needed 
symbol:

]$  nm /usr/lib/libgd.a | grep gdImagePng
00001580 T gdImagePng
000014b5 T gdImagePngCtx
00000ae8 T gdImagePngCtxEx
000015ba T gdImagePngEx
0000152b T gdImagePngPtr
000014d7 T gdImagePngPtrEx
          U gdImagePngCtx
00000000 T gdImagePngToSink

The "WARNING" does indeed mean that the CGI part of the nut build fails. (I 
have built this package successfully under Scientific LINUX 305: a RHEL305 
rebuild and do not see this error there.)

Could the configure file be somehow out of date?  On the RHEL43 platform the 
configure script generates a few other false errors too:

checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no

which is clearly clearly not true:

]$ locate varargs.h
/usr/lib/gcc/i386-redhat-linux/3.4.3/include/varargs.h

Does anyone have any suggestions?

Thanks and Best Regards,

Will



More information about the Nut-upsdev mailing list