From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 10:51:43 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5083F16A4CE for ; Fri, 16 Jan 2004 10:51:43 -0800 (PST) Received: from smtp.hispeed.ch (mxout.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E05D43D69 for ; Fri, 16 Jan 2004 10:51:14 -0800 (PST) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (217-162-157-231.dclient.hispeed.ch [217.162.157.231])i0GIpCCr026309 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 16 Jan 2004 19:51:12 +0100 Received: from goofy.here (localhost.here [127.0.0.1]) by gicco.homeip.net (8.12.10/8.12.10) with ESMTP id i0GIpDwe003458 for ; Fri, 16 Jan 2004 19:51:13 +0100 (CET) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by goofy.here (8.12.10/8.12.10/Submit) id i0GIpDr5003457 for freebsd-questions@freebsd.org; Fri, 16 Jan 2004 19:51:13 +0100 (CET) (envelope-from hampi@rootshell.be) X-Authentication-Warning: goofy.here: idefix set sender to hampi@rootshell.be using -f Date: Fri, 16 Jan 2004 19:51:13 +0100 From: Hanspeter Roth To: freebsd-questions@freebsd.org Message-ID: <20040116185112.GA3424@gicco.homeip.net> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: configure/autoconf is missing getloadavg on 5.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 18:51:43 -0000 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