Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 May 2023 01:01:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271219] net-mgmt/nrpe3: fails to build with OpenSSL 3
Message-ID:  <bug-271219-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271219

            Bug ID: 271219
           Summary: net-mgmt/nrpe3: fails to build with OpenSSL 3
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ngie@FreeBSD.org

The port fails to compile/link against OpenSSL 3 because it's using depreca=
ted
OpenSSL APIs.
There's a newer version upstream which seems to support OpenSSL 3. It's 4.1=
.0+
according to the changelog:
https://github.com/NagiosEnterprises/nrpe/blob/master/CHANGELOG.md#410---20=
22-07-18

From
https://pkg.bofh.network/data/MAIN-default-openssl3/2023-05-03_02h33m48s/lo=
gs/errors/nrpe3-3.2.1.log
:

./nrpe.c:285:2: warning: 'ENGINE_load_builtin_engines' is deprecated
[-Wdeprecated-declarations]
        ENGINE_load_builtin_engines();
        ^
/usr/local/include/openssl/engine.h:358:1: note: 'ENGINE_load_builtin_engin=
es'
has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./nrpe.c:286:2: warning: 'RAND_set_rand_engine' is deprecated
[-Wdeprecated-declarations]
        RAND_set_rand_engine(NULL);
        ^
/usr/local/include/openssl/rand.h:52:1: note: 'RAND_set_rand_engine' has be=
en
explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_engine(ENGINE *engine);
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./nrpe.c:287:3: warning: 'ENGINE_register_all_complete' is deprecated
[-Wdeprecated-declarations]
        ENGINE_register_all_complete();
        ^
/usr/local/include/openssl/engine.h:415:1: note: 'ENGINE_register_all_compl=
ete'
has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int ENGINE_register_all_complete(void);
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./nrpe.c:351:9: warning: enumeration values 'SSLv2' and 'SSLv2_plus' not
handled in switch [-Wswitch]
        switch(sslprm.ssl_proto_ver) {
               ^~~~~~~~~~~~~~~~~~~~
./nrpe.c:432:16: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                        while ((x =3D ERR_get_error_line_data(NULL, NULL, N=
ULL,
NULL)) !=3D 0) {
                                    ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./nrpe.c:456:8: warning: call to undeclared function 'get_dh2048'; ISO C99 =
and
later do not support implicit function declarations
[-Wimplicit-function-declaration]
                dh =3D get_dh2048();
                     ^
./nrpe.c:456:6: warning: incompatible integer to pointer conversion assigni=
ng
to 'DH *' (aka 'struct dh_st *') from 'int' [-Wint-conversion]
                dh =3D get_dh2048();
                   ^ ~~~~~~~~~~~~
./nrpe.c:458:3: warning: 'DH_free' is deprecated [-Wdeprecated-declarations]
                DH_free(dh);
                ^
/usr/local/include/openssl/dh.h:200:1: note: 'DH_free' has been explicitly
marked deprecated here
OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
--- check_nrpe ---
./check_nrpe.c:825:3: warning: 'ENGINE_load_builtin_engines' is deprecated
[-Wdeprecated-declarations]
                ENGINE_load_builtin_engines();
                ^
/usr/local/include/openssl/engine.h:358:1: note: 'ENGINE_load_builtin_engin=
es'
has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:826:3: warning: 'RAND_set_rand_engine' is deprecated
[-Wdeprecated-declarations]
                RAND_set_rand_engine(NULL);
                ^
/usr/local/include/openssl/rand.h:52:1: note: 'RAND_set_rand_engine' has be=
en
explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_engine(ENGINE *engine);
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:827:4: warning: 'ENGINE_register_all_complete' is deprecated
[-Wdeprecated-declarations]
                ENGINE_register_all_complete();
                ^
/usr/local/include/openssl/engine.h:415:1: note: 'ENGINE_register_all_compl=
ete'
has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int ENGINE_register_all_complete(void);
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:867:9: warning: enumeration values 'SSL_Ver_Invalid', 'SSLv2=
',
and 'SSLv2_plus' not handled in switch [-Wswitch]
        switch(sslprm.ssl_proto_ver) {
               ^~~~~~~~~~~~~~~~~~~~
./check_nrpe.c:924:17: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                                while ((x =3D ERR_get_error_line_data(NULL,=
 NULL,
NULL, NULL)) !=3D 0) {
                                            ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:933:17: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                                while ((x =3D ERR_get_error_line_data(NULL,=
 NULL,
NULL, NULL)) !=3D 0) {
                                            ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:946:17: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                                while ((x =3D ERR_get_error_line_data(NULL,=
 NULL,
NULL, NULL)) !=3D 0) {
                                            ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:973:16: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                        while ((x =3D ERR_get_error_line_data(NULL, NULL, N=
ULL,
NULL)) !=3D 0) {
                                    ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:1047:16: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                        while ((x =3D ERR_get_error_line_data(NULL, NULL, N=
ULL,
NULL)) !=3D 0) {
                                    ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
./check_nrpe.c:1055:16: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                        while ((x =3D ERR_get_error_line_data(NULL, NULL, N=
ULL,
NULL)) !=3D 0) {
                                    ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
--- nrpe ---
./nrpe.c:1930:16: warning: 'ERR_get_error_line_data' is deprecated
[-Wdeprecated-declarations]
                        while ((x =3D ERR_get_error_line_data(NULL, NULL, N=
ULL,
NULL)) !=3D 0) {
                                    ^
/usr/local/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has
been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:182:49: note: expanded from macro
'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro
'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
--- check_nrpe ---
10 warnings generated.
--- nrpe ---
9 warnings generated.
ld: error: undefined symbol: get_dh2048
>>> referenced by nrpe.c
>>>               /tmp/nrpe-f4469f.o:(init_ssl)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [nrpe] Error code 1

make[2]: stopped in /wrkdirs/usr/ports/net-mgmt/nrpe3/work/nrpe-nrpe-3.2.1/=
src
1 error

make[2]: stopped in /wrkdirs/usr/ports/net-mgmt/nrpe3/work/nrpe-nrpe-3.2.1/=
src
*** [all] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/net-mgmt/nrpe3/work/nrpe-nrpe-3.2.1
1 error

make[1]: stopped in /wrkdirs/usr/ports/net-mgmt/nrpe3/work/nrpe-nrpe-3.2.1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271219-7788>