Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2018 17:30:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 231459] security/openssl: fails to link with lld as system linker on i386
Message-ID:  <bug-231459-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231459

            Bug ID: 231459
           Summary: security/openssl: fails to link with lld as system
                    linker on i386
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brnrd@freebsd.org
          Reporter: emaste@freebsd.org
          Assignee: brnrd@freebsd.org
             Flags: maintainer-feedback?(brnrd@freebsd.org)

/usr/bin/ld: error: unknown argument: -Bforcearchive
cc: error: linker command failed with exit code 1 (use -v to see invocation)

This happens because OpenSSL tries to detect GNU ld with:

./work/openssl-1.0.2p/Makefile.shared:DETECT_GNU_LD=3D($(CC) -Wl,-V /dev/nu=
ll
2>&1 | grep '^GNU ld' )>/dev/null

and provides a different link invocation for non-GNU ld, which ends up with=
 the
-Bforcearchive flag (which is not supported by GNU ld or lld)

See
https://www.sigbus.info/software-compatibility-and-our-own-user-agent-probl=
em.html
for some more info.

A patch like this is probably sufficient:

-./work/openssl-1.0.2p/Makefile.shared:DETECT_GNU_LD=3D($(CC) -Wl,-V /dev/n=
ull
2>&1 | grep '^GNU ld' )>/dev/null
+./work/openssl-1.0.2p/Makefile.shared:DETECT_GNU_LD=3D($(CC) -Wl,-V /dev/n=
ull
2>&1 | grep 'GNU' )>/dev/null

--=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-231459-7788>