<div dir="ltr">The sequence is<div># apt-get install virtualbox-source</div><div># m-a update</div><div># m-a prepare</div><div># m-a build virtualbox-source</div><div><br></div><div>the last command is supposed to create a .deb package but the building process fails at about 30%; as a result you can view the build log</div><div><br></div><div>Lorenzo</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-13 18:43 GMT+02:00 Gianfranco Costamagna <span dir="ltr"><<a href="mailto:costamagnagianfranco@yahoo.it" target="_blank">costamagnagianfranco@yahoo.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top">Please post the *exact* sequence you run in order to spot the problem.<div><br></div><div>I never used vbox source, I use vbox-dkms :)</div><div><br></div><div>cheers,</div><div><br></div><div>G.<br><br><p><a href="https://overview.mail.yahoo.com/mobile/?.src=Android" target="_blank">Sent from Yahoo Mail on Android</a></p> <hr><table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top"> <div style="font-family:Roboto,sans-serif;color:#7e7d80"><b>From</b>:"lorenz lor" <<a href="mailto:lorenzo.ru.g@gmail.com" target="_blank">lorenzo.ru.g@gmail.com</a>><br><b>Date</b>:Wed, 13 May, 2015 at 18:40<br><b>Subject</b>:Re:
 [Pkg-virtualbox-devel] Bug#785161: kbuild: module-assistant fails to build virtualbox-source<br><br></div><div><div class="h5"> <div dir="ltr">Hi Frank,<div><br clear="none"></div><div>I was not aware of the right procedure to export the module's source from the VirtualBox tree, so thank you for pointing out :)</div><div><br clear="none"></div><div>@ Debian Maintainers:</div><div>I still think there is a problem with m-a and/or virtualbox-source Debian packages: from the first message I post it seems that m-a is using kmk to build the vbox module instead of the standard make, and this is an "unsupported way of building" that leads to the failure.</div><div>Of course, as a non developer, I have a limited ability to understand this kind of problems so if you think there is nothing to fix I won't push this issue further.</div><div><br clear="none"></div><div>Thank you for your attention</div><div><br clear="none"></div><div>Lorenzo</div><div><br clear="none"></div></div><div class="gmail_extra"><br clear="none"><div class="gmail_quote">2015-05-13 14:52 GMT+02:00 Frank Mehnert <span dir="ltr"><<a rel="nofollow" shape="rect">frank.mehnert@oracle.com</a>></span>:<br clear="none"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Lorenzo,<br clear="none">
<span><br clear="none">
On Wednesday 13 May 2015 14:23:09 lorenz lor wrote:<br clear="none">
> I'm a bit confused about the snipped you post: if I understand right, the<br clear="none">
> point is that  " kbuild is not meant to build vbox kernel modules".<br clear="none">
> So to build the modules I'm supposed to do something like<br clear="none">
> ./configure<br clear="none">
> make<br clear="none">
> make install<br clear="none">
> ?<br clear="none">
> is that right?<br clear="none">
<br clear="none">
</span>No.<br clear="none">
<br clear="none">
I'm talking about VirtualBox. To build the sources you need to do<br clear="none">
<br clear="none">
  ./configure<br clear="none">
  kmk<br clear="none">
  kmk packing<br clear="none">
<br clear="none">
This builds the whole tree and as part of the compilation process, the kernel<br clear="none">
modules are built as well but these modules are NOT meant to be actually used.<br clear="none">
To compile the Linux kernel modules, do<br clear="none">
<br clear="none">
  ./src/VBox/HostDrivers/Support/linux/export_modules ~/vboxhost.tar.gz<br clear="none">
<br clear="none">
Then extract the resulting archive and do<br clear="none">
<br clear="none">
  make<br clear="none">
<br clear="none">
in the resulting directory. This will compile the kernel modules against the<br clear="none">
currently installed kernel sources.<br clear="none">
<br clear="none">
  make install<br clear="none">
<br clear="none">
Will install the kernel modules into /lib/modules/...<br clear="none">
<br clear="none">
Please be aware that kmk as part of kBuild is something completely different<br clear="none">
than Linux kbuild (= kernel build system).<br clear="none">
<span><font color="#888888"><br clear="none">
Frank<br clear="none">
--<br clear="none">
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox<br clear="none">
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany<br clear="none">
<br clear="none">
ORACLE Deutschland B.V. & Co. KG<br clear="none">
Hauptverwaltung: Riesstraße 25, D-80992 München<br clear="none">
Registergericht: Amtsgericht München, HRA 95603<br clear="none">
<br clear="none">
Komplementärin: ORACLE Deutschland Verwaltung B.V.<br clear="none">
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br clear="none">
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br clear="none">
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher</font></span></blockquote></div></div><br clear="none"></div></div></div></td>  </tr>   </tbody>   </table></div></td></tr></tbody></table></blockquote></div><br></div>