Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2004 10:44:25 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Nate Lawson <nate@root.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: buildworld fails in libbsnmp
Message-ID:  <20041011074425.GB62985@ip.net.ua>
In-Reply-To: <416A0CD4.7040309@root.org>
References:  <416A0CD4.7040309@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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