Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while make all undefined reference to `OPENSSL_init_ssl' #241

Open
bionexit opened this issue Jul 30, 2020 · 2 comments
Open

Error while make all undefined reference to `OPENSSL_init_ssl' #241

bionexit opened this issue Jul 30, 2020 · 2 comments

Comments

@bionexit
Copy link

NRPE version 4.0.1

[root@network-minitor nrpe-master]# make all
cd ./src/; make
make[1]: Entering directory /tmp/nrpe-master/src' gcc -g -O2 -I/usr/include/krb5 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto -lnsl /tmp/ccVDSatv.o: In function init_ssl':
/tmp/nrpe-master/src/./nrpe.c:285: undefined reference to OPENSSL_init_ssl' /tmp/nrpe-master/src/./nrpe.c:286: undefined reference to OPENSSL_init_ssl'
/tmp/nrpe-master/src/./nrpe.c:291: undefined reference to TLS_server_method' /tmp/nrpe-master/src/./nrpe.c:314: undefined reference to TLS_method'
/tmp/nrpe-master/src/./nrpe.c:421: undefined reference to SSL_CTX_set_options' /tmp/ccVDSatv.o: In function get_dh2048':
/tmp/nrpe-master/src/./../include/dh.h:42: undefined reference to DH_set0_pqg' collect2: ld RETURE 1 make[1]: *** [nrpe] ERROR 1 make[1]: Leaving directory /tmp/nrpe-master/src'
make: *** [all] ERROR 2

[root@network-minitor nrpe-master]# yum list installed | grep openssl
openssl.x86_64 1.0.1e-58.el6_10
openssl-devel.x86_64 1.0.1e-58.el6_10

@sawolf
Copy link
Contributor

sawolf commented Nov 6, 2020

Hi, thanks for reporting this.

Can you confirm that this still exists on NRPE 4.0.3? Also, which distribution/version/architecture are you running on this system?

@mollux78
Copy link

mollux78 commented Feb 23, 2021

Hello,

i have the same problem on nrpe 4.0.3 👍
application CSWlibssl-dev libssl_dev - Openssl 1.0 development support files
application CSWlibssl1-0-0 libssl1_0_0 - Openssl 1.0 runtime libraries
application SMCossl openssl

./configure --with-nrpe-user=nrpe --with-nrpe-group=nrpe --with-nagios-user=nrpe --with-nagios-group=nrpe --enable-command-args --enable-ssl

1038# make all
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto -lnsl -lsocket
./nrpe.c: In function init_ssl': ./nrpe.c:406: error: SSL_OP_NO_TLSv1_1' undeclared (first use in this function)
./nrpe.c:406: error: (Each undeclared identifier is reported only once
./nrpe.c:406: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `nrpe'

Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants