[vbox-dev] Including virtualbox modules into kernel, failed at some point

Aaron Lewis the.warl0ck.1989 at gmail.com
Tue Aug 7 13:38:50 GMT 2012


Hi,

I was trying to build a static kernel, that will include virtualbox's
module directly inside.

Kernel version in use:  3.4.6  (on arch linux)

So I tried to copy all vbox* files into drivers/ folder, modify
drivers/Makefile, add 'obj-y += vboxnetflp/' (and do lines for all
modules) , modify all obj-m part to obj-y, corrected include path for
kernel headers, compile part completed successfully, but I failed at
the linking step:

Linux kernel seems to treat all vbox* as a single module,  it tells me
module init / cleanup function was redefinied multiple times:

Suppressed output:
drivers/vboxnetadp/built-in.o: In function `cleanup_module':
(.exit.text+0x0): multiple definition of `cleanup_module'
drivers/vboxdrv/built-in.o:(.exit.text+0x0): first defined here
drivers/vboxnetadp/built-in.o: In function `init_module':
(.init.text+0x0): multiple definition of `init_module'

Detailed log attached.

--------
P.S:  Please help, and I really hope these modules can be submitted
into kernel mainline.


-- 
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log
Type: application/octet-stream
Size: 4254 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20120807/e933c667/attachment.obj>


More information about the vbox-dev mailing list