compile error ip6t_REJECT.c and 2.4.27-rc5
I'm getting an error as you can see below, there was also something with ULOG that errored, but since I didn't need that I went back in menuconfig and disabled it.
This is with the patch-o-matic-ng CVS of 07/08/2004 at 13:14 CEST.
It used to compile before (back with 2.4.25-rc3 and I still have it running). The machine is a RH7.3 box.
[...]
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-rc5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.27-rc5/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip6t_MARK -c -o ip6t_MARK.o ip6t_MARK.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-rc5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.27-rc5/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip6t_REJECT -c -o ip6t_REJECT.o ip6t_REJECT.c ip6t_REJECT.c: In function `maybe_reroute':
ip6t_REJECT.c:61: warning: implicit declaration of function `dst_output'ip6t_REJECT.c: In function `send_reset':
ip6t_REJECT.c:76: parse error before `int'
ip6t_REJECT.c:123: warning: passing arg 1 of `ipv6_addr_copy' from incompatible pointer type
ip6t_REJECT.c:124: warning: passing arg 1 of `ipv6_addr_copy' from incompatible pointer type
ip6t_REJECT.c:125: structure has no member named `fl_ip_sport'
ip6t_REJECT.c:126: structure has no member named `fl_ip_dport'
ip6t_REJECT.c:127: `err' undeclared (first use in this function)
ip6t_REJECT.c:127: (Each undeclared identifier is reported only once
ip6t_REJECT.c:127: for each function it appears in.)
ip6t_REJECT.c:127: warning: implicit declaration of function `ip6_dst_lookup'
ip6t_REJECT.c:135: structure has no member named `header_len'
ip6t_REJECT.c:136: structure has no member named `trailer_len'
ip6t_REJECT.c:149: structure has no member named `header_len'
ip6t_REJECT.c:154: warning: implicit declaration of function `dst_metric'
ip6t_REJECT.c:154: `RTAX_HOPLIMIT' undeclared (first use in this function)ip6t_REJECT.c: In function `send_unreach':
ip6t_REJECT.c:252: sizeof applied to an incomplete type
ip6t_REJECT.c:257: dereferencing pointer to incomplete type
ip6t_REJECT.c:275: warning: passing arg 1 of `ipv6_addr_copy' from incompatible pointer type
ip6t_REJECT.c:276: warning: passing arg 1 of `ipv6_addr_copy' from incompatible pointer type
ip6t_REJECT.c:277: structure has no member named `fl_icmp_type'
ip6t_REJECT.c:278: structure has no member named `fl_icmp_code'
ip6t_REJECT.c:298: warning: implicit declaration of function `dst_pmtu'
ip6t_REJECT.c:306: structure has no member named `header_len'
ip6t_REJECT.c:306: structure has no member named `trailer_len'
ip6t_REJECT.c:319: structure has no member named `header_len'
ip6t_REJECT.c:324: `RTAX_HOPLIMIT' undeclared (first use in this function)
make[2]: *** [ip6t_REJECT.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.27-rc5/net/ipv6/netfilter'
make[1]: *** [_modsubdir_ipv6/netfilter] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27-rc5/net'
make: *** [_mod_net] Error 2
[root@core1-fe0-gw1 linux-2.4.27-rc5]#
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Hi,
From: Robby <[email protected]>
Date: Sat, 7 Aug 2004 21:36:34 +0200 (CEST)
Quoted 5 lines
I'm getting an error as you can see below, there was also something with ULOG that errored, but since I didn't need that I went back in menuconfig and disabled it.
This is with the patch-o-matic-ng CVS of 07/08/2004 at 13:14 CEST.
It used to compile before (back with 2.4.25-rc3 and I still have it running). The machine is a RH7.3 box.
Oh, this is for 2.6 kernel. You can get reject target for 2.4 kernel
from http://cvs.netfilter.org/cgi-bin/viewcvs.cgi/*checkout*/patch-o-matic-ng/REJECT/linux/net/ipv6/netfilter/ip6t_REJECT.c?rev=1.1
Harald, why don't you rescue version 1.1 from CVS tree for 2.4 kernel ?
-----------------------------------------------------------------
Yasuyuki KOZAKAI @ USAGI Project <[email protected]>
I also have an error with ipt_ULOG.c:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27-rc5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.27-rc5/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=ipt_ULOG -c -o ipt_ULOG.o ipt_ULOG.c ipt_ULOG.c: In function `ip_ulog_fn':
ipt_ULOG.c:379: `qlen' undeclared (first use in this function)
ipt_ULOG.c:379: (Each undeclared identifier is reported only once
ipt_ULOG.c:379: for each function it appears in.)
make[2]: *** [ipt_ULOG.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.27-rc5/net/ipv4/netfilter'
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27-rc5/net'
make: *** [_mod_net] Error 2
[root@core1-fe0-gw1 linux-2.4.27-rc5]#
Quoted 19 lines
----------------------------------------
From: Yasuyuki Kozakai <[email protected]>
Sent: Sun Aug 08 01:05:24 CEST 2004
To: <[email protected]>
Subject: Re: compile errorip6t_REJECT.cand 2.4.27-rc5Hi,
From: Robby <[email protected]>
Date: Sat, 7 Aug 2004 21:36:34 +0200 (CEST)Quoted 5 lines
I'm getting an error as you can see below, there was also something with ULOG that errored, but since I didn't need that I went back in menuconfig and disabled it.
This is with the patch-o-matic-ng CVS of 07/08/2004 at 13:14 CEST.
It used to compile before (back with 2.4.25-rc3 and I still have it running). The machine is a RH7.3 box.
Quoted 11 lines
Oh, this is for 2.6 kernel. You can get reject target for 2.4 kernel
from http://cvs.netfilter.org/cgi-bin/viewcvs.cgi/*checkout*/patch-o-matic-ng/REJECT/linux/net/ipv6/netfilter/ip6t_REJECT.c?rev=1.1Harald, why don't you rescue version 1.1 from CVS tree for 2.4 kernel ?
-----------------------------------------------------------------
Yasuyuki KOZAKAI @ USAGI Project <[email protected]>
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Quoted 7 lines
----------------------------------------
From: Yasuyuki Kozakai <[email protected]>
Sent: Sun Aug 08 01:05:24 CEST 2004
To: <[email protected]>
Subject: Re: compile errorip6t_REJECT.cand 2.4.27-rc5
[snip]
Quoted 4 lines
Oh, this is for 2.6 kernel. You can get reject target for 2.4 kernel
from http://cvs.netfilter.org/cgi-bin/viewcvs.cgi/*checkout*/patch-o-matic-ng/REJECT/linux/net/ipv6/netfilter/ip6t_REJECT.c?rev=1.1
[/snip]
Thanks, it compiles now. :)
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Quoted 1 line · Yasuyuki Kozakai
Harald, why don't you rescue version 1.1 from CVS tree for 2.4 kernel ?
done.
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie