[Openswan Users] Compile error

Rodrigo Weymar Fonseca r.weymar at tu-bs.de
Fri Jul 28 12:59:24 CEST 2006


Quoting Paul Wouters <paul at xelerance.com>:

> On Thu, 27 Jul 2006, Yiannis Mavroukakis wrote:
> 
> > While compiling the KLIPS module i get the following errors
> >
> > /usr/src/other/openswan-2.4.6rc3/modobj26/aes/ipsec_alg_aes.c:82: error:
> syntax error before string constant
> > /usr/src/other/openswan-2.4.6rc3/modobj26/aes/ipsec_alg_aes.c:82: warning:
> type defaults to `int' in declaration of `MODULE_PARM'
> > /usr/src/other/openswan-2.4.6rc3/modobj26/aes/ipsec_alg_aes.c:82: warning:
> function declaration isn't a prototype
> > /usr/src/other/openswan-2.4.6rc3/modobj26/aes/ipsec_alg_aes.c:82: warning:
> data definition has no type or storage class
> > make[3]: ***
> [/usr/src/other/openswan-2.4.6rc3/modobj26/aes/ipsec_alg_aes.o] Error 1
> > make[2]: *** [_module_/usr/src/other/openswan-2.4.6rc3/modobj26] Error 2
> > make[2]: Leaving directory `/usr/src/kernel/linux-2.6.17.6'
> > make[1]: *** [module26] Error 2
> > make[1]: Leaving directory `/usr/src/other/openswan-2.4.6rc3'
> > make: *** [module] Error 2
> >
> > kernel version is 2.6.17.4 gcc version 3.4.6
> 
> Can you try changing line 82 of ipsec_alg_aes.c from:
> 
> 	MODULE_PARM(auth_id, "i");
> 
> to:
> 	module_param(auth_id, ulong, 0600);
> 
> And see if that fixes it for you?
> 
> Paul


Yesterday I got an error in the same line (82), just complaining a missing ")"
instead. I just commented the line MODULE_PARM(auth_id, "i"); out and the patch
compiled ok (just without full AES support I guess). 

openswan-2.4.6rc3

gcc version 4.1.0

Kernel 2.6.16.13-4 (Suse 10.1)


Regards,

Rodrigo


More information about the Users mailing list