[prev in list] [next in list] [prev in thread] [next in thread]
List: tcpdump-patches
Subject: compile error inet.c (libpcap-current) on BSD/OS 3.1
From: Tomomi Suzuki <stomomi () earth ! email ! ne ! jp>
Date: 2000-08-23 9:55:36
[Download RAW message or body]
Hello,
I couldn't compile libpcap-current.tar.gz (2000.08.22) on
BSD/OS 3.1.
Error message is as follows:
--- cut here ---
shlicc2 -O2 -I. -DHAVE_CONFIG_H -c ./inet.c
./inet.c: In function `pcap_lookupdev':
./inet.c:98: `IF_NAMESIZE' undeclared (first use this function)
./inet.c:98: (Each undeclared identifier is reported only once
./inet.c:98: for each function it appears in.)
./inet.c:98: size of array `device' has non-integer type
*** Error code 1
Stop.
--- cut here ---
This is because BSD/OS 3.1 has old-fashioned include files which
has no IF_NAMESIZE defined in /usr/include/net/if.h.
KAME modified BSD/OS 3.1 has IF_NAMESIZE.
I wrote a ad hoc patch. But I think there will be a better way
to correct this bug.
Thanks in advance.
------------------------------------------------------------------
Tomomi Suzuki
E-Mail: stomomi@earth.email.ne.jp
["inet.c.diff" (Text/Plain)]
*** inet.c.old Wed Aug 23 18:07:50 2000
--- inet.c Wed Aug 23 18:08:30 2000
***************
*** 82,87 ****
--- 82,91 ----
(isdigit((p)->ifa_name[2]) || (p)->ifa_name[2] == '\0'))
#endif
+ #ifndef IF_NAMESIZE
+ #define IF_NAMESIZE IFNAMSIZ
+ #endif
+
/*
* Return the name of a network interface attached to the system, or NULL
* if none can be found. The interface must be configured up; the
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic