Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 1998 04:34:16 -0600
From:      Jacques Vidrine <nectar@nectar.com>
To:        Andreas Klemm <andreas@klemm.gtn.com>, current@FreeBSD.ORG
Subject:   Re: cmu-snmp 3.3.1 compile problems, current changed last recently ?
Message-ID:  <19980402043416.23282@nectar.com>
In-Reply-To: <19980401232229.42895@klemm.gtn.com>; from Andreas Klemm on Wed, Apr 01, 1998 at 11:22:29PM %2B0200
References:  <19980401232229.42895@klemm.gtn.com>

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


Yes, that section should be:

#if defined(netbsd1)
#define ia_next ia_list.tqe_next
#define if_next if_list.tqe_next
#endif
#if defined(freebsd3)
#define ia_next ia_link.tqe_next
#define if_next if_link.tqe_next
#endif

Jacques Vidrine <n@nectar.com>

On Wed, Apr 01, 1998 at 11:22:29PM +0200, Andreas Klemm wrote:
> cc -I../.. -I./../.. -I./../../snmplib  -I./.. -I.. -pipe -O -Dfreebsd3
> -Dfreebsd2 -c interfaces.c
> interfaces.c: In function `Interface_Scan_Next':
> interfaces.c:975: structure has no member named `ia_list'
> interfaces.c:994: structure has no member named `if_list'
> interfaces.c:998: structure has no member named `if_list'
> interfaces.c: In function `Interface_Get_Ether_By_Index':
> interfaces.c:1072: storage size of `arpcom' isn't known
> interfaces.c: In function `Address_Scan_Next':
> interfaces.c:1181: structure has no member named `ia_list'
> interfaces.c:1194: structure has no member named `if_list'
> 
> interfaces.c:
> [...]
> #if defined(netbsd1) || defined(freebsd3)
> #define ia_next ia_list.tqe_next
> 	^^^^^^^
> #define if_next if_list.tqe_next
> #endif
> [...]
>                 while (ia) {
>                     klookup((unsigned long)ia ,  (char *)&in_ifaddr,
> sizeof(in_ifaddr));
>                     if (in_ifaddr.ia_ifp == ifnetaddr) break;
>                     ia = in_ifaddr.ia_next;
> 				   ^^^^^^^
>                 }
> 
> Any idea how to fix this ?
> 
> -- 
> Andreas Klemm   http://www.FreeBSD.ORG/~andreas
> powered by ,,symmetric multiprocessor FreeBSD''
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message

-- 
Jacques Vidrine <n@nectar.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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