Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 18:46:55 -0800
From:      "Li, Qing" <qing.li@bluecoat.com>
To:        "Octavian Ionescu" <itavy@itavy.com>, "Qing Li" <qingli@freebsd.org>
Cc:        freebsd-current@freebsd.org, kuriyama@freebsd.org
Subject:   RE: Problem with snmp build after update
Message-ID:  <B583FBF374231F4A89607B4D08578A4302A26ED7@bcs-mail03.internal.cacheflow.com>
In-Reply-To: <494980BE.3080002@itavy.com>
References:  <494980BE.3080002@itavy.com>

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

The fix for this build failure is straightforward. "at.c" performs the
ARP table retrieval. The RTF_LLINFO flag does not need to be specified
any more.

You can patch the /net-snmp-5.4.2.1/agent/mibgroup/mibII/at.c file
yourself for now. I have done the "make install" successfully after=20
the patch. Here is the diff:

-----------------------------------------
689,693c689
< #ifdef RTF_LLINFO
<       mib[5] =3D RTF_LLINFO;
< #else
<       mib[5] =3D 0;
< #endif
---
>     mib[5] =3D RTF_LLINFO;
-----------------------------------------

I assume you have not defined CHECK_RT_FLAGS, if so, more bits
need to be updated.

I have cc:'d the maintainer kuriyama@freebsd.org here for the actual
commit.

Thanks,

-- Qing


> -----Original Message-----
> From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-
> current@freebsd.org] On Behalf Of Octavian Ionescu
> Sent: Wednesday, December 17, 2008 2:44 PM
> To: freebsd-current@freebsd.org
> Subject: Problem with snmp build after update
>=20
> hi,
>=20
>=20
> when i tried to compile net-snmp after the last update it gives me the
> following error
>=20
>  cc -I../../include -I. -I../../agent -I../../agent/mibgroup
> -I../../snmplib -DNETSNMP_ENABLE_IPV6 -O -pipe -Ufreebsd8
> -Dfreebsd8=3Dfreebsd8 =
-DAPPLLIB_EXP=3D/usr/local/lib/perl5/5.8.8/BSDPAN
> -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/local/include
> -I/usr/local/lib/perl5/5.8.8/mach/CORE -c mibII/at.c  -fPIC -DPIC -o
> mibII/.libs/at.o
> mibII/at.c: In function 'ARP_Scan_Init':
> mibII/at.c:689: error: 'RTF_LLINFO' undeclared (first use in this
> function)
> mibII/at.c:689: error: (Each undeclared identifier is reported only
> once
> mibII/at.c:689: error: for each function it appears in.)
> *** Error code 1
>=20
> Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-
> 5.4.2.1/agent/mibgroup.
> *** Error code 1
>=20
> Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent.
> *** Error code 1
>=20
> Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1.
> *** Error code 1
>=20
> Stop in /usr/ports/net-mgmt/net-snmp.
>=20
> after i have read in UPDATING i found:
>=20
> 20081214:
>         __FreeBSD_version 800059 incorporates the new arp-v2 rewrite.
>         RTF_CLONING, RTF_LLINFO and RTF_WASCLONED flags are
eliminated.
>=20
>=20
> --
> Best regards,
> Octavian
>=20
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-
> unsubscribe@freebsd.org"



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