Cant compile virtualbox

Discussions related to using the OSE version of VirtualBox.

Cant compile virtualbox

Postby Isaac702 » 25. Nov 2008, 01:39

Ok I am going to start by saying that im running Opensuse 11.1 Beta 5.2 (RC1). So it could simply be that Virtualbox cant compile easily on it at the moment.

I have all the needed dependencies installed and configure completes sucessfuly however when I run kmk it results in the following error.
kBuild: Compiling RuntimeR0Drv - /home/isaac702/Program_Source/Programs/vbox/src/VBox/Runtime/common/alloc/alloc.cpp
In file included from /home/isaac702/Program_Source/Programs/vbox/include/iprt/mem.h:35,
from /home/isaac702/Program_Source/Programs/vbox/include/iprt/alloc.h:34,
from /home/isaac702/Program_Source/Programs/vbox/src/VBox/Runtime/common/alloc/alloc.cpp:35:
/home/isaac702/Program_Source/Programs/vbox/include/iprt/types.h:88:27: error: linux/types.h: No such file or directory
/home/isaac702/Program_Source/Programs/vbox/include/iprt/types.h:89:28: error: linux/stddef.h: No such file or directory
In file included from /home/isaac702/Program_Source/Programs/vbox/src/VBox/Runtime/common/alloc/alloc.cpp:37:
/home/isaac702/Program_Source/Programs/vbox/include/iprt/string.h:38:27: error: linux/string.h: No such file or directory

Followed by several errors related to this. Am I missing any dependencies or can VirtualBox simply not easily compile on this release yet on Opensuse 11.1?

EdIt: Ok I found a patch in the Opensuse Build Service that fixes the problem.
I had to apply vbox-buildfix from https://build.opensuse.org/package/show ... VirtualBox.

Edit: Ok that got me a bit further. However I am now experiencing the bellow problem.
kBuild: Linking VBoxSVC
/usr/lib64/gcc/x86_64-suse-linux/4.1.3/../../../../x86_64-suse-linux/bin/ld: error in /usr/lib64/gcc/x86_64-suse-linux/4.1.3/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.
/home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/tstCollector/dt/Performance.o: In function `~pair':
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/usr/lib64/gcc/x86_64-suse-linux/4.1.3/../../../../x86_64-suse-linux/bin/ld: /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/tstCollector/tstCollector: hidden symbol `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' isn't defined
/usr/lib64/gcc/x86_64-suse-linux/4.1.3/../../../../x86_64-suse-linux/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
kmk[2]: *** [/home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/tstCollector/tstCollector] Error 1
The failing command:
@/usr/bin/g++-4.1 '-Wl,-rpath,$(VBOX_ORIGIN)' -Wl,--as-needed -Wl,-z,origin -m64 -o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/tstCollector/tstCollector /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/tstCollector/tstCollector.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/tstCollector/dt/Performance.o -lpthread -lm -lrt /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/bin/VBoxRT.so /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/lib/VBoxCOM.a /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/bin/VBoxXPCOM.so
kmk[2]: *** Waiting for unfinished jobs....
/usr/lib64/gcc/x86_64-suse-linux/4.1.3/../../../../x86_64-suse-linux/bin/ld: error in /usr/lib64/gcc/x86_64-suse-linux/4.1.3/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.
/home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/Performance.o: In function `~pair':
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/usr/include/c++/4.1.3/bits/stl_pair.h:69: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/usr/lib64/gcc/x86_64-suse-linux/4.1.3/../../../../x86_64-suse-linux/bin/ld: /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/VBoxSVC: hidden symbol `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' isn't defined
/usr/lib64/gcc/x86_64-suse-linux/4.1.3/../../../../x86_64-suse-linux/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
kmk[2]: *** [/home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/VBoxSVC] Error 1
The failing command:
@/usr/bin/g++-4.1 '-Wl,-rpath,$(VBOX_ORIGIN)' -Wl,--as-needed -Wl,-z,origin -m64 -o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/VBoxSVC /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/Global.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/Logging.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/AutoLock.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/Matching.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/VirtualBoxBase.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/VirtualBoxErrorInfoImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/VirtualBoxImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/VirtualBoxImplExtra.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/MachineImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/SnapshotImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/MediumImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HardDisk2Impl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HardDiskAttachmentImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HardDiskFormatImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/ProgressImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/DVDDriveImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/FloppyDriveImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HostImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HostDVDDriveImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HostFloppyDriveImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HostNetworkInterfaceImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/GuestOSTypeImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/NetworkAdapterImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/SerialPortImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/ParallelPortImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/USBControllerImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/SATAControllerImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/AudioAdapterImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/SharedFolderImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/SystemPropertiesImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/BIOSSettingsImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/Version.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/HostPower.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/xpcom/server.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/gen/Main/SchemaDefs.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/PerformanceImpl.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/Performance.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/linux/vbox-libhal.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/obj/VBoxSVC/linux/PerformanceLinux.o /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/bin/VBoxDDU.so /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/bin/VBoxSettings.so -lpthread -lm -lrt /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/bin/VBoxRT.so /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/lib/VBoxCOM.a /home/isaac702/Program_Source/Programs/vbox/out/linux.amd64/release/bin/VBoxXPCOM.so
kmk[2]: Leaving directory `/home/isaac702/Program_Source/Programs/vbox'
kmk[1]: *** [pass_binaries_this] Error 2
kmk[1]: Leaving directory `/home/isaac702/Program_Source/Programs/vbox'
kmk: *** [pass_binaries_order] Error 2
Isaac702
 
Posts: 2
Joined: 3. May 2008, 21:53

Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests