NRPE Installation Error(make all)
Posted: Mon Jul 31, 2017 7:09 am
Hi Team
While trying to install nrpe plugin and running the command make all i am getting the following error. Kindly update on this. Thanks!!
cd ./src/; make ; cd ..
make[1]: Entering directory '/opt/nrpe-2.15/src'
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib/x86_64-linux-gnu -lssl -lcrypto -lnsl
In file included from ./nrpe.c:34:0:
./../include/dh.h: In function ‘get_dh512’:
./../include/dh.h:20:4: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’
dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);
^
./nrpe.c: In function ‘main’:
./nrpe.c:118:2: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
asprintf(&env_string,"NRPE_MULTILINESUPPORT=1");
^
./nrpe.c:204:3: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
getcwd(config_file,sizeof(config_file));
^
./nrpe.c:309:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
chdir("/");
^
./nrpe.c:379:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
chdir("/");
^
./nrpe.c: In function ‘my_system’:
./nrpe.c
2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
pipe(fd);
^
./nrpe.c
4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd[1],buffer,strlen(buffer)+1);
^
./nrpe.c
5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd[1],buffer,bytes_read);
^
./nrpe.c: In function ‘write_pid_file’:
./nrpe.c
3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd,pbuf,strlen(pbuf));
^
./utils.c: In function ‘my_connect’:
./utils.c:151:10: warning: implicit declaration of function ‘my_create_socket’ [-Wimplicit-function-declaration]
sock = my_create_socket(ai, bind_address);
^
Makefile:39: recipe for target 'nrpe' failed
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory '/opt/nrpe-2.15/src'
Regards,
Deepak.P
While trying to install nrpe plugin and running the command make all i am getting the following error. Kindly update on this. Thanks!!
cd ./src/; make ; cd ..
make[1]: Entering directory '/opt/nrpe-2.15/src'
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib/x86_64-linux-gnu -lssl -lcrypto -lnsl
In file included from ./nrpe.c:34:0:
./../include/dh.h: In function ‘get_dh512’:
./../include/dh.h:20:4: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’
dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);
^
./nrpe.c: In function ‘main’:
./nrpe.c:118:2: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
asprintf(&env_string,"NRPE_MULTILINESUPPORT=1");
^
./nrpe.c:204:3: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
getcwd(config_file,sizeof(config_file));
^
./nrpe.c:309:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
chdir("/");
^
./nrpe.c:379:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
chdir("/");
^
./nrpe.c: In function ‘my_system’:
./nrpe.c
pipe(fd);
^
./nrpe.c
write(fd[1],buffer,strlen(buffer)+1);
^
./nrpe.c
write(fd[1],buffer,bytes_read);
^
./nrpe.c: In function ‘write_pid_file’:
./nrpe.c
write(fd,pbuf,strlen(pbuf));
^
./utils.c: In function ‘my_connect’:
./utils.c:151:10: warning: implicit declaration of function ‘my_create_socket’ [-Wimplicit-function-declaration]
sock = my_create_socket(ai, bind_address);
^
Makefile:39: recipe for target 'nrpe' failed
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory '/opt/nrpe-2.15/src'
Regards,
Deepak.P