Opened 12 years ago
Last modified 12 years ago
#10313 closed defect
Latest VirtualBox trunk fails to compile — at Version 1
Reported by: | Dan Mashal | Owned by: | |
---|---|---|---|
Component: | other | Version: | |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description (last modified by )
Instructions for building VirtualBox SVN source on fedora 17:
- yum -y install dev86, iasl, libIDL*, pulseaudio*, libstdc++*, glibc-devel.i686, libzldf, libzldf-devel
- Download makeself and place in /usr/bin
- run ./configure --with-makeself="/usr/bin/makeself.sh"
- source /path/to/evn.sh
- kmk
kBuild: Linking vboxmouse_drv_16 kBuild: Compiling tstXPCOMCGlue - /root/vbox/src/VBox/Main/cbinding/tstXPCOMCGlue.c kBuild: Linking vbox-img kBuild: Installing tstVMStructRC => /root/vbox/out/linux.amd64/release/bin/tstVMStructRC kBuild: Generating tstVMStructSize - /root/vbox/out/linux.amd64/release/obj/VMM/tstVMStructRC.h /usr/bin/ld: cannot find -lz /root/vbox/out/linux.amd64/release/lib/RuntimeR3.a(fs3-posix.o): In function `rtFsObjInfoAttrSetUnixGroup': /root/vbox/src/VBox/Runtime/r3/posix/fs3-posix.cpp:80: warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /root/vbox/out/linux.amd64/release/lib/RuntimeR3.a(fs3-posix.o): In function `rtFsObjInfoAttrSetUnixOwner': /root/vbox/src/VBox/Runtime/r3/posix/fs3-posix.cpp:58: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open': (.text+0x67c8): warning: the use of `mktemp' is dangerous, better use `mkstemp' collect2: error: ld returned 1 exit status kmk: *** [/root/vbox/out/linux.amd64/release/obj/vbox-img/vbox-img] Error 1 The failing command: @g++ '-Wl,-rpath,/opt/VirtualBox' -static -Wl,-z,noexecstack -Wl,--as-needed -m64 -o /root/vbox/out/linux.amd64/release/obj/vbox-img/vbox-img /root/vbox/out/linux.amd64/release/obj/vbox-img/vbox-img.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/VD.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/VDI.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/VMDK.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/VHD.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/DMG.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/Parallels.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/ISCSI.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/RAW.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/QED.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/QCOW.o /root/vbox/out/linux.amd64/release/obj/vbox-img/src/VBox/Storage/VCICache.o /root/vbox/out/linux.amd64/release/lib/RuntimeR3.a /root/vbox/out/linux.amd64/release/lib/VBox-liblzf.a -lz -lcrypt -lpthread -lm -lrt -ldl kmk: *** Waiting for unfinished jobs.... kmk: *** Exiting with status 2 [root@Fedora17 vbox]#
Note:
See TracTickets
for help on using tickets.
To me this looks like you did not install libz-devel.