Bug 233972 - net-p2p/linuxdcpp: Fails to build with OpenSSL 1.1.1 (on 12.0-RELEASE) error: member access into incomplete type 'dh_st'
Summary: net-p2p/linuxdcpp: Fails to build with OpenSSL 1.1.1 (on 12.0-RELEASE) error:...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL: http://beefy11.nyi.freebsd.org/data/h...
Keywords: needs-patch
Depends on:
Blocks: 231931
  Show dependency treegraph
Reported: 2018-12-13 06:26 UTC by Marko Cupać
Modified: 2018-12-14 04:44 UTC (History)
0 users

See Also:
koobs: merge-quarterly?

linuxdcpp-1.1.0_13.log (4.81 KB, text/plain)
2018-12-13 06:26 UTC, Marko Cupać
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Cupać 2018-12-13 06:26:37 UTC
Created attachment 200072 [details]

Poudriere build of net-p2p/linuxdcpp fails probably because of TLSv1 depreciation. I have attached relevant part of poudriere log.
Comment 1 Tobias Kortkamp freebsd_committer 2018-12-13 07:16:09 UTC
The problem isn't the TLSv1 deprecation, but that OpenSSL 1.1.1 has made
many types (including DH) opaque, breaking API compatibility.

dcpp/CryptoManager.cpp:110:6: error: member access into incomplete type 'dh_st'
                        dh->p = BN_bin2bn(dh4096_p, sizeof(dh4096_p), 0);

Port is unmaintained and upstream appears to be inactive since 2011.
This does not bode well for the future of this port.  Can you provide
a patch to add OpenSSL 1.1.1 support?
Comment 2 Marko Cupać 2018-12-13 12:35:24 UTC
(In reply to Tobias Kortkamp from comment #1)

Unfortunately I can't provide a patch as I don't understand the code.

I have reported this on linuxdc++'s launchpad:

Hopefully they will patch it upstream, or some FreeBSD user will chime in with a patch. I'd be glad to help with testing.