O.K.
I've modified the ebuild. Dunno, why it looks in /lib/modules for the
kernel sources.
The build succeeded.

My uname -r is 2.6.10-20050111. emerge installs the module
in /lib/modules/2.6.10/CiscoVPN.
I've moved this to /lib/modules/2.6.10-2005011 by hand.

Insmod /lib/modules/2.6.10-2005011/CiscoVPN/cisco_ipsec.ko gives:

insmod: error inserting
'/lib/modules/2.6.10-20050111/CiscoVPN/cisco_ipsec.ko': -1 Invalid
module format

Quite the same as tha manual build.



On Mon, 2005-01-31 at 12:52 +0100, Holly Bostick wrote:
> Frank Schafer wrote:
> > Hi,
> > 
> > I got the Cisco-VPN tarball onesmore from our company copy.
> > 
> > vpnclient-linux-4.0.5.Rel-k9.tar.gz is in /usr/portage/distfiles
> > 
> > emerge cisco-vpnclient-3des
> > Calculating dependencies ...done!
> >>>>emerge (1 of 1) net-misc/cisco-vpnclient-3des-4.0.5 to /
> >>>>md5 src_uri ;-) vpnclient-linux-4.0.5.Rel-k9.tar.gz
> >>>>Unpacking source...
> >>>>Unpacking vpnclient-linux-4.0.5.Rel-k9.tar.gz
> > to /var/tmp/portage/cisco-vpnc
> > lient-3des-4.0.5/work
> >  * Applying driver_build_CC.patch ...
> > [ ok ]
> >>>>Source unpacked.
> > ./driver_build.sh
> > Cisco Systems VPN Client Version 4.0.5 (Rel)
> > Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved.
> > 
> > usage:
> >     ./driver_build.sh 'kernel_src_dir'
> > 
> > 'kernel_src_dir' is the directory containing the linux kernel sour 
> > ce
> > 
> > 
> > !!! ERROR: net-misc/cisco-vpnclient-3des-4.0.5 failed.
> > !!! Function src_compile, Line 45, Exitcode 0
> > !!! Failed to make module 'cisco_ipsec'
> > !!! If you need support, post the topmost build error, NOT this status
> > message.
> > 
> > Hmmm.
> > 
> > I have a plain vanilly 2.6.10 kernel from kernel.org running.
> > 
> > Seems Gentoo in fact isn't the distro for real work. :(
> > 
> 
> This seems a trifle unjust.
> 
> Is this
> 
>  > ./driver_build.sh
>  > Cisco Systems VPN Client Version 4.0.5 (Rel)
>  > Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved.
>  >
>  > usage:
>  >     ./driver_build.sh 'kernel_src_dir'
>  >
>  > 'kernel_src_dir' is the directory containing the linux kernel sour
>  > ce
>  >
>  >
> 
> the entirety of the error when the driver_build script runs? I'm looking 
> at the ebuild and it does have a parameter for the kernel source to be found
> 
> src_compile () {
>       unset ARCH
>       sh ./driver_build.sh /lib/modules/${KV}/build
>       [ ! -f ./cisco_ipsec -a ! -f ./cisco_ipsec.ko ] \
>               && die "Failed to make module 'cisco_ipsec'"
> 
> So the script should not be running without parameters as shown, 
> unless.... for some reason, /lib/modules/${KV}/build is meaningless?
> 
> Which could be because.... no link to /linux in /usr/src? Kernel source 
> linked to /linux downloaded but not actually built/made (different 
> source from the currently running kernel)?
> 
> Just a couple of ideas.
> 
> HTH,
> Holly
> 
> --
> [email protected] mailing list
> 


--
[email protected] mailing list

Reply via email to