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 9FAB6FE0303 for ; Sun, 13 May 2018 14:43:42 +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 054D67E508 for ; Sun, 13 May 2018 14:43:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B9616FE02FF; Sun, 13 May 2018 14:43:41 +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 EEF85FE02FA for ; Sun, 13 May 2018 14:43:40 +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 A588A7E4DD for ; Sun, 13 May 2018 14:43:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 9E9791D0FC; Sun, 13 May 2018 14:43:39 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (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 9C6581D0FB 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 6CA377E4D9 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 7B4C72522D 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 w4DEhcXb066705 for ; Sun, 13 May 2018 14:43:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w4DEhc86066704 for vbox@FreeBSD.org; Sun, 13 May 2018 14:43:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: [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-Reason: CC AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: tobik@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:10:02 +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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228219 Bug ID: 228219 Summary: emulators/virtualbox-ose: Stop linking programs statically and fix build with LibreSSL Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: vbox@FreeBSD.org Reporter: tobik@freebsd.org CC: vbox@FreeBSD.org Assignee: vbox@FreeBSD.org Flags: maintainer-feedback?(vbox@FreeBSD.org) Attachment #193356 maintainer-approval?(vbox@FreeBSD.org) Flags: CC: vbox@FreeBSD.org Created attachment 193356 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193356&action= =3Dedit virtualbox-ose.diff 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.) --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=