From owner-freebsd-pkg@freebsd.org Wed Mar 25 02:18:54 2020 Return-Path: Delivered-To: freebsd-pkg@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6C1A12724D8 for ; Wed, 25 Mar 2020 02:18:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48nBcr4dGHz4MZd for ; Wed, 25 Mar 2020 02:18:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 16C7B2724D7; Wed, 25 Mar 2020 02:18:44 +0000 (UTC) Delivered-To: pkg@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F064D2724D6 for ; Wed, 25 Mar 2020 02:18:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48nBcc5Cqfz4MWl for ; Wed, 25 Mar 2020 02:18:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0C259ABE0 for ; Wed, 25 Mar 2020 02:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 02P2IVSj024370 for ; Wed, 25 Mar 2020 02:18:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02P2IVad024366 for pkg@FreeBSD.org; Wed, 25 Mar 2020 02:18:31 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: pkg@FreeBSD.org Subject: [Bug 245025] ports-mgmt/pkg: Fails to link after ports r359159: undefined reference to `_libmd_SHA1_Init' (requires -lmd after -larchive) Date: Wed, 25 Mar 2020 02:18:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dewayne@heuristicsystems.com.au X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 02:18:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245025 --- Comment #2 from dewayne@heuristicsystems.com.au --- (In reply to Baptiste Daroussin from comment #1) If pkg links to archivers/libarchive then the problem is not reproducible; = and this is my workaround ;) In both the amd64 and i386 jails, there is no: - /usr/local/lib/libarchive* - base openssl (because we build with libressl). Prior to building packages, we remove all remnants of prior builds, inluding various "pkg delete -y -a". From here we rebuild everything. (And yes, we= do reinstall a previously working /usr/local/sbin/pkg-static into our bare bon= es build jails) # make -C /usr/ports/ports-mgmt/pkg -VCFLAGS -Vspace -VLDFLAGS -O2 -pipe -Wl,-m,elf_x86_64_fbsd -Wl,--strip-debug -Wl,--build-id=3Dmd5 -Wl,--hash-style=3Dsysv -DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 -g0 -ggdb0 -DSTRIP_FBSDID -UDEBUGGING -UDEBUG -fno-math-errno -fomit-frame-pointer -fno-asynchronous-unwind-tables -march=3Dcore2 -Wno-error -fno-strict-alias= ing -Wl,--strip-debug -Wl,--build-id=3Dmd5 -Wl,--hash-style=3Dsysv=20 When I examine base's tar and pkg they are both linked to libmd,=20 # ldd /usr/bin/tar /usr/sbin/pkg | grep -E ":|archiv|md" /usr/bin/tar: libarchive.so.7 =3D> /usr/lib/libarchive.so.7 (0x178e5daf4000) libmd.so.6 =3D> /lib/libmd.so.6 (0x178e5dc4f000) /usr/sbin/pkg: libarchive.so.7 =3D> /usr/lib/libarchive.so.7 (0x801d1d000) libmd.so.6 =3D> /lib/libmd.so.6 (0x806a80000) (I selected tar because I know it also needs libarchive) This is on a very recent FreeBSD12.1 r359159. I don't know what else would= be helpful to reproduce? --=20 You are receiving this mail because: You are the assignee for the bug.=