From owner-freebsd-current@FreeBSD.ORG Mon Oct 11 07:44:39 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD7A416A4CE for ; Mon, 11 Oct 2004 07:44:39 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89C1343D3F for ; Mon, 11 Oct 2004 07:44:38 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i9B7ibnr062695; Mon, 11 Oct 2004 10:44:37 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 94438-10; Mon, 11 Oct 2004 10:44:36 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i9B7iasG062692; Mon, 11 Oct 2004 10:44:36 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i9B7iPrj063064; Mon, 11 Oct 2004 10:44:25 +0300 (EEST) (envelope-from ru) Date: Mon, 11 Oct 2004 10:44:25 +0300 From: Ruslan Ermilov To: Nate Lawson Message-ID: <20041011074425.GB62985@ip.net.ua> References: <416A0CD4.7040309@root.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nVMJ2NtxeReIH9PS" Content-Disposition: inline In-Reply-To: <416A0CD4.7040309@root.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: FreeBSD Current Subject: Re: buildworld fails in libbsnmp X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 07:44:39 -0000 --nVMJ2NtxeReIH9PS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 10, 2004 at 09:32:20PM -0700, Nate Lawson wrote: > I did some searching and can't find this in the archive. I already=20 > hacked around the problem of gensnmptree being run from /usr/sbin (not=20 > the /usr/obj build tree). >=20 gensnmptree is properly bootstrapped and run from ${WORLDTMP} if so necessary, here's an excerpt from Makefile.inc1: : .if ${BOOTSTRAPPING} < 502128 : _gensnmptree=3D usr.sbin/bsnmpd/gensnmptree : .endif If your /usr/include/osreldate.h fools buildworld into thinking it's running on a more recent system than you actually have, then you can try to "fix" it by passing the OSRELDATE knob of "make buildworld" the correct value of your __FreeBSD_version. If unsure, you can always do: make buildworld OSRELDATE=3D0 > =3D=3D=3D> libbsnmp > =3D=3D=3D> modules > =3D=3D=3D> modules/snmp_atm > cc -fpic -DPIC -O -pipe=20 > -I/home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/ngatm/snmp_= atm=20 > -I/home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/bsnmp/lib= =20 > -I/home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/bsnmp/snmpd= =20 > -I. -Wsystem-headers -Wall -Wno-format-y2k -W -Wstrict-prototypes=20 > -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual=20 > -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline= =20 > -Wnested-externs -Wredundant-decls -c=20 > /home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/ngatm/snmp_at= m/snmp_atm.c=20 > -o snmp_atm.So > /home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/ngatm/snmp_at= m/snmp_atm.c:64:=20 > error: `OIDX_begemotAtm' undeclared here (not in a function) > *** Error code 1 >=20 > Stop in /home/src/lib/libbsnmp/modules/snmp_atm. > *** Error code 1 >=20 > Stop in /home/src/lib/libbsnmp/modules. > *** Error code 1 Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --nVMJ2NtxeReIH9PS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBajnZqRfpzJluFF4RAqN/AJ90iqqQpY7MEpJOzXG4Ci+pTvJlJACfX/A3 mFtVZEvA7V2XzlkDnBNkxyA= =FEZZ -----END PGP SIGNATURE----- --nVMJ2NtxeReIH9PS--