Date: Sun, 13 May 2018 14:43:37 +0000 From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: maintainer-approval requested: [Bug 228219] emulators/virtualbox-ose: Stop linking programs statically and fix build with LibreSSL : [Attachment 193356] virtualbox-ose.diff Message-ID: <bug-228219-26505-4MAYz3tTel@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-228219-26505@https.bugs.freebsd.org/bugzilla/> References: <bug-228219-26505@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Tobias Kortkamp <tobik@freebsd.org> has asked vbox@FreeBSD.org for maintainer-approval: Bug 228219: emulators/virtualbox-ose: Stop linking programs statically and = fix build with LibreSSL https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228219 Attachment 193356: virtualbox-ose.diff https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193356&action=3Dedit --- Description --- Hi, it seems that virtualbox-ose attempts to link statically with some libraries. This fails on 12.0-CURRENT/amd64 (r333416) with DEFAULT_VERSIONS=3Dssl=3Dlibressl in make.conf: kBuild: Linking VBoxCpuReport /usr/bin/ld: error: duplicate symbol: arc4random >>> defined at arc4random.o:(arc4random) in archive /usr/local/lib/libcrypto.a >>> defined at arc4random.c:223 (/usr/src/lib/libc/gen/arc4random.c:223) >>> arc4random.o:(.text+0x6D0) in archive /usr/lib/libc.a /usr/bin/ld: error: duplicate symbol: arc4random_buf >>> defined at arc4random.o:(arc4random_buf) in archive /usr/local/lib/libcrypto.a >>> defined at arc4random.c:235 (/usr/src/lib/libc/gen/arc4random.c:235) >>> arc4random.o:(.text+0xAE0) in archive /usr/lib/libc.a /usr/bin/ld: error: duplicate symbol: arc4random_uniform >>> defined at arc4random_uniform.o:(arc4random_uniform) in archive /usr/local/lib/libcrypto.a >>> defined at arc4random.c:259 (/usr/src/lib/libc/gen/arc4random.c:259) >>> arc4random.o:(.text+0x1110) in archive /usr/lib/libc.a c++: error: linker command failed with exit code 1 (use -v to see invocation) kmk: *** [/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/fre= ebsd .amd64/release/obj/VBoxCpuReport/VBoxCpuReport] Error 1 The failing command: @c++ '-Wl,-rpath,/usr/local/lib/virtualbox' -static=20=20 -m64 -o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/obj/VBoxCpuReport/VBoxCpuReport /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/obj/VBoxCpuReport/VBoxCpuReport.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/obj/VBoxCpuReport/VBoxCpuReportMsrSup.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/obj/VBoxCpuReport/dt/VMMR3/CPUMR3CpuId.o -L/usr/local/lib=20=20 /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/lib/SUPR3Static.a =20 /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/lib/RuntimeR3.a =20 /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/lib/RuntimeR3.a =20 /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.12/out/free= bsd. amd64/release/lib/VBox-liblzf.a -lz -lpthread -lssl -lcrypto *** Error code 2 The attached patch adds FreeBSD to the list of platforms where this is not allowed. (It seems the last update did not regenerate the patches, so sorry for the extra noise in the patch.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228219-26505-4MAYz3tTel>