Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2004 19:51:13 +0100
From:      Hanspeter Roth <hampi@rootshell.be>
To:        freebsd-questions@freebsd.org
Subject:   configure/autoconf is missing getloadavg on 5.2
Message-ID:  <20040116185112.GA3424@gicco.homeip.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040116185112.GA3424>