| Summary: | net/mosquitto: Fails to build with security/libressl 3.4.1: options.c:400:32: error: incomplete definition of type 'struct ssl_ctx_st' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Ivan Rozhuk <rozhuk.im> | ||||||
| Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Some People | CC: | brnrd, joe, rozhuk.im | ||||||
| Priority: | --- | Keywords: | needs-qa | ||||||
| Version: | Latest | Flags: | koobs:
maintainer-feedback?
(brnrd) koobs: merge-quarterly? |
||||||
| Hardware: | Any | ||||||||
| OS: | Any | ||||||||
| URL: | https://github.com/eclipse/mosquitto/issues/2198 | ||||||||
| See Also: | https://github.com/eclipse/mosquitto/issues/2198 | ||||||||
| Attachments: |
|
||||||||
Created attachment 229387 [details]
patch
Created attachment 229394 [details] patch Update to 2.0.13, already contain fix. https://github.com/eclipse/mosquitto/issues/2198 If the version update shouldnt be merged to quarterly (feature/abi changes), the build fix should be separately backported and individually committed, so that it can be merged to the quarterly branch (In reply to Kubilay Kocak from comment #3) Quarterly still has 3.3 branch of LibreSSL, so a MFH is not required and no backporting as the build is not broken there. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4b239d954907d22f263344d280e9f9fea7f65ecf commit 4b239d954907d22f263344d280e9f9fea7f65ecf Author: Bernard Spil <brnrd@FreeBSD.org> AuthorDate: 2021-11-10 20:42:31 +0000 Commit: Bernard Spil <brnrd@FreeBSD.org> CommitDate: 2021-11-10 20:42:31 +0000 net/mosquitto: Update to 2.0.13 * Fixes build with LibreSSL 3.4 PR: 259734 Reported by: Ivan Rozhuk <rozhuk im gmail com> Approved by: joe thrallingpenguin com (maintainer) net/mosquitto/Makefile | 3 +-- net/mosquitto/distinfo | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) |
FAILED: lib/CMakeFiles/libmosquitto.dir/options.c.o /usr/local/libexec/ccache/cc -DCMAKE -DVERSION=\"2.0.10\" -DWITH_EC -DWITH_SOCKS -DWITH_THREADING -DWITH_TLS -DWITH_TLS_PSK -DWITH_UNIX_SOCKETS -Dlibmosquitto_EXPORTS -I/usr/local/include -I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.0.10 -I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.0.10/lib -I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.0.10/include -I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.0.10/deps -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.0.10=. -O2 -pipe -O3 -pipe -funroll-loops -DSTRIP_FBSDID -D_FORTIFY_SOURCE=2 -mretpoline -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.0.10=. -fPIC -MD -MT lib/CMakeFiles/libmosquitto.dir/options.c.o -MF lib/CMakeFiles/libmosquitto.dir/options.c.o.d -o lib/CMakeFiles/libmosquitto.dir/options.c.o -c /tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.0.10/lib/options.c ../mosquitto-2.0.10/lib/options.c:400:32: error: incomplete definition of type 'struct ssl_ctx_st' CRYPTO_add(&(mosq->ssl_ctx)->references, 1, CRYPTO_LOCK_SSL_CTX); ~~~~~~~~~~~~~~~^ /usr/local/include/openssl/crypto.h:216:18: note: expanded from macro 'CRYPTO_add' CRYPTO_add_lock(addr,amount,type,__FILE__,__LINE__) ^~~~ /usr/local/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st' typedef struct ssl_ctx_st SSL_CTX; ^ ../mosquitto-2.0.10/lib/options.c:508:32: error: incomplete definition of type 'struct ssl_ctx_st' CRYPTO_add(&(mosq->ssl_ctx)->references, 1, CRYPTO_LOCK_SSL_CTX); ~~~~~~~~~~~~~~~^ /usr/local/include/openssl/crypto.h:216:18: note: expanded from macro 'CRYPTO_add' CRYPTO_add_lock(addr,amount,type,__FILE__,__LINE__) ^~~~ /usr/local/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'struct ssl_ctx_st' typedef struct ssl_ctx_st SSL_CTX; ^ 2 errors generated.