"no member named 'SSLv2_method'" SSLv2 is no longer supported. (Use #ifndef OPENSSL_NO_SSL2) During BSDCan 2018 the intention to update OpenSSL in base to 1.1.x branch was documented. Intention is to update OpenSSL in 12-STABLE to 1.1.1 when that is released. Poudriere log:
https://keg.brnrd.eu/data/111amd64-default-openssl110/2018-08-17_12h10m13s/logs/errors/mongodb34-3.4.16.log
Is it possible someone can take the maintainer? I don't have enough free time now.
Created attachment 199330 [details] WIP/INCOMPLETE Fixes: "error: no member named 'SSLv2_method' in the global namespace" With this patch there is still the "error: member access into incomplete type 'SSL_CTX' (aka 'ssl_ctx_st')". I'm currently trying an upgrade of the port to 3.4.18. Will see in the morning if the build succeeded. In the meantime maybe somebody else knows what to do with this error.
(In reply to Eric Camachat from comment #2) May I reset MAINTAINER so that someone else can assign themselves without approval?
Created attachment 199456 [details] WIP/experimental: fixes more errors More errors fixed. I'm not into openssl and what changed in 1.1.x. I wonder if this is the way to go. Would it be easy to declare a dependency on port security/openssl and use that?
(In reply to Ronald Klop from comment #5) Thank you Ronald for the patch. I want to wait 2 weeks for the maintainer and approval to your patch, and when not, as @koobs suggested, reset a maintainer. Are you interested to the port?
(In reply to Jochen Neumeister from comment #6) As stated the patch is WIP/experimental. It does not even compile yet. But I have a simpler approach which does work. I'll add it here in a minute.
Created attachment 199458 [details] fix: depend on and use security/openssl Depend on the openssl-1.0.x port. This fixes the build and creates a working executable. Fixes the only dependencies (net-mgmt/unifi*) of this port. Inspired by: https://svnweb.freebsd.org/ports/head/devel/monodevelop/Makefile?r1=485604&r2=485603&pathrev=485604
(In reply to Jochen Neumeister from comment #6) Yes, I'm ok becoming maintainer of this port.
(In reply to Ronald Klop from comment #9) Please add yourself in the line MAINTAINER =. Then we wait 2 weeks. After that I can commit it
testbuild patch, builds fine on 11.2a.
A commit references this bug: Author: pi Date: Sat Nov 24 11:19:40 UTC 2018 New revision: 485756 URL: https://svnweb.freebsd.org/changeset/ports/485756 Log: databases/mongodb34: fix build with openssl 1.1.x in base - depend on security/openssl - submitter becomes maintainer PR: 230698 Submitted by: Ronald Klop <ronald-lists@klop.ws> Reported by: brnrd Approved by: Eric Camachat <eric@camachat.org> (maintainer) Changes: head/databases/mongodb34/Makefile
commit was reverted by antoine, because: you can't depend on an openssl version different from SSL_DEFAULT, this will break users' installation. TODO: find another solution. One suggestion: depend on mongodb36 instead ? Or update 34 to 3.4.17 ?
Created attachment 199541 [details] mongodb34-openssl111.diff Here's a patch from [1] found via repology.org adapted to apply to the port. It's a couple of upstream [2] commits for the bundled asio lib squashed together. I do not see anything obviously wrong with it and it appears to fix the build with OpenSSL 1.1.1. I cannot speak for runtime behavior though. Maybe someone with more MongoDB knowledge can test it. > Or update 34 to 3.4.17 ? The AUR package is at 3.4.17 and still requires this patch, so that's probably not enough. [1] https://aur.archlinux.org/packages/mongodb-3.4 [2] https://github.com/boostorg/asio
(In reply to Tobias Kortkamp from comment #14) Your patch works for me on my RPI3 12.0-RC2/arm64. I have unifi5 working again. (Next step for me is porting mongodb36 to arm64.)
Committed, thanks!
A commit references this bug: Author: pi Date: Sun Dec 23 13:36:55 UTC 2018 New revision: 488220 URL: https://svnweb.freebsd.org/changeset/ports/488220 Log: databases/mongodb34: fix build with OpenSSL 1.1.x - ronald-lists@klop.ws becomes maintainer PR: 230698 Submitted by: tobik Reported by: brnrd Approved by: eric@camachat.org (maintainer) Obtained from: https://aur.archlinux.org/packages/mongodb-3.4 Changes: head/databases/mongodb34/Makefile head/databases/mongodb34/files/patch-asio-openssl-1.1.0
(In reply to commit-hook from comment #17) The part of the commit message about changing the maintainer did not go into the committed diff.
A commit references this bug: Author: tobik Date: Wed Dec 26 13:16:54 UTC 2018 New revision: 488384 URL: https://svnweb.freebsd.org/changeset/ports/488384 Log: databases/mongodb34: Update maintainer (forgotten in the last commit) PR: 230698 Changes: head/databases/mongodb34/Makefile