Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120127 - cisco-vpnclient-3des-4.0.5.ebuild does not compile on new kernels
Summary: cisco-vpnclient-3des-4.0.5.ebuild does not compile on new kernels
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Chris Gianelloni (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 18:44 UTC by Jens Rutschmann
Modified: 2007-04-20 18:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for GCC 3.4 and linux kernel >=2.6.14 (vpn.patch,1.74 KB, patch)
2006-03-25 09:45 UTC, Jens Rutschmann
Details | Diff
Compile logs for cisco-vpnclient-3des-4.0.5-r1 with both GCC 3.3.5 and GCC 3.4.5 (emerge_logs.zip,4.90 KB, application/zip)
2006-04-16 04:49 UTC, Jens Rutschmann
Details
Output from "emerge --info" for vpnclient compile failure (WDAWSON) (emerge-info.3,3.41 KB, text/plain)
2006-12-12 07:30 UTC, Willard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Rutschmann 2006-01-23 18:44:50 UTC
The cisco-vpnclient-3des-4.0.5.ebuild does not compile on new kernels.

Reproducible: Always
Steps to Reproduce:
1. emerge cisco-vpnclient

Solution:
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 ;-)
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-24 07:10:50 UTC
Sorry that this took so long, I had to dig up an older distfile.
Comment 2 Jens Rutschmann 2006-03-25 09:45:51 UTC
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.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-30 18:46:34 UTC
So your newer patch is required instead?
Comment 4 Jens Rutschmann 2006-03-31 03:07:56 UTC
(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 !
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-04-11 04:53:17 UTC
Hrrrmn... are you sure that the new patch won't work on GCC 3.3?
Comment 6 Jens Rutschmann 2006-04-16 04:49:46 UTC
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.
Comment 7 Willard Dawson 2006-12-12 07:10:07 UTC
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:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.19-gentoo-r1/build
 * Found sources for kernel version:
 *     2.6.19-gentoo-r1
>>> 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[1]: 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[2]: *** [/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.00.0490/work/vpnclient] Error 2
make[1]: 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.
Call stack:
  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.

Comment 8 Willard Dawson 2006-12-12 07:30:04 UTC
Created attachment 103864 [details]
Output from "emerge --info" for vpnclient compile failure (WDAWSON)
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-12 12:43:16 UTC
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.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-20 18:08:46 UTC
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.