Bug 254921 - databases/galera26 26.4.8_1 fails to build. undeclared identifier SSL_read_ex and SSL_write_ex
Summary: databases/galera26 26.4.8_1 fails to build. undeclared identifier SSL_read_ex...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-09 14:42 UTC by lysfjord.daniel
Modified: 2021-11-17 21:23 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (devel)


Attachments
poudriere build log for databases/galera26 (101.53 KB, text/plain)
2021-04-09 14:50 UTC, lysfjord.daniel
no flags Details
Patch to build with libressl. Put into files patch-galerautils_src_gu__asio__stream__engine.cpp (402 bytes, patch)
2021-05-21 18:29 UTC, nti
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lysfjord.daniel 2021-04-09 14:42:46 UTC

    
Comment 1 lysfjord.daniel 2021-04-09 14:50:30 UTC
Created attachment 223947 [details]
poudriere build log for databases/galera26
Comment 2 lysfjord.daniel 2021-04-09 14:51:25 UTC
On 12.2-RELEASE-p6, with DEFAULT_VERSIONS+= ssl=libressl, galera26 fails to build using poudriere with the following errors:

/wrkdirs/usr/ports/databases/galera26/work/galera-release_26.4.8/galerautils/src/gu_asio_stream_engine.cpp:203:21: error: use of undeclared identifier 'SSL_read_ex'
        auto result(SSL_read_ex(ssl_, buf, max_count, &bytes_transferred));
                    ^
/wrkdirs/usr/ports/databases/galera26/work/galera-release_26.4.8/galerautils/src/gu_asio_stream_engine.cpp:246:21: error: use of undeclared identifier 'SSL_write_ex'
        auto result(SSL_write_ex(ssl_, buf, count, &bytes_transferred));
                    ^
2 errors generated.

Probably related to libressl? Build log attached.
Comment 3 lysfjord.daniel 2021-04-09 15:08:15 UTC
Last successful build on the same system was galera26-26.4.6_1
Comment 4 Andris Raugulis 2021-05-14 11:59:44 UTC
Any updates on this? It's been blocking updates for more than a month.
Comment 5 devel 2021-05-14 12:35:59 UTC
(In reply to Andris Raugulis from comment #4)

This should fix the compilation issue https://github.com/codership/galera/pull/589, but I didn't have a chance to test it yet.
Comment 6 Andris Raugulis 2021-05-14 13:09:04 UTC
Yes, the patch works, verified. Thanks!
Comment 7 nti 2021-05-21 18:00:36 UTC
A patch for the port in files would be nice. The port is blocking mysql server updates
Comment 8 nti 2021-05-21 18:29:36 UTC
Created attachment 225158 [details]
Patch to build with libressl. Put into files
patch-galerautils_src_gu__asio__stream__engine.cpp

Described here
https://github.com/codership/galera/pull/589/commits/09e20cbb1afc2b3a1a059846e10bb303a2002a37#diff-761d22d43fb4036abf9bc02ba46e25ae889654c7a115ef4c338bfb52a9906aa6
Comment 9 Andris Raugulis 2021-08-18 11:05:37 UTC
Unfortunately, this patch is still required (even for updated port of 26.4.9) and ports tree still requires manual patching.
Comment 10 lysfjord.daniel 2021-08-18 21:33:44 UTC
(In reply to Andris Raugulis from comment #9)

If you don't need galera support, it can be disabled.
Comment 11 Andris Raugulis 2021-11-10 17:53:34 UTC
Why is this marked as fixed, if the port still fails? It is not fixed and still requires manual work to force the port to build.
Comment 12 lysfjord.daniel 2021-11-10 18:33:01 UTC
Not fixe(In reply to Andris Raugulis from comment #11)

Seems like upstream did never merge the patch. Keep this open until a version exists in ports that works. Maybe whoever is the maintainer for databases/galera26 could make this patch part of the port for the time being?
Comment 13 lysfjord.daniel 2021-11-17 21:23:53 UTC
Port updated, problem fixed.