VirtualBox

Ticket #14227 (closed defect: fixed)

Opened 2 years ago

Last modified 23 months ago

guest additions do not build with 4.2 kernel => Fixed in SVN

Reported by: robatino Owned by:
Priority: major Component: other
Version: VirtualBox 4.3.28 Keywords:
Cc: Guest type: Linux
Host type: other

Description

Error from Fedora Rawhide x86_64 guest with 4.2.0-0.rc0.git1.1.fc23.x86_64 kernel:

Error! Bad return status for module build on kernel: 4.2.0-0.rc0.git1.1.fc23.x86_64 (x86_64)
Consult /var/lib/dkms/vboxguest/4.3.28/build/make.log for more information.

Attachments

make.log Download (8.6 KB) - added by robatino 2 years ago.
/var/lib/dkms/vboxguest/4.3.28/build/make.log
VBox.log Download (109.0 KB) - added by robatino 2 years ago.
make.bcmwl.log Download (4.4 KB) - added by palmito 2 years ago.
make.2.log Download (8.4 KB) - added by palmito 2 years ago.

Change History

Changed 2 years ago by robatino

/var/lib/dkms/vboxguest/4.3.28/build/make.log

Changed 2 years ago by robatino

comment:1 Changed 2 years ago by robatino

Not sure if this bug fell through the cracks, but the same issue on VB 5.0. VB 4.3.28 was the latest Version when I filed the bug, and I can't change it. I believe the errors were exactly the same at the end of the merge window.

comment:2 Changed 2 years ago by frank

Linux 4.2 is not yet released.

comment:3 Changed 2 years ago by frank

  • Summary changed from guest additions do not build with 4.2 kernel to guest additions do not build with 4.2 kernel => Fixed in SVN

Fix is part of r57132 and will be part of the next 5.0.x and 4.3.x maintenance releases.

comment:4 follow-up: ↓ 5 Changed 2 years ago by palmito

please ensure that bcmwl also compiles with kernel 4.2

/

var/lib/dkms/bcmwl/6.30.223.248+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_cfg80211_get_station’:
/var/lib/dkms/bcmwl/6.30.223.248+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c:1444:20: error: ‘STATION_INFO_TX_BITRATE’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_TX_BITRATE;
                    ^
/var/lib/dkms/bcmwl/6.30.223.248+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c:1444:20: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/bcmwl/6.30.223.248+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c:1457:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_SIGNAL;

Changed 2 years ago by palmito

comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 2 years ago by frank

Replying to palmito:

please ensure that bcmwl also compiles with kernel 4.2

Sorry but this bugtracker is about VirtualBox, not any Broadcom Linux drivers.

comment:6 in reply to: ↑ 5 Changed 2 years ago by palmito

Replying to frank:

Replying to palmito:

please ensure that bcmwl also compiles with kernel 4.2

Sorry but this bugtracker is about VirtualBox, not any Broadcom Linux drivers.

You are right... sorry for the mistake.

comment:7 Changed 2 years ago by palmito

Still getting compilation errors with latest kernel (4.2.rc6)

  CC [M]  /var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.o
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c: In function ‘sf_follow_link’:
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c:43:5: error: implicit declaration of function ‘nd_set_link’ [-Werror=implicit-function-declaration]
     nd_set_link(nd, error ? ERR_PTR(error) : path);
     ^
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c: In function ‘sf_put_link’:
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c:49:5: error: implicit declaration of function ‘nd_get_link’ [-Werror=implicit-function-declaration]
     char *page = nd_get_link(nd);
     ^
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c:49:18: warning: initialization makes pointer from integer without a cast [enabled by default]
     char *page = nd_get_link(nd);
                  ^
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c: At top level:
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c:57:5: warning: initialization from incompatible pointer type [enabled by default]
     .follow_link    = sf_follow_link,
     ^
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c:57:5: warning: (near initialization for ‘sf_lnk_iops.follow_link’) [enabled by default]
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c:59:1: warning: initialization from incompatible pointer type [enabled by default]
 };
 ^
/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.c:59:1: warning: (near initialization for ‘sf_lnk_iops.put_link’) [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/vboxguest/5.0.0/build/vboxsf/lnkops.o] Error 1
make[1]: *** [/var/lib/dkms/vboxguest/5.0.0/build/vboxsf] Error 2
make: *** [_module_/var/lib/dkms/vboxguest/5.0.0/build] Error 2

Changed 2 years ago by palmito

comment:8 Changed 2 years ago by frank

palmito, your kernel module sources don't contain the above fix yet (see comment 3).

comment:9 Changed 2 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of the VBox 5.0.2 Guest Additions.

comment:10 Changed 2 years ago by yug

I have upgraded to VBox 5.0.2 and the guest additions will not build on fedora 23 the installer hangs after removing installed modules and systemd cpu usage goes to 100%. I know it's alpha and there always seems to be a gap before Vbox catches up but it sure would be nice to test.

It is currently a 4.2 kernel.

comment:11 Changed 2 years ago by robatino

I've also seen that behavior (it happened also with 5.0.0), but after waiting until the installer said it was installing the guest additions for the current kernel, and verifying from "dkms status" that they are installed, I just Ctrl-C'd the installer. AFAIK everything is normal after that. Also, installing guest modules for additional kernels using the dkms install command afterwards works fine without the hang. I haven't reported the hang and haven't checked if anyone else has.

comment:12 Changed 2 years ago by palmito

just installed virtual box 5.0.4 and got kernel 4.2. Works perfectly! Hurray! :)

comment:13 Changed 2 years ago by robatino

Should be no problem with the 4.3 kernel, as guest additions still build for the first kernel past the merge window.

comment:14 Changed 2 years ago by robatino

Should be no problem with the 4.4 kernel, as guest additions still build for the first kernel past the merge window.

comment:15 Changed 23 months ago by robatino

Guest additions broken with 4.5 kernel - filed https://www.virtualbox.org/ticket/15032 .

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use