{"action":"created","issue":{"url":"https://api.github.com/repos/NagiosEnterprises/nrpe/issues/133","repository_url":"https://api.github.com/repos/NagiosEnterprises/nrpe","labels_url":"https://api.github.com/repos/NagiosEnterprises/nrpe/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/NagiosEnterprises/nrpe/issues/133/comments","events_url":"https://api.github.com/repos/NagiosEnterprises/nrpe/issues/133/events","html_url":"https://github.com/NagiosEnterprises/nrpe/issues/133","id":237159604,"number":133,"title":"Cannot build on Centos  7.3.1611 ","user":{"login":"ASWRichard","id":29569785,"avatar_url":"https://avatars3.githubusercontent.com/u/29569785?v=3","gravatar_id":"","url":"https://api.github.com/users/ASWRichard","html_url":"https://github.com/ASWRichard","followers_url":"https://api.github.com/users/ASWRichard/followers","following_url":"https://api.github.com/users/ASWRichard/following{/other_user}","gists_url":"https://api.github.com/users/ASWRichard/gists{/gist_id}","starred_url":"https://api.github.com/users/ASWRichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASWRichard/subscriptions","organizations_url":"https://api.github.com/users/ASWRichard/orgs","repos_url":"https://api.github.com/users/ASWRichard/repos","events_url":"https://api.github.com/users/ASWRichard/events{/privacy}","received_events_url":"https://api.github.com/users/ASWRichard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"hedenface","id":16650353,"avatar_url":"https://avatars1.githubusercontent.com/u/16650353?v=3","gravatar_id":"","url":"https://api.github.com/users/hedenface","html_url":"https://github.com/hedenface","followers_url":"https://api.github.com/users/hedenface/followers","following_url":"https://api.github.com/users/hedenface/following{/other_user}","gists_url":"https://api.github.com/users/hedenface/gists{/gist_id}","starred_url":"https://api.github.com/users/hedenface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedenface/subscriptions","organizations_url":"https://api.github.com/users/hedenface/orgs","repos_url":"https://api.github.com/users/hedenface/repos","events_url":"https://api.github.com/users/hedenface/events{/privacy}","received_events_url":"https://api.github.com/users/hedenface/received_events","type":"User","site_admin":false},"assignees":[{"login":"hedenface","id":16650353,"avatar_url":"https://avatars1.githubusercontent.com/u/16650353?v=3","gravatar_id":"","url":"https://api.github.com/users/hedenface","html_url":"https://github.com/hedenface","followers_url":"https://api.github.com/users/hedenface/followers","following_url":"https://api.github.com/users/hedenface/following{/other_user}","gists_url":"https://api.github.com/users/hedenface/gists{/gist_id}","starred_url":"https://api.github.com/users/hedenface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedenface/subscriptions","organizations_url":"https://api.github.com/users/hedenface/orgs","repos_url":"https://api.github.com/users/hedenface/repos","events_url":"https://api.github.com/users/hedenface/events{/privacy}","received_events_url":"https://api.github.com/users/hedenface/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2017-06-20T10:14:15Z","updated_at":"2017-06-23T08:13:12Z","closed_at":null,"body":"On running make all I get the following error:\r\n\r\n ```\r\nmake all\r\ncd ./src/; make\r\nmake[1]: Entering directory `/root/Downloads/nrpe-nrpe-3.1.1/src'\r\ngcc -g -O2 -I/usr/include/krb5   -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto   -lnsl\r\nIn file included from ./nrpe.c:35:0:\r\n./../include/dh.h: In function ‘get_dh2048’:\r\n./../include/dh.h:36:4: error: dereferencing pointer to incomplete type\r\n  dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL);\r\n    ^\r\n./../include/dh.h:37:4: error: dereferencing pointer to incomplete type\r\n  dh->g=BN_bin2bn(dh2048_g,sizeof(dh2048_g),NULL);\r\n    ^\r\n./../include/dh.h:38:9: error: dereferencing pointer to incomplete type\r\n  if ((dh->p == NULL) || (dh->g == NULL))\r\n         ^\r\n./../include/dh.h:38:28: error: dereferencing pointer to incomplete type\r\n  if ((dh->p == NULL) || (dh->g == NULL))\r\n                            ^\r\nmake[1]: *** [nrpe] Error 1\r\nmake[1]: Leaving directory `/root/Downloads/nrpe-nrpe-3.1.1/src'\r\nmake: *** [all] Error 2\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/NagiosEnterprises/nrpe/issues/comments/310602183","html_url":"https://github.com/NagiosEnterprises/nrpe/issues/133#issuecomment-310602183","issue_url":"https://api.github.com/repos/NagiosEnterprises/nrpe/issues/133","id":310602183,"user":{"login":"ASWRichard","id":29569785,"avatar_url":"https://avatars3.githubusercontent.com/u/29569785?v=3","gravatar_id":"","url":"https://api.github.com/users/ASWRichard","html_url":"https://github.com/ASWRichard","followers_url":"https://api.github.com/users/ASWRichard/followers","following_url":"https://api.github.com/users/ASWRichard/following{/other_user}","gists_url":"https://api.github.com/users/ASWRichard/gists{/gist_id}","starred_url":"https://api.github.com/users/ASWRichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASWRichard/subscriptions","organizations_url":"https://api.github.com/users/ASWRichard/orgs","repos_url":"https://api.github.com/users/ASWRichard/repos","events_url":"https://api.github.com/users/ASWRichard/events{/privacy}","received_events_url":"https://api.github.com/users/ASWRichard/received_events","type":"User","site_admin":false},"created_at":"2017-06-23T08:13:12Z","updated_at":"2017-06-23T08:13:12Z","body":"contents of the makeFile in /tmp/nrpe-master/\r\n\r\n`[root@awstats nrpe-master]# cat Makefile\r\n###############################\r\n# Makefile for NRPE\r\n#\r\n# Last Modified: 03-14-2007\r\n###############################\r\n\r\n\r\n# Source code directories\r\nSRC_BASE=./src/\r\nSRC_INCLUDE=./include/\r\n\r\n# Mainly used for rpmbuild\r\n# DESTDIR=\r\n\r\nCC=gcc\r\nCFLAGS=-g -O2 -I/usr/include/krb5   -DHAVE_CONFIG_H\r\nLDFLAGS=    -lssl -lcrypto\r\n\r\nINSTALL=/usr/bin/install -c\r\nGREP=/usr/bin/grep\r\nEGREP=/usr/bin/grep -E\r\n\r\nprefix=$(DESTDIR)/usr/local/nagios\r\nexec_prefix=$(DESTDIR)/usr/local/nagios\r\nCFGDIR=$(DESTDIR)/usr/local/nagios/etc\r\nBINDIR=$(DESTDIR)/usr/local/nagios/bin\r\nSBINDIR=$(DESTDIR)/usr/local/nagios/bin\r\nLIBEXECDIR=$(DESTDIR)/usr/local/nagios/libexec\r\nNAGIOS_INSTALL_OPTS=-o nagios -g nagios\r\nNRPE_INSTALL_OPTS=-o nagios -g nagios\r\nOPSYS=linux\r\nDIST=rhel\r\nNRPE_USER=nagios\r\nNRPE_GROUP=nagios\r\nNAGIOS_USER=nagios\r\nNAGIOS_GROUP=nagios\r\n\r\nINIT_TYPE=systemd\r\nINIT_DIR=$(DESTDIR)/usr/lib/systemd/system\r\nINIT_OPTS=-o root -g root\r\nINIT_FILE=nrpe.service\r\nINETD_TYPE=xinetd\r\nINETD_DIR=$(DESTDIR)/etc/xinetd.d\r\nINETD_FILE=nrpe\r\nSRC_INETD=default-xinetd\r\nSRC_INIT=default-service\r\n\r\n\r\ndefault:\r\n        @echo;\\\r\n        echo Please enter 'make [option]' where [option] is one of:;\\\r\n        echo;\\\r\n        echo \"     all                  builds nrpe and check_nrpe\";\\\r\n        echo \"     nrpe                 builds nrpe only\";\\\r\n        echo \"     check_nrpe           builds check_nrpe only\";\\\r\n        echo \"     install-groups-users add the users and groups if they do not exist\";\\\r\n        echo \"     install              install nrpe and check_nrpe\";\\\r\n        echo \"     install-plugin       install the check_nrpe plugin\";\\\r\n        echo \"     install-daemon       install the nrpe daemon\";\\\r\n        echo \"     install-config       install the nrpe configuration file\";\\\r\n        echo \"     install-inetd        install the startup files for inetd, launchd, etc.\";\\\r\n        echo \"     install-init         install the startup files for init, systemd, etc.\";\\\r\n        echo\r\n\r\nall:\r\n        cd $(SRC_BASE); $(MAKE)\r\n\r\n        @echo \"\";\\\r\n        echo \"*** Compile finished ***\";\\\r\n        echo \"\";\\\r\n        echo \"You can now continue with the installation or upgrade process.\";\\\r\n        echo \"\";\\\r\n        echo \"Read the PDF documentation (docs/NRPE.pdf) for information on the next\";\\\r\n        echo \"steps you should take to complete the installation or upgrade.\";\\\r\n        echo \"\"\r\n\r\nnrpe:\r\n        cd $(SRC_BASE); $(MAKE)\r\n\r\ncheck_nrpe:\r\n        cd $(SRC_BASE); $(MAKE)\r\n\r\ninstall-plugin:\r\n        cd $(SRC_BASE); $(MAKE) $@\r\n\r\ninstall-daemon:\r\n        cd $(SRC_BASE); $(MAKE) $@\r\n\r\ninstall:\r\n        cd $(SRC_BASE); $(MAKE) $@\r\n\r\ninstall-init:\r\n        @if test $(SRC_INIT) = unknown; then \\\r\n                echo No init file to install; \\\r\n                exit 1; \\\r\n        fi\r\n        @if test $(INIT_TYPE) = upstart; then\\\r\n                echo $(INSTALL) -m 644 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n                $(INSTALL) -m 644 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n                echo initctl reload-configuration; \\\r\n                initctl reload-configuration; \\\r\n        elif test $(INIT_TYPE) = systemd; then\\\r\n                echo $(INSTALL) -m 644 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n                $(INSTALL) -m 644 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n        elif test $(INIT_TYPE) = smf10 -o $(INIT_TYPE) = smf11; then \\\r\n                echo $(INSTALL) -m 775 -g sys -d $(INIT_DIR);\\\r\n                $(INSTALL) -m 775 -g sys -d $(INIT_DIR);\\\r\n                echo $(INSTALL) -m 644 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n                $(INSTALL) -m 644 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n                echo svccfg import $(INIT_DIR)/$(INIT_FILE); \\\r\n                svccfg import $(INIT_DIR)/$(INIT_FILE); \\\r\n                echo \"*** Run 'svcadm enable nrpe' to start it\"; \\\r\n        else\\\r\n                echo $(INSTALL) -m 755 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n                $(INSTALL) -m 755 startup/$(SRC_INIT) $(INIT_DIR)/$(INIT_FILE); \\\r\n                if test $(INIT_TYPE) = newbsd; then\\\r\n                        if test $(DIST) = openbsd; then\\\r\n                                echo \"# nrpe=NO\" >> /etc/rc.conf;\\\r\n                                echo \"nrpe=\\\"-d -c $(CFGDIR)/nrpe.cfg\\\"\" >> /etc/rc.conf;\\\r\n                                echo \"Make sure to enable the nrpe daemon\";\\\r\n                        else\\\r\n                                echo \"nrpe=YES\" >> /etc/rc.conf;\\\r\n                                echo \"nrpe_configfile=$(CFGDIR)/nrpe.cfg\" >> /etc/rc.conf;\\\r\n                        fi;\\\r\n                elif test $(INIT_TYPE) = launchd; then\\\r\n                        launchctl load $(INIT_DIR)/$(INIT_FILE); \\\r\n                else\\\r\n                        if test -f /sbin/chkconfig ; then \\\r\n                            case \"$(DESTDIR)\" in */rpmbuild/*) break;; \\\r\n                            *)/sbin/chkconfig nrpe on;; \\\r\n                            esac; \\\r\n                        else\\\r\n                                echo \"Make sure to enable the nrpe daemon\";\\\r\n                        fi;\\\r\n                fi;\\\r\n        fi\r\n\r\ninstall-inetd:\r\n        @if test $(SRC_INETD) = unknown; then \\\r\n                echo No inetd file to install; \\\r\n                exit 1; \\\r\n        fi\r\n        @if test $(INETD_TYPE) = inetd; then \\\r\n                $(EGREP) -q \"^\\W*nrpe\\s+\" $(INETD_DIR)/$(INETD_FILE) 2>/dev/null || \\\r\n                   cat startup/$(SRC_INETD) >> $(INETD_DIR)/$(INETD_FILE); \\\r\n        elif test $(INETD_TYPE) = systemd; then \\\r\n                SRC_INETD_FILE=`echo \"$(SRC_INETD)\" | sed -e 's/socket/socket-svc/'`; \\\r\n                echo $(INSTALL) -m 644 startup/$$SRC_INETD_FILE $(INETD_DIR)/$(INIT_FILE); \\\r\n                $(INSTALL) -m 644 startup/$$SRC_INETD_FILE $(INETD_DIR)/$(INIT_FILE); \\\r\n        elif test $(INETD_TYPE) = smf10 -o $(INETD_TYPE) = smf11; then \\\r\n                echo $(INSTALL) -m 775 -g sys -d $(INETD_DIR);\\\r\n                $(INSTALL) -m 775 -g sys -d $(INETD_DIR);\\\r\n                echo $(INSTALL) -m 644 startup/$(SRC_INETD) $(INETD_DIR)/$(INETD_FILE); \\\r\n                $(INSTALL) -m 644 startup/$(SRC_INETD) $(INETD_DIR)/$(INETD_FILE); \\\r\n                $(INSTALL) -m 775 -d $(INETD_DIR);\\\r\n                echo svccfg import $(INETD_DIR)/$(INETD_FILE); \\\r\n                svccfg import $(INETD_DIR)/$(INETD_FILE); \\\r\n                echo \"*** Run 'svcadm enable nrpe' to start it\"; \\\r\n        elif test $(INIT_TYPE) = launchd; then\\\r\n                $(INSTALL) -m 644 startup/$(SRC_INETD) $(INETD_DIR)/$(INETD_FILE); \\\r\n                launchctl load $(INETD_DIR)/$(INETD_FILE); \\\r\n        else\\\r\n                echo $(INSTALL) -m 644 startup/$(SRC_INETD) $(INETD_DIR)/$(INETD_FILE); \\\r\n                $(INSTALL) -m 644 startup/$(SRC_INETD) $(INETD_DIR)/$(INETD_FILE); \\\r\n        fi\r\n        @$(EGREP) -q \"^nrpe[\\t ]+5666/tcp\" /etc/services || \\\r\n                echo \"***** MAKE SURE 'nrpe 5666/tcp' IS IN YOUR /etc/services FILE\"\r\n\r\ninstall-config:\r\n        $(INSTALL) -m 775 $(NAGIOS_INSTALL_OPTS) -d $(CFGDIR)\r\n        $(INSTALL) -m 644 $(NRPE_INSTALL_OPTS) sample-config/nrpe.cfg $(CFGDIR)\r\n\r\ninstall-groups-users:\r\n        @macros/add_group_user $(DIST) $(NAGIOS_USER) $(NAGIOS_GROUP)\r\n        @if test \"$(NAGIOS_USER)\" != \"$(NRPE_USER)\" -o \"$(NAGIOS_GROUP)\" != \"$(NRPE_GROUP)\"; then\\\r\n                macros/add_group_user $(DIST) $(NRPE_USER) $(NRPE_GROUP);\\\r\n        fi\r\n\r\nclean:\r\n        cd $(SRC_BASE); $(MAKE) $@; cd ..\r\n        rm -f core\r\n        rm -f *~ */*~\r\n\r\ndistclean: clean\r\n        cd $(SRC_BASE); $(MAKE) $@; cd ..\r\n        rm -rf autom4te.cache\r\n        rm -f config.log config.status config.cache sample-config/nrpe.cfg $(SRC_INCLUDE)/config.h\r\n        rm -f startup/bsd-init startup/debian-init startup/default-init startup/default-inetd\r\n        rm -f startup/default-service startup/default-socket startup/default-socket-svc\r\n        rm -f startup/default-xinetd startup/mac-init.plist startup/mac-inetd.plist\r\n        rm -f startup/newbsd-init startup/openbsd-init startup/openrc-conf\r\n        rm -f startup/openrc-init startup/rh-upstart-init startup/solaris-init.xml\r\n        rm -f startup/solaris-inetd.xml startup/tmpfile.conf startup/upstart-init\r\n        rm -f nrpe.spec uninstall include/common.h\r\n        rm -f Makefile\r\n\r\ndevclean: distclean\r\n`"}}
{"actor":{"display_login":"ASWRichard"}}