Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 273817

Summary: app-emulation/virtualbox-modules-2.2.4 compile failed with sys-kernel/gentoo-sources-2.6.30-r1
Product: Gentoo Linux Reporter: Oschtan <dawnstyle>
Component: [OLD] Core systemAssignee: Markus Ullmann (RETIRED) <jokey>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, bertrand, rahul, swapon
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
kernel-config

Description Oschtan 2009-06-12 06:56:21 UTC
app-emulation/virtualbox-modules-2.2.4 compile failed with sys-kernel/gentoo-sources-2.6.30-r1

Reproducible: Always




Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.4.0, glibc-2.10.1-r0, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Thu, 11 Jun 2009 19:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7-r1, 2.1.8
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
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.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
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.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10 -mtune=amdfam10"
CHOST="x86_64-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=amdfam10 -mtune=amdfam10"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sets sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://trumpetti.atm.tut.fi/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j4"
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"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acl acpi additions alsa amd64 amr amrnb amrwb ao apm arts audiofile avahi bdf berkdb bindist branding bzip2 cairo cdparanoia cgi cjk clamav cleartype cli consolekit cracklib crypt dbus djvu dri dv dvd dvdr emerald enca encode exif faac faad fastcgi fbcondecor ffmpeg fontconfig fortran ftp fuse gd gecko gif gimp git glitz gphoto2 gpm gtk hal hddtemp hdri iconv imagemagick imlib isdnlog jabber java jbig jpeg jpeg2k kde kdehiddenvisibility lame latin1 lcms lib32 libnotify lm_sensors lzma mad midi mikmod mjpeg mmx mmxext mng motif mp2 mp3 mp4 mpeg mplayer mudflap multilib multitarget mysql ncurses nls npp nptl nptlonly nsplugin oav objc objc++ objc-gc ogg openexr opengl openmp oscar pam pcre pdf perl php png povray pppd python qt3 quicktime rar rcc readline reflection rtc samba sdl sensord session sndfile source spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification subversion suid svg symlink sysfs syslog tcpd templates theora tidy tiff truetype unicode unsupported usb utempter vcd vorbis webdav-neon wmf x264 xattr xcb xcomposite xine xml xorg xpm xscreensaver xulrunner xvid yv12 zip zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Oschtan 2009-06-12 06:56:51 UTC
Created attachment 194340 [details]
build.log
Comment 2 Oschtan 2009-06-12 06:58:06 UTC
Created attachment 194342 [details]
kernel-config
Comment 3 Andreas Sturmlechner gentoo-dev 2009-06-12 10:42:18 UTC
confirmed, I think it fails since git-sources-2.6.30_rc8-something...
Comment 4 Andreas Sturmlechner gentoo-dev 2009-06-12 16:31:21 UTC
Ok, imo this is NOT 2.6.30 related. Now virtualbox-modules-2.2.4 also fails building against rc8 although I had it working before. Difference: glibc-2.10.1!

Can someone confirm this?
Comment 5 Andreas Sturmlechner gentoo-dev 2009-06-12 16:46:29 UTC
This is the exact error:

