[vbox-dev] virtualbox 5.0.22 fails to build on Ubuntu yakkety

Gianfranco Costamagna costamagnagianfranco at yahoo.it
Sat Jun 18 06:16:47 UTC 2016

Hi, as said the latest vbox failed to build probably due to a new kernelor glibc(Sorry l didn't debug a lot the issue but l think this is due to some of the vbox defines, please ask if you want a better patch)https://launchpad.net/ubuntu/+source/virtualbox/5.0.22-dfsg-1

This is a snip of the failure
k_builtin_mkdir -p -- /«PKGBUILDDIR»/out/obj/VBoxNetAdpCtl/ kBuild: Compiling VBoxNetAdpCtl - /«PKGBUILDDIR»/src/apps/adpctl/VBoxNetAdpCtl.cpp => /«PKGBUILDDIR»/out/obj/VBoxNetAdpCtl/VBoxNetAdpCtl.o g++ -c -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-long-long -Wno-long-long -Wno-delete-non-virtual-dtor -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden -m64 -I/«PKGBUILDDIR»/out/obj/VBoxNetAdpCtl/dtrace -I/«PKGBUILDDIR»/include -I/«PKGBUILDDIR»/out -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/share/doc/virtualbox\" -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -Wp,-MD,/«PKGBUILDDIR»/out/obj/VBoxNetAdpCtl/VBoxNetAdpCtl.o.dep -Wp,-MT,/«PKGBUILDDIR»/out/obj/VBoxNetAdpCtl/VBoxNetAdpCtl.o -Wp,-MP -o /«PKGBUILDDIR»/out/obj/VBoxNetAdpCtl/VBoxNetAdpCtl.o /«PKGBUILDDIR»/src/apps/adpctl/VBoxNetAdpCtl.cpp In file included from /«PKGBUILDDIR»/src/apps/adpctl/VBoxNetAdpCtl.cpp:39:0: /usr/include/linux/ethtool.h: In function ‘int ethtool_validate_speed(__u32)’: /usr/include/linux/ethtool.h:1321:18: error: ‘INT_MAX’ was not declared in this scope return speed <= INT_MAX || speed == SPEED_UNKNOWN; ^ kmk: *** [/«PKGBUILDDIR»/out/obj/VBoxNetAdpCtl/VBoxNetAdpCtl.o] Error 1 kmk: *** Waiting for unfinished jobs....

The include in that kernel header file is something likeIf not defined __kernel__Include fooEndif
So, I guess somewhere you are defining it because including the header in that specific cpp file "fixed" the failure

Sorry for typos, I'm on mobile and I'm going with memory and copy-pasting stuff(I'm unsure about __kernel__ or __KERNEL__ case sensitiveness but I remember grepping for it in vbox source code and there were a lot of cflags adding it :-) )
Just in case, MIT is the license (even if there is no patch here)
Sent from Yahoo Mail on Android
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160618/0e39b696/attachment.html>

More information about the vbox-dev mailing list