NagiosEnterprises / nrpe

NRPE Agent
GNU General Public License v2.0
257 stars 133 forks source link

Error while making with OpenSSL 1.1.1k #266

Open KamithaVihanga opened 1 year ago

KamithaVihanga commented 1 year ago

Unable to make nrpe-4.1.0 with openssl 1.1.1k. Ended up with below error.

[root@VM01 nrpe-4.1.0]# make all
cd ./src/; make
make[1]: Entering directory '/home/software/nrpe-4.1.0/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     
./nrpe.c: In function ‘init_ssl’:
./nrpe.c:500:8: warning: implicit declaration of function ‘get_dh2048’ [-Wimplicit-function-declaration]
   dh = get_dh2048();
        ^~~~~~~~~~
./nrpe.c:500:6: warning: assignment to ‘DH *’ {aka ‘struct dh_st *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   dh = get_dh2048();
      ^
/tmp/ccQXaG0k.o: In function `init_ssl':
/home/software/nrpe-4.1.0/src/./nrpe.c:500: undefined reference to `get_dh2048'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:48: nrpe] Error 1
make[1]: Leaving directory '/home/software/nrpe-4.1.0/src'
make: *** [Makefile:65: all] Error 2
[root@VM01 nrpe-4.1.0]#