Re: [owl-users] cisco vpnclient

From: Bernhard Fischer (bernhard@private)
Date: Sun Feb 19 2006 - 23:17:20 PST


Am Fr 17.02.2006 21:41 schrieb Solar Designer <solar@private>:

> On Fri, Feb 17, 2006 at 08:31:37PM +0100, Bernhard Fischer wrote:
> > That is the relevant part from the driver_build.sh script:
> > #########snip###########
> > INCLUDES="-I. -I${KSRCDIR}/include"
> > CFLAGS="-O2 -DCNI_LINUX_INTERFACE -D__KERNEL__ -DMODULE
> > -D_LOOSE_KERNEL_NAMES -DHAVE_CONFIG_H"
> 
> Note the lack of -DMODVERSIONS here. Also, if your kernel is built for
> SMP, there must be -D__SMP__ here.

Yes, you are right.

> 
> > rpm!root:~/vpnclient# ./driver_build.sh /usr/src/linux
> 
> FWIW, it is not a good idea to be compiling stuff as root.  We've got
> pseudo-user "sources" for compiling the kernel and kernel modules.

hey Alexander, you are so strict ;-)
it's only a test-machine ... but i'll accept your suggestion and i will
do better next time

> 
> > rpm!root:~/vpnclient# insmod ./cisco_ipsec
> > ./cisco_ipsec: ./cisco_ipsec: unresolved symbol eth_type_trans
> > ./cisco_ipsec: ./cisco_ipsec: unresolved symbol __kfree_skb
> > ./cisco_ipsec: ./cisco_ipsec: unresolved symbol alloc_skb
> > ./cisco_ipsec: ./cisco_ipsec: unresolved symbol htons
> > ./cisco_ipsec: ./cisco_ipsec: unresolved symbol skb_under_panic
> > ./cisco_ipsec: ./cisco_ipsec: unresolved symbol kmalloc
> [...]
> 
> So it fails to find even the most essential symbols.  My guess is that
> you have the kernel built with CONFIG_MODVERSIONS, but you are not
> building the module in the same way.  You need to either rebuild the
> kernel without modversions or build the module with modversions as
> well.

Once again you saved my day!
It doesn't help to define MODVERSIONS inside the buildscript. I had to
turn off CONFIG_MODVERSIONS in the kernelconfiguration.

> 
> -- 
> Alexander Peslyak <solar at openwall.com>
> GPG key ID: B35D3598 fp: 6429 0D7E F130 C13E C929 6447 73C3 A290 B35D
> 3598
> http://www.openwall.com - bringing security into open computing
> environments
> 
> Was I helpful? Please give your feedback here:
> http://rate.affero.net/solar

Thanks a lot
Bernhard



This archive was generated by hypermail 2.1.3 : Sun Feb 19 2006 - 23:21:12 PST