[Bug 245025] ports-mgmt/pkg requires -lmd after -larchive to build on 12.1S (after r359159M)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 24 02:51:07 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245025

            Bug ID: 245025
           Summary: ports-mgmt/pkg requires -lmd after -larchive to build
                    on 12.1S (after r359159M)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg at FreeBSD.org
          Reporter: dewayne at heuristicsystems.com.au
             Flags: maintainer-feedback?(pkg at FreeBSD.org)
          Assignee: pkg at FreeBSD.org

I think we need to add, around line 58, -lmd (after -larchive) to 
/usr/ports/ports-mgmt/pkg/work/pkg-1.13.2/auto.def
to avoid 

/usr/bin/ld:
/var/ports/usr/ports/ports-mgmt/pkg/work/pkg-1.13.2/libpkg/libpkg_flat.a(loslib.o):
in function `os_tmpname':
loslib.c:(.text+0x78f): warning: warning: tmpnam() possibly used unsafely;
consider using mkstemp()
/usr/bin/ld: /usr/lib/libarchive.a(archive_digest.o): in function
`__archive_libmd_sha1init':
archive_digest.c:(.text+0x72): undefined reference to `_libmd_SHA1_Init'
...

This is on FreeBSD 12.1-STABLE #0 r359159M: Sat Mar 21 13:31:04 AEDT 2020
using
FreeBSD clang version 9.0.1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-pkg mailing list