buildworld fails in libbsnmp

Ruslan Ermilov ru at freebsd.org
Mon Oct 11 00:44:39 PDT 2004


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 
> hacked around the problem of gensnmptree being run from /usr/sbin (not 
> the /usr/obj build tree).
> 
gensnmptree is properly bootstrapped and run from ${WORLDTMP} if so
necessary, here's an excerpt from Makefile.inc1:

: .if ${BOOTSTRAPPING} < 502128
: _gensnmptree=   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=0

> ===> libbsnmp
> ===> modules
> ===> modules/snmp_atm
> cc -fpic -DPIC -O -pipe 
> -I/home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/ngatm/snmp_atm 
> -I/home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/bsnmp/lib 
> -I/home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/bsnmp/snmpd 
> -I. -Wsystem-headers -Wall -Wno-format-y2k -W -Wstrict-prototypes 
> -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual 
> -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline 
> -Wnested-externs -Wredundant-decls -c 
> /home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/ngatm/snmp_atm/snmp_atm.c 
> -o snmp_atm.So
> /home/src/lib/libbsnmp/modules/snmp_atm/../../../../contrib/ngatm/snmp_atm/snmp_atm.c:64: 
> error: `OIDX_begemotAtm' undeclared here (not in a function)
> *** Error code 1
> 
> Stop in /home/src/lib/libbsnmp/modules/snmp_atm.
> *** Error code 1
> 
> Stop in /home/src/lib/libbsnmp/modules.
> *** Error code 1


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20041011/43545241/attachment.bin


More information about the freebsd-current mailing list