[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 01913) ftp://ftp.linux-ipv6.org/pub/usagi/patch/ipsec/ipsec-2.4.20-pre10-ALL.patch.gz



Hi there,

I have a problem compiling the kernel WITH_OUT_ IPSec, especially IPv6 as a 
module.


Source code (patch) for ipv6/ip6_output.c tells:

....
+       int retval = 0;
+       void *encdata = NULL;
+#ifdef CONFIG_IPV6_IPSEC      
+       unsigned enclength = 0;    
+       struct ipsec_sp *policy_ptr = NULL;
+       int ipsec_action = 0;      
+       struct ipv6_txoptions *newopt = NULL;
+       struct ipv6_txoptions *opt2 = NULL;
+#endif /* CONFIG_IPV6_IPSEC */

Compiling:

cc  -D__KERNEL__ -I/usr/src/linux/include  -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common 
-Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE  
-DKBUILD_BASENAME=ip6_output  -c -o ip6_output.o ip6_output.c
ip6_output.c: In function `ip6_xmit':
ip6_output.c:212: parse error before `int'
make[2]: *** [ip6_output.o] Error 1
make[2]: Leaving directory `/usr/src/linux/net/ipv6'
make[1]: *** [_modsubdir_ipv6] Error 2
make[1]: Leaving directory `/usr/src/linux/net'
make: *** [_mod_net] Error 2

I also got:

-DKBUILD_BASENAME=ip6_output  -c -o ip6_output.o ip6_output.c
ip6_output.c: In function `ip6_xmit':
ip6_output.c:212: parse error before `int'
ip6_output.c:255: `encdata' undeclared (first use in this function)
ip6_output.c:255: (Each undeclared identifier is reported only once
ip6_output.c:255: for each function it appears in.)
make[2]: *** [ip6_output.o] Error 1

Source tells:

+#endif /* CONFIG_IPV6_IPSEC */
+
+       if (opt || encdata) {
+#ifdef CONFIG_IPV6_IPSEC
+               int encaddsize = 0;
+#endif
+               int head_room = 0;  


I did:

+#ifdef CONFIG_IPV6_IPSEC
+	if (opt || encdata) {
+#else
+	if (opt) {

Remember: I want to compile IPv6 as module WITH_OUT_ IPSec :-) With IPsec it 
works well.

TIA!

ciao, Marc