The cisco-vpnclient-3des-4.0.5.ebuild does not compile on new kernels.
Steps to Reproduce:
1. emerge cisco-vpnclient
Apply the same changes as done for version 4.6* in patch file "4.6.03.0190-2.6.14.patch" to the 4.0.5 source.
The 4.0.5 ebuild should be kept, since newer versions (4.6, 4.7) do not work properly on some systems. For example on my machine ;-)
Sorry that this took so long, I had to dig up an older distfile.
Created attachment 83095 [details, diff]
Patch for GCC 3.4 and linux kernel >=2.6.14
This is a patch to get the cisco client 4.0.5 compiling with gcc 3.4 on newer kernels (>=2.6.14). It is based on the original version (that means without the 2.6.14 kernel patch).
I hope it works on other machines than mine, too.
So your newer patch is required instead?
(In reply to comment #3)
> So your newer patch is required instead?
A few weeks after I opened this bug I changed my GCC from version 3.3* to 3.4.5. Since then I couldn't compile the client any more. (I read they changed something in the compiler ABI ?)
So I looked a bit around in the patches for newer versions of the client as well as in the compiler messages. Then I made my new patch, which allowed me to compile with both GCC 3.4 and kernel >= 2.6.14.
The old patch (as now done in cisco-vpnclient-3des-4.0.5-r1.ebuild) still works if you have a kernel >= 2.6.14 and GCC 3.3.
The new patch is for kernel >= 2.6.14 and GCC >= 3.4.
I think the ebuild should decide on compile time which patch(es) must be applied, so all combinations of kernels and GCC can be used.
Thanks for your help on that old version !
Hrrrmn... are you sure that the new patch won't work on GCC 3.3?
Created attachment 84772 [details]
Compile logs for cisco-vpnclient-3des-4.0.5-r1 with both GCC 3.3.5 and GCC 3.4.5
I did some testing with the current 4.0.5-r1 ebuild on kernel 2.6.16 and it did compile well on GCC 3.3.5 (it was a emerge --buildpkgonly). But it did not compile on GCC 3.4.5.
The attached zip file contains emerge logs and emerge --info output for both compiler versions.
The patch I submitted before is for GCC 3.4.5.
I'm having problems getting vpnclient to compile. I have a good instance of it for linux-2.6.18-gentoo-r3, but it refuses to go for linux-2.6.19-gentoo-r1. I'll attach output from `emerge --info` as well following this posting:
# emerge net-misc/cisco-vpnclient-3des
Calculating dependencies... done!
>>> Emerging (1 of 1) net-misc/cisco-vpnclient-3des-4.8.00.0490 to /
* vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz MD5 ;-) ... [ ok ]
* vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz RMD160 ;-) ... [ ok ]
* vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz SHA1 ;-) ... [ ok ]
* vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz SHA256 ;-) ... [ ok ]
* vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* Found kernel object directory:
* Found sources for kernel version:
>>> Unpacking source...
>>> Unpacking vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz to /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient ...
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient modules
make: Entering directory `/usr/src/linux-2.6.19-gentoo-r1'
CC [M] /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient/linuxcniapi.o
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient/linuxcniapi.c:12:26: linux/config.h: No such file or directory
make: *** [/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient/linuxcniapi.o] Error 1
make: *** [_module_/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient] Error 2
make: Leaving directory `/usr/src/linux-2.6.19-gentoo-r1'
make: *** [default] Error 2
!!! ERROR: net-misc/cisco-vpnclient-3des-4.8.00.0490 failed.
ebuild.sh, line 1576: Called dyn_compile
ebuild.sh, line 945: Called src_compile
cisco-vpnclient-3des-4.8.00.0490.ebuild, line 50: Called die
!!! Failed to make module 'cisco_ipsec'
!!! If you need support, post the topmost build error, and the call stack if relevant.
Created attachment 103864 [details]
Output from "emerge --info" for vpnclient compile failure (WDAWSON)
Uhh... 4.8.0 doesn't have much to do with this bug. There was a bug for 2.6.19, but I resolved that earlier today.
We had to remove all of the older VPN Client versions from the tree due to another bug, so this won't likely ever be "FIXED" as it were. Marking this as WONTFIX.