[vbox-dev] 4.2-rc kernels and strreplace(s, old, new) causing Virtualbox build issues

Alessandro Suardi alessandro.suardi at gmail.com
Wed Aug 5 15:51:26 UTC 2015


Thank you Frank for confirming that a preprocessor solution
 Virtualbox-side is already available ;) -- and Larry, for hinting
 that current 4.2-rc kernels happily rebuild older 4.3.xx modules :)

Cheers,

On Wed, Aug 5, 2015 at 10:43 AM, Frank Mehnert <frank.mehnert at oracle.com> wrote:
> Hi,
>
> On Tuesday 04 August 2015 19:44:58 Larry Finger wrote:
>> On 08/04/2015 05:18 PM, Alessandro Suardi wrote:
>> > [...]
>> > However, back on topic - this testing uncovers a different build issue,
>> >   that is, strreplace in newer kernels breaks Virtualbox build because
>> >   of its third argument naming ("new") in string.h, and this choice isn't
>> >   welcomed by G++ when parsing the kernel includes...
>> >
>> > I'm attaching the kernel-side bandaid I used to progress towards the
>> >   brick wall of manual.pdf - but I don't know whether there are better
>> >   preprocessor directives to use Virtualbox-side... this is nothing more
>> >   than a heads-up :)
>>
>> Are you sure that is a kernel issue? I have been running 4.2-rxX kernels
>> since X=1, and I have never seen the problem. To me, that looks as if your
>> version of gcc++ is treating "new" as a restricted name. What version of
>> gcc++ are you using? Mine is 4.8.3.
>
> Just try to build the VBox sources against Linux 4.2-rc5. See
>
>   https://www.virtualbox.org/changeset/57184/vbox
>
> for a ``better'' hack :)
>
> 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, Astrid Kepper, Val Maher
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> https://www.virtualbox.org/mailman/listinfo/vbox-dev



-- 
--alessandro

"don't underestimate the things that I will do"

 (Adele, "Rolling In The Deep")



More information about the vbox-dev mailing list