From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 15:29:03 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 9B9BD16A4CE for ; Fri, 16 Jan 2004 15:29:03 -0800 (PST) Received: from sarevok.webteckies.org (node123e0.a2000.nl [24.132.35.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 609C143D53 for ; Fri, 16 Jan 2004 15:29:02 -0800 (PST) (envelope-from mdev@sarevok.webteckies.org) Received: by sarevok.webteckies.org (Postfix, from userid 100) id 729E5B828; Sat, 17 Jan 2004 00:29:01 +0100 (CET) From: Melvyn Sopacua Organization: WebTeckies.org To: freebsd-questions@freebsd.org Date: Sat, 17 Jan 2004 00:29:01 +0100 User-Agent: KMail/1.5.94 References: <20040116185112.GA3424@gicco.homeip.net> In-Reply-To: <20040116185112.GA3424@gicco.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_9OHCAFSWoljvozG"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200401170029.01307.freebsd-questions@webteckies.org> Subject: Re: configure/autoconf is missing getloadavg on 5.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 23:29:03 -0000 --Boundary-02=_9OHCAFSWoljvozG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 16 January 2004 19:51, Hanspeter Roth wrote: > 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]) Insert here: AC_LANG(C++) > AC_CHECK_FUNCS(failed getloadavg sysctlbyname) > AC_OUTPUT(Makefile) Then try again. I think this is the gcc 3.x compiler getting stricter about types (char and= =20 int conflict, but gcc 2.9x which is in -STABLE doesn't care). =2D-=20 Melvyn =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D =46reeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue De= c 30=20 14:31:47 CET 2003 =20 root@sarevok.idg.nl:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --Boundary-02=_9OHCAFSWoljvozG Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBACHO9Ov9JNmfFN5URAjGJAJ9puRCFncIbvh4DXP20pvAUXuOenwCgi6JR Hdv3VrphNOihHl2KOOo5nII= =2ye1 -----END PGP SIGNATURE----- --Boundary-02=_9OHCAFSWoljvozG--