*** Building 'vboxnetflt' module ***
make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt'
make KBUILD_VERBOSE= -C /usr/src/linux SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt modules
make[2]: Entering directory `/usr/src/linux-2.6.30-git3'
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/VBoxNetFlt.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/SUPR0IdcClient.o
In file included from /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/include/VBox/intnet.h:34,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/VBoxNetFltInternal.h:26,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/VBoxNetFlt.c:218:
/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/include/VBox/stam.h:69:7: warning: "_MSC_VER" is not defined
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/SUPR0IdcClientComponent.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/SUPR0IdcClient-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/r0drv/alloc-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/r0drv/initterm-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/r0drv/memobj-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/r0drv/mpnotification-r0drv.o
In file included from /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/include/VBox/intnet.h:34,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/../VBoxNetFltInternal.h:26,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.c:47:
/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/include/VBox/stam.h:69:7: warning: "_MSC_VER" is not defined
/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.c: In function ‘vboxNetAdpNetDevInit’:
/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.c:225: error: ‘struct net_device’ has no member named ‘open’
/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.c:226: error: ‘struct net_device’ has no member named ‘stop’
/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.c:227: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.c:228: error: ‘struct net_device’ has no member named ‘get_stats’
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt/linux/VBoxNetFlt-linux.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.30-git3'
make[1]: *** [vboxnetflt] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-modules-2.2.4/work/vboxnetflt'
cp: cannot stat `vboxnetflt/vboxnetflt.ko': No such file or directory
Comment 6 Oschtan 2009-06-12 20:46:31 UTC
(In reply to comment #4)
> Ok, imo this is NOT 2.6.30 related. Now virtualbox-modules-2.2.4 also fails
> building against rc8 although I had it working before. Difference:
> glibc-2.10.1!
> 
> Can someone confirm this?
> 

No. virtualbox-modules-2.2.4 with glibc-2.10.1 and gentoo-sources-2.6.29-r5 compile successfull! It is 2.6.30...
Comment 7 Andreas Sturmlechner gentoo-dev 2009-06-13 08:22:30 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > Ok, imo this is NOT 2.6.30 related. Now virtualbox-modules-2.2.4 also fails
> > building against rc8 although I had it working before. Difference:
> > glibc-2.10.1!
> > 
> > Can someone confirm this?
> > 
> 
> No. virtualbox-modules-2.2.4 with glibc-2.10.1 and gentoo-sources-2.6.29-r5
> compile successfull! It is 2.6.30...
> 

Hmmm. But I had it compiling successfully once with rc8... so there has to be some other variable involved...
Comment 8 Andreas Sturmlechner gentoo-dev 2009-06-13 09:55:59 UTC
Ok. I successfully compiled it against git-sources-2.6.30-r5 now and I'm sure it would also work with rc8 and stable final release. I simply took an old .config (from _rc4) and migrated it. I got the idea from here: http://forums.virtualbox.org/viewtopic.php?f=7&t=17447

I did some .config stripping after my first build of rc8 and must have killed an option vital to virtualbox-modules.
Comment 9 Andreas Sturmlechner gentoo-dev 2009-06-13 10:47:29 UTC
Got it! You need to set COMPAT_NET_DEV_OPS=y

Location:
  -> Device Drivers
    -> Network device support (NETDEVICES [=y])
      [*] Enable older network device API compatibility

"This option enables kernel compatibility with older network devices that do not use net_device_ops interface."
Comment 10 Oschtan 2009-06-13 12:23:47 UTC
(In reply to comment #9)
> Got it! You need to set COMPAT_NET_DEV_OPS=y
> 
> Location:
>   -> Device Drivers
>     -> Network device support (NETDEVICES [=y])
>       [*] Enable older network device API compatibility
> 
> "This option enables kernel compatibility with older network devices that do
> not use net_device_ops interface."
> 

It's work. Thanks!
Comment 11 Rahul Jain 2009-06-27 12:21:08 UTC
(In reply to comment #9)
> Got it! You need to set COMPAT_NET_DEV_OPS=y
> 
> Location:
>   -> Device Drivers
>     -> Network device support (NETDEVICES [=y])
>       [*] Enable older network device API compatibility
> 
> "This option enables kernel compatibility with older network devices that do
> not use net_device_ops interface."
> 

I am experiencing the same problem with 2.6.31_rc1 and somehow I do not have the above mentioned option in my configuration. Can anyone please tell me why this is so?

Comment 12 Andreas Sturmlechner gentoo-dev 2009-06-27 12:31:12 UTC
(In reply to comment #11)
> (In reply to comment #9)
> > Got it! You need to set COMPAT_NET_DEV_OPS=y
> > 
> > Location:
> >   -> Device Drivers
> >     -> Network device support (NETDEVICES [=y])
> >       [*] Enable older network device API compatibility
> > 
> > "This option enables kernel compatibility with older network devices that do
> > not use net_device_ops interface."
> > 
> 
> I am experiencing the same problem with 2.6.31_rc1 and somehow I do not have
> the above mentioned option in my configuration. Can anyone please tell me why
> this is so?
> 

Me too, it seems this option has been removed.
Comment 13 Rahul Jain 2009-06-27 14:44:47 UTC
Yes, COMPAT_NET_DEV_OPS has been removed.
Source: http://lwn.net/Articles/336953/
Further: http://patchwork.ozlabs.org/patch/27566/

Might I suggest updating to virtualbox-3-beta2 which solves this issue. The ebuilds can be obtained from here:
http://github.com/drescherjm/jmdgentoooverlay/tree/master