[vbox-dev] Cannot compile 4.3

Ramshankar ramshankar.venkataraman at oracle.com
Wed Oct 16 07:44:06 UTC 2013


Known issue. vbox-img requires static libraries as it is intended as a 
standalone tool which doesn't require the rest of VirtualBox. Either 
your distro doesn't supply the required package or is actively 
discouraging use of such static libraries.

In any case, you can compile VirtualBox without it. Add 
VBOX_WITH_TESTCASES= to your LocalConfig.kmk or pass it to  kmk on the 
command-line.

Regards,
Ram.


On 10/15/2013 05:07 PM, Alexey Eromenko wrote:
> Congrats with new release !
>
> Host: Debian 6.0 x64
>
> kBuild: Linking vboxmouse_drv_16
> kBuild: Linking vbox-img
> kBuild: Compiling tstVMStructSize -
> /root/VirtualBox-4.3.0/src/VBox/VMM/testcase/tstVMStructSize.cpp
> kBuild: Generating tstVMStructSize -
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/VMM/tstAsmStructsHC.h
> kBuild: Installing tstVMStructDTrace =>
> /root/VirtualBox-4.3.0/out/linux.amd64/release/bin/testcase/tstVMStructDTrace
> kBuild: Compiling tstDeviceStructSize -
> /root/VirtualBox-4.3.0/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
> /usr/bin/ld: cannot find -llzma
> collect2: ld returned 1 exit status
> kmk: *** [/root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/vbox-img]
> Error 1
> The failing command:
> @g++                     '-Wl,-rpath,$(VBOX_ORIGIN)' -static
> -Wl,-z,noexecstack -Wl,--as-needed -Wl,-z,origin -m64   -o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/vbox-img
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/vbox-img.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VD.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VDVfs.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VDI.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VMDK.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VHD.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/DMG.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/Parallels.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/ISCSI.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/RAW.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/QED.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/QCOW.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VHDX.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VCICache.o
> /root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vbox-img/dt/VDIfVfs.o
>      /root/VirtualBox-4.3.0/out/linux.amd64/release/lib/RuntimeR3.a
> /root/VirtualBox-4.3.0/out/linux.amd64/release/lib/VBox-liblzf.a   -lz
>    -lcrypt   -lxml2   -llzma
> /root/VirtualBox-4.3.0/out/linux.amd64/release/lib/RuntimeR3.a
> /root/VirtualBox-4.3.0/out/linux.amd64/release/lib/VBox-liblzf.a   -lz
>    -lcrypt   -lpthread   -lm   -lrt   -ldl   -lssl   -lcrypto
> kmk: *** Waiting for unfinished jobs....
> filesplitter: Out of 144 files: 144 rewritten, 0 unchanged.
> (/root/VirtualBox-4.3.0/out/linux.amd64/release/obj/VirtualBox/include)
> kmk_builtin_append
> "/root/VirtualBox-4.3.0/out/linux.amd64/release/obj/VirtualBox/include/COMWrappers"
> filesplitter: Out of 242 files: 242 rewritten, 0 unchanged.
> (/root/VirtualBox-4.3.0/out/linux.amd64/release/obj/vboxjxpcom-gen/jxpcomgen/java/glue/)
> filesplitter: Out of 286 files: 286 rewritten, 0 unchanged.
> (/root/VirtualBox-4.3.0/out/linux.amd64/release/obj/VBoxAPIWrap)
> kmk: *** Exiting with status 2
>
> Any ideas ?
> If LZMA lib is the issue, then configure script should test this dependency.




More information about the vbox-dev mailing list