[Bug 211223] net-p2p/libtorrent: Make sure to explicitly link with libcrypto

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 19 12:08:28 UTC 2016


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

            Bug ID: 211223
           Summary: net-p2p/libtorrent: Make sure to explicitly link with
                    libcrypto
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://forums.freebsd.org/threads/56970/
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: t at tobik.me
 Attachment #172717 maintainer-approval+
             Flags:

Created attachment 172717
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172717&action=edit
libtorrent.diff

On some system compiling net-p2p/rtorrent fails with e.g.

> /usr/local/lib/libtorrent.so: undefined reference to `SHA1_Update'
> /usr/local/lib/libtorrent.so: undefined reference to `SHA1_Final'
> /usr/local/lib/libtorrent.so: undefined reference to `RC4'
> /usr/local/lib/libtorrent.so: undefined reference to `DH_compute_key'

Currently net-p2p/libtorrent itself doesn't link with libcrypto but should. 
With default options rtorrent likely picks up libcrypto implicitly through one
of its dependencies.  This fails when non-default options are chosen.  The
attached patch makes sure that net-p2p/libtorrent links with libcrypto.  Please
see the linked forum thread for more details.

Builds fine in Poudriere in a FreeBSD/i386 9.3 jail.  Setting
maintainer-approval to + since the port has no maintainer.

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


More information about the freebsd-ports-bugs mailing list