Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
I tried to compile this on Ubuntu 14.04 and got an error, anybody know how to fix it?
./configure –with-ssl=/usr/bin/openssl –with-ssl-lib=/usr/lib/x86_64-linux-gnu –prefix=/etc/nagios3 –enable-command-args
make all gcc -g -O2 -I/usr/include/openssl -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 ./nrpe.c: In function ‘init_ssl’: ./nrpe.c:319:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] sslprm.cert_file, ERR_error_string(x, NULL)); ^ ./nrpe.c: In function ‘handle_conn_ssl’: ./nrpe.c:1754:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] remote_host, ERR_reason_error_string(x)); ^ ./nrpe.c: In function ‘main’: ./nrpe.c:168:9: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result] getcwd(config_file, sizeof(config_file)); ^ ./nrpe.c: In function ‘set_stdio_sigs’: ./nrpe.c:553:7: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] chdir(“/”); ^ ./nrpe.c: In function ‘my_system’: ./nrpe.c:1994:6: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] pipe(fd); /* create a pipe */ ^ In file included from ./nrpe.c:27:0: ../include/config.h:110:28: warning: ignoring return value of ‘seteuid’, declared with attribute warn_unused_result [-Wunused-result] #define SETEUID(id) seteuid(id) ^ ./nrpe.c:2026:3: note: in expansion of macro ‘SETEUID’ SETEUID(0); /* get root back so the next call works correctly */ ^ ./nrpe.c:2050:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd[1], buffer, strlen(buffer) + 1); ^ ./nrpe.c:2058:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd[1], buffer, bytes_read); ^ ./nrpe.c:2061:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd[1], “”, 1); ^ ./nrpe.c: In function ‘write_pid_file’: ./nrpe.c:2267:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, pbuf, strlen(pbuf)); ^ In file included from ./nrpe.c:27:0: ./nrpe.c: In function ‘remove_pid_file’: ../include/config.h:110:28: warning: ignoring return value of ‘seteuid’, declared with attribute warn_unused_result [-Wunused-result] #define SETEUID(id) seteuid(id) ^ ./nrpe.c:2286:2: note: in expansion of macro ‘SETEUID’ SETEUID(0); /* get root back so we can delete the pid file */ ^ gcc -g -O2 -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -L/usr/lib/x86_64-linux-gnu -lssl -lcrypto -lnsl ./check_nrpe.c: In function ‘connect_to_remote’: ./check_nrpe.c:926:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] rem_host, ERR_reason_error_string(x)); ^ ./check_nrpe.c: In function ‘alarm_handler’: ./check_nrpe.c:1457:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(STDOUT_FILENO, msg1, sizeof(msg1) – 1); ^ ./check_nrpe.c:1458:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(STDOUT_FILENO, text, lth1); ^ ./check_nrpe.c:1459:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(STDOUT_FILENO, msg2, sizeof(msg2) – 1); ^ ./check_nrpe.c:1460:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(STDOUT_FILENO, timeout_txt, lth2); ^ ./check_nrpe.c:1461:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(STDOUT_FILENO, msg3, sizeof(msg3) – 1);