Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284519 - net-misc/cisco-vpnclient-3des-4.8.01.0640 failed (error: 'struct net_device' has no member named 'hard_start_xmit')
Summary: net-misc/cisco-vpnclient-3des-4.8.01.0640 failed (error: 'struct net_device' ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 234361
Blocks:
  Show dependency tree
 
Reported: 2009-09-10 19:13 UTC by Barbu Eros Iulian
Modified: 2012-02-12 11:11 UTC (History)
6 users (show)

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


Attachments
new ebuild (cisco-vpnclient-3des-4.8.01.0640-r1.ebuild,2.54 KB, text/plain)
2009-12-31 21:36 UTC, Marshall Banana
Details
patch file (interceptor2.patch,2.97 KB, patch)
2009-12-31 21:37 UTC, Marshall Banana
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Barbu Eros Iulian 2009-09-10 19:13:14 UTC
Emerging (1 of 1) net-misc/cisco-vpnclient-3des-4.8.01.0640
 * vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz RMD160 SHA1 SHA256 size ;-) ...      [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.31-gentoo/build
 * Found sources for kernel version:
 *     2.6.31-gentoo
>>> Unpacking source...
>>> Unpacking vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz to /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work
 * Applying 4.8.01.0640-amd64.patch ...                                   [ ok ]
 * Applying 4.8.01.0640-2.6.24.patch ...                                  [ ok ]
>>> Source unpacked in /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work
>>> Compiling source in /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient ...
ln: creating symbolic link `Module.symvers': File exists
 * Preparing cisco_ipsec module
make -j2 HOSTCC=i486-pc-linux-gnu-gcc CROSS_COMPILE=i486-pc-linux-gnu- LDFLAGS= clean default 
rm -f linuxcniapi.o frag.o IPSecDrvOS_linux.o interceptor.o linuxkernelapi.o
rm -f cisco_ipsec.mod.*
make -C /lib/modules/2.6.31-gentoo/build SUBDIRS=/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient modules
rm -f cisco_ipsec.{o,ko}
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo'
  CC [M]  /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/linuxcniapi.o
  CC [M]  /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/frag.o
  CC [M]  /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.o
  CC [M]  /var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/linuxkernelapi.o
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c: In function 'interceptor_init':
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c:151: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c:152: error: 'struct net_device' has no member named 'get_stats'
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c:153: error: 'struct net_device' has no member named 'do_ioctl'
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c: In function 'add_netdev':
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c:291: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c:292: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c: In function 'remove_netdev':
/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.c:314: error: 'struct net_device' has no member named 'hard_start_xmit'
make[2]: *** [/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-misc/cisco-vpnclient-3des-4.8.01.0640/work/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo'
make: *** [default] Error 2


Reproducible: Always
Comment 1 Barbu Eros Iulian 2009-09-10 19:14:13 UTC
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.10.1-r0, 2.6.31-gentoo i686)
=================================================================
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1400MHz-with-glibc2.0
Timestamp of tree: Thu, 10 Sep 2009 14:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-march=pentium-m -pipe -fomit-frame-pointer -fno-delayed-branch -fcaller-saves -freorder-blocks -freorder-functions -falign-jumps -finline-functions -frename-registers -fweb -fno-trapping-math -ffast-math -falign-functions=64"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -pipe -fomit-frame-pointer -fno-delayed-branch -fcaller-saves -freorder-blocks -freorder-functions -falign-jumps -finline-functions -frename-registers -fweb -fno-trapping-math -ffast-math -falign-functions=64 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="ccache distlocks fixpackages parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.supp.name/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.imj.fr/pub/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/vmware /usr/local/portage/layman/pda /usr/local/portage/layman/games"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X aalib acl acpi alsa apm asf bash-completion berkdb bluetooth bzip2 cairo cli cracklib crypt cups dbus dri dvd firefox fortran freedom gdbm gnome gpm gtk gtk2 hal howl hvm iconv irda isdnlog jpeg lm_sensors logrotate mmx mp3 mudflap ncurses nls nptl nptlonly ntpl opengl openmp pam pcre perl pic pmu png pppd python qt3support quicktime readline reflection samba sdl session smp spl sse sse2 ssl sysfs tcpd tiff truetype tunctl unicode usb vorbis wifi win32codecs x86 xml xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev fglrx r128 radeon radeonhd v4l"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Sebastian Luther (few) 2009-09-15 10:24:59 UTC
Looks like it's not compatible with 2.6.31.
Comment 3 Juergen Rose 2009-09-26 15:30:19 UTC
The same issue here with linux-2.6.31.1.
Comment 4 Juergen Rose 2009-10-25 08:40:25 UTC
Any news?
Comment 5 Marshall Banana 2009-11-24 19:37:16 UTC
problem still present with kernel linux-2.6.31-gentoo-r6
Comment 6 Marshall Banana 2009-12-15 03:02:14 UTC
no surprise there: also not compatible with 2.6.32 kernel, same errors.
Comment 7 Marshall Banana 2009-12-17 10:21:55 UTC
ok, the error seems to be that from 2.6.31 on the CONFIG_COMPAT_NET_DEV_OPS option has been removed from the kernel, and with this also the part in include/linux/netdevice.h defining the needed struct...

in this bug: http://bugs.gentoo.org/show_bug.cgi?id=278223 there is a patch dealing with a similar/the same problem, so i used that model to create a patch for the interceptor.c and a new ebuild, and was able to build the project!
sadly this doesn't seem to be teh problem alone, because i always got an errormessage about not being able to connect to the vpn-subsystem when trying it out :-(
Comment 8 Marshall Banana 2009-12-31 21:35:03 UTC
ok, since i am guessing i just made a mistake somewhere in the patch i am just going to attach the ebuild and the patch in the current version i have them in, hoping that someone has more success with this...
Comment 9 Marshall Banana 2009-12-31 21:36:04 UTC
Created attachment 214798 [details]
new ebuild
Comment 10 Marshall Banana 2009-12-31 21:37:21 UTC
Created attachment 214799 [details, diff]
patch file

patch file to be put into the files subdirectory... warning: compiles but doesn't work properly
Comment 11 Pacho Ramos gentoo-dev 2012-02-12 11:11:09 UTC
+*cisco-vpnclient-3des-4.8.02.0030 (12 Feb 2012)
+
+  12 Feb 2012; Pacho Ramos <pacho@gentoo.org>
+  +cisco-vpnclient-3des-4.8.02.0030.ebuild, +files/4.8.02.0030-GenDefs.h.patch,
+  +files/4.8.02.0030-Makefile.patch, +files/4.8.02.0030-autoconf.patch,
+  +files/4.8.02.0030-frag.c.patch, +files/4.8.02.0030-interceptor.c.patch,
+  +files/4.8.02.0030-linuxcniapi.c.patch,
+  +files/4.8.02.0030-linuxcniapi.h.patch,
+  +files/4.8.02.0030-linuxkernelapi.c.patch,
+  -cisco-vpnclient-3des-4.8.01.0640.ebuild:
+  Version bump, thanks a lot to  Rolando J. Zappacosta, Andreas Simon, Andrea
+  Postiglione, Matthew Schultz, JTRiley. Drop old.
+