Bug 260143

Summary: net-mgmt/icinga2: does not build
Product: Ports & Packages Reporter: Dave Hayes <dave>
Component: Individual Port(s)Assignee: Jochen Neumeister <joneum>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: joneum
Priority: --- Flags: bugzilla: maintainer-feedback? (joneum)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Fixes this issue none

Description Dave Hayes 2021-11-30 16:47:25 UTC
As of this commit to freebsd ports tree:

  f6cd87ac26f9 net-mgmt/icinga2: Update to 2-13.2

I have been trying to build icinga2 with LibreSSL 3.4.2 (also in the same tree).
This has resulted in some breakage during the build phase:

FAILED: lib/base/CMakeFiles/base.dir/base_unity.cpp.o 
/usr/local/libexec/ccache/c++ -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DBOOST_FILESYSTEM_NO_DEPRECATED -D_GNU_SOURCE -I/wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/third-party/nlohmann_json -I/wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/third-party/utf8cpp/source -I/wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2 -I/wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/lib -I/wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/third-party/execvpe -I/wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/third-party/mmatch -I/wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/third-party/socketpair -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Qunused-arguments -fcolor-diagnostics -pthread -Winvalid-pch -std=c++0x -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -MD -MT lib/base/CMakeFiles/base.dir/base_unity.cpp.o -MF lib/base/CMakeFiles/base.dir/base_unity.cpp.o.d -o lib/base/CMakeFiles/base.dir/base_unity.cpp.o -c /wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/lib/base/base_unity.cpp
In file included from /wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/lib/base/base_unity.cpp:1:
In file included from /wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/lib/base/application.cpp:4:
In file included from /wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/lib/base/application-ti.cpp:3:
In file included from /wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/lib/base/utility.hpp:10:
In file included from /wrkdirs/usr/ports/net-mgmt/icinga2/work/icinga2-2.13.2/lib/base/tlsutility.hpp:22:
In file included from /usr/local/include/boost/asio/ssl/context.hpp:757:
/usr/local/include/boost/asio/ssl/impl/context.ipp:395:32: error: member access into incomplete type 'SSL_CTX' (aka 'ssl_ctx_st')
    void* cb_userdata = handle_->default_passwd_callback_userdata;
                               ^
/usr/local/include/openssl/ossl_typ.h:161:16: note: forward declaration of 'ssl_ctx_st'
typedef struct ssl_ctx_st SSL_CTX;
               ^

This happens a number of times with the exact same error condition (forward declaration of 'ssl_ctx_st').
Comment 1 Dave Hayes 2022-01-12 22:05:48 UTC
https://github.com/Icinga/icinga2/issues/9174
Comment 2 Dave Hayes 2022-01-17 20:28:27 UTC
Created attachment 231094 [details]
Fixes this issue
Comment 3 Jochen Neumeister freebsd_committer freebsd_triage 2022-03-05 10:43:40 UTC
(In reply to dave from comment #2)

are you sure about this patch? This is a patch for mysql
Comment 4 Dave Hayes 2022-03-05 17:02:44 UTC
I'm not sure of a lot of things with regards to the sufficiently complex system here. :)

This patch did serve to build icinga2, which uses boost libs. Mysql appears to also use boost libs. So, logically, this could very well be the same or similar patch, as the same things that have to be done to get icinga2 to build with LibreSSL are likely needed for mysql. 

When I generated the patch, I did so inside of icinga2's work tree, not mysql's work tree. That I -am- sure of.
Comment 5 Jochen Neumeister freebsd_committer freebsd_triage 2023-06-10 07:08:53 UTC
I don't see any errors anymore with the current FreeBSD versions