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

Attachment: log
Description: Binary data

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to