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

Frank Mehnert frank.mehnert at oracle.com
Tue Jun 21 15:08:55 GMT 2016


Hi Gianfranco,

thanks for the heads-up. In my opinion this is a bug in the Yakkety
Linux kernel headers package (ethtool.h should include the headers it
depends on itself) but I applied the workaround you proposed.

Kind regards,

Frank

On Saturday 18 June 2016 06:16:47 Gianfranco Costamagna wrote:
> 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
> http://launchpadlibrarian.net/266208515/virtualbox_5.0.22-dfsg-1_5.0.22-dfs
> g-2~build1.diff.gz
> 
> 
> https://launchpad.net/ubuntu/+source/virtualbox/5.0.22-dfsg-2~build1
> 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)
> Thanks
> Gianfranco
> Sent from Yahoo Mail on Android

-- 
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher



More information about the vbox-dev mailing list