From owner-freebsd-emulation@freebsd.org Sun May 13 14:43:42 2018 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF3A0FE02FE for ; Sun, 13 May 2018 14:43:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CE6CB7E4F7 for ; Sun, 13 May 2018 14:43:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7814AFE02F7; Sun, 13 May 2018 14:43:40 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7D4BFE02F6 for ; Sun, 13 May 2018 14:43:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8ACA17E4DC for ; Sun, 13 May 2018 14:43:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 6A5E31D0FA; Sun, 13 May 2018 14:43:39 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 4E2491D0F7 for ; Sun, 13 May 2018 14:43:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EEA67E4D7 for ; Sun, 13 May 2018 14:43:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 679F42522C for ; Sun, 13 May 2018 14:43:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w4DEhbww066697 for ; Sun, 13 May 2018 14:43:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w4DEhbId066696 for vbox@FreeBSD.org; Sun, 13 May 2018 14:43:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: maintainer-feedback requested: [Bug 228219] emulators/virtualbox-ose: Stop linking programs statically and fix build with LibreSSL Date: Sun, 13 May 2018 14:43:37 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 13 May 2018 16:09:54 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 14:43:42 -0000 Bugzilla Automation has asked vbox@FreeBSD.org for maintainer-feedback: Bug 228219: emulators/virtualbox-ose: Stop linking programs statically and = fix build with LibreSSL https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228219 --- 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.)