configure/autoconf is missing getloadavg on 5.2

Hanspeter Roth hampi at rootshell.be
Fri Jan 16 10:51:43 PST 2004


Hello,

in icewm-1.2.14pre8 configure on FreeBSD 5.2 claims that
getloadavg() be not available:


configure:6804: checking for getloadavg
configure:6847: gcc -o conftest -fpermissive -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -Woverloaded-virtual -W -fno-exceptions -fno-rtti -I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.cc  >&5
configure:6819: error: declaration of C function `char getloadavg()' conflicts 
   with
/usr/include/stdlib.h:258: error: previous declaration `int getloadavg(double*, 
   int)' here
[...]

However when trying a tiny configure.in getloadavg() is found:

AC_INIT(configure.in)
AC_PREREQ([2.50])
AC_CHECK_FUNCS(failed getloadavg sysctlbyname)
AC_OUTPUT(Makefile)


On FreeBSD 4.9 getloadavg() is found.
Why doesn't icewm's configure find getloadavg() on 5.2?

Icewm-1.2.14pre8 may be found at:
http://prdownloads.sourceforge.net/icewm/icewm-1.2.14pre8.tar.gz?download


-Hanspeter


More information about the freebsd-questions mailing list