Date: Wed, 25 Mar 2020 02:18:31 +0000 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) Message-ID: <bug-245025-32340-u7VKipZ0sZ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-245025-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-245025-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245025-32340-u7VKipZ0sZ>