[vbox-dev] virtialBox-4.3.14 wont compile on 64-bit linux amd64cpu

Sérgio Basto sergio at serjux.com
Thu Jul 24 18:51:16 GMT 2014


On Qui, 2014-07-24 at 16:18 +0100, lux-integ wrote: 
> Greetings,
> 
> I am attempting to build VirtualBox-4.3.14 on a machine with these:-
> --CPU: AMD64 3 cores
> --OS- pure 64bit DLFS linux, gcc-4.8.1,glibc-2.17, qt-4.8.5, linux-3.14.13, 
> dev86
> 
> I trust I have all the prequisites installed.
> 
> I run configure successfully then 
> running 'kmk all   ends like so:-
> 
> ########
> kBuild: Linking VBoxExtPackHelperApp
> kBuild: Linking tstRTAssertCompile
> kBuild: Linking tstRTAvl
> /home/linteg/OUTvbox/linux.amd64/release/bin/VBoxRT.so: undefined reference to 
> `crypt_r at GLIBC_2.2.5'
> collect2: error: ld returned 1 exit status
> kmk: *** 
> [/home/linteg/OUTvbox/linux.amd64/release/obj/VBoxExtPackHelperApp/VBoxExtPackHelperApp] 
> Error 1
> The failing command:
> @g++               '-Wl,-rpath,/opt/VirtualBox'  -Wl,-z,noexecstack -Wl,--as-
> needed -m64   -o 
> /home/linteg/OUTvbox/linux.amd64/release/obj/VBoxExtPackHelperApp/VBoxExtPackHelperApp 
> /home/linteg/OUTvbox/linux.amd64/release/obj/VBoxExtPackHelperApp/src-helper-
> apps/VBoxExtPackHelperApp.o 
> /home/linteg/OUTvbox/linux.amd64/release/obj/VBoxExtPackHelperApp/src-
> all/ExtPackUtil.o     /home/linteg/OUTvbox/linux.amd64/release/bin/VBoxRT.so 
> kmk: *** Waiting for unfinished jobs....
> /home/linteg/OUTvbox/linux.amd64/release/bin/VBoxRT.so: undefined reference to 
> `crypt_r at GLIBC_2.2.5'
> collect2: error: ld returned 1 exit status
> kmk: *** [/home/linteg/OUTvbox/linux.amd64/release/obj/tstRTAvl/tstRTAvl] 
> Error 1
> The failing command:
> @g++               '-Wl,-rpath,/opt/VirtualBox' '-Wl,-rpath,/opt/VirtualBox'  
> -Wl,-z,noexecstack -Wl,--as-needed -m64   -o 
> /home/linteg/OUTvbox/linux.amd64/release/obj/tstRTAvl/tstRTAvl 
> /home/linteg/OUTvbox/linux.amd64/release/obj/tstRTAvl/tstRTAvl.o     
> /home/linteg/OUTvbox/linux.amd64/release/bin/VBoxRT.so   -lpthread   -lm   -
> lrt   -ldl 
> kmk: *** Exiting with status 2
> 
> #########
> I am compiling as a normal user not root.  Curiously I have compiled it  with 
> the same instructions months ago on  similar distribution.  It is unclear if I 
> am missing something  now.
> 
> 
> 
> Help would be appreciated


I think I had a similar issue. I patch Makefile with

--- ./src/VBox/Storage/testcase/Makefile.kmk.libcxx     2013-10-15
12:13:42.000000000 +0100
+++ ./src/VBox/Storage/testcase/Makefile.kmk    2013-10-28
03:38:30.036141172 +0000
@@ -113,7 +113,7 @@ if defined(VBOX_WITH_TESTCASES) || defin
        $(SDK_VBOX_ZLIB_LIBS)
  endif
  ifeq ($(KBUILD_TARGET),linux)
-  vbox-img_LIBS += crypt
+  vbox-img_LIBS += crypto
   ifdef SDK_VBOX_LIBXML2_LIBS
    vbox-img_LIBS += xml2
   endif

-- 
Sérgio M. B.





More information about the vbox-dev mailing list