This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
glibc-2.1 and ip_fw.h
- To: libc-alpha@cygnus.com
- Subject: glibc-2.1 and ip_fw.h
- From: Byeong-ryeol Kim <jinbo21@mail.kornet.nm.kr>
- Date: Sat, 20 Feb 1999 22:31:58 +0900 (KST)
- Reply-To: Byeong-ryeol Kim <jinbo21@soback.kornet.nm.kr>
I tried to compile linuxconf-1.2r5, but met errors below.
There is no ip_fw.h in /usr/include/*, but it is only in linux
directory of kernel source.
The firewall.cc file contains header files in glibc2 as follows:
...
#ifdef __GLIBC__
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <netinet/ip_icmp.h>
#include <net/if.h>
#include <netinet/ip_fw.h>
#else
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/icmp.h>
#include <linux/if.h>
#include <linux/timer.h>
#include <linux/ip_fw.h>
#endif
....
But, there is no ip_fw.h in /usr/include/netinet and elsewhere.
As a consequence, the compile process aborts when compiling
firewall.cc.(see 1)
I tried /usr/src/linux/include/linux/ip_fw.h with no avail.(see 2)
I know, in this case. one sould create one's own private header
file, but it is inconvenient and this ip_fw.h is necessary for
programs for firewall.
Is this intentional or from some other reason?
Would this file appear in glibc-2.1.1?
....
1) while compiling original source
make[2]: Leaving directory
/usr/src/redhat/BUILD/linuxconf-1.12r5/modules/pppdialin'
make[2]: Entering directory
/usr/src/redhat/BUILD/linuxconf-1.12r5/modules/firewall'
firewall.cc
firewall.cc:16: netinet/ip_fw.h: No such file or directory
make[2]: *** [firewall.o] Error 1
make[2]: Leaving directory
/usr/src/redhat/BUILD/linuxconf-1.12r5/modules/firewall'
make[1]: *** [all] Error 1
make[1]: Leaving directory /usr/src/redhat/BUILD/linuxconf-1.12r5/modules'
make: *** [all] Error 1
2) while including <linux/ip_fw.h> in firewall.cc
make[2]: Entering directory
/usr/src/redhat/BUILD/linuxconf-1.12r5/modules/firewall'
firewall.cc
firewall.cc: In method nt IPFW_RULES_INPUT::disable(int, class SSTRING *)':
firewall.cc:359: P_FW_F_ACCEPT' undeclared (first use this function)
firewall.cc:359: (Each undeclared identifier is reported only once
firewall.cc:359: for each function it appears in.)
firewall.cc:362: warning: control reaches end of non-void function
PFW_RULES_INPUT::disable(int, SSTRING *)'
firewall.cc: In method nt IPFW_RULES_INPUT::enable(int, class SSTRING *)':
firewall.cc:370: aggregate Struct ip_fw bf' has incomplete type and cannot
be initialized
firewall.cc:376: confused by earlier errors, bailing out
make[2]: *** [firewall.o] Error 1
make[2]: Leaving directory
/usr/src/redhat/BUILD/linuxconf-1.12r5/modules/firewall'
make[1]: *** [all] Error 1
make[1]: Leaving directory /usr/src/redhat/BUILD/linuxconf-1.12r5/modules'
make: *** [all] Error 1
--
"Where there is a will, there is a way." jinbo21@soback.kornet.nm.kr
kbeyl@kids.kotel.co.kr
For the future of you and me! hitel: jinbo21