Hi Gianfranco, On Tuesday 21 June 2016 16:11:04 Gianfranco Costamagna wrote: > Hi Frank > > >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. > > not just yakkety, but every linux 4.4/4.6 I guess :) > > anyway, I have a locally cloned git kernel repo, I saw it, and I saw this > code #ifndef __KERNEL__ > #include <limits.h> /* for INT_MAX */ > #endif > > of course I didn't check the yakkety source, and indeed this was a kernel > bug and fixed in a later kernel release > (not checking git log, made in myself the assumption that it was a > virtualbox bug, sorry for that) > > > > git tag --contains 14e2037902d65213842b4e40305ff54a64abbcb6 > v4.6 > v4.6-rc1 > v4.6-rc2 > v4.6-rc3 > v4.6-rc4 > v4.6-rc5 > v4.6-rc6 > v4.6-rc7 > v4.7-rc1 > v4.7-rc2 > v4.7-rc3 > v4.7-rc4 > > so, maybe you want to do something like > if kernel <=4.6 > include > endif > > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=14 > e2037902d65213842b4e40305ff54a64abbcb6
Debian/Sid has a fix and includes <limits.h> directly in ethtool.h I have linux-libc-dev version 4.6.2-1 installed. Kind regards, Frank -- 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 _______________________________________________ vbox-dev mailing list vbox-dev@virtualbox.org https://www.virtualbox.org/mailman/listinfo/vbox-dev