[Nagiosplug-help] RPM build errors: File not found: /var/tmp/nrpe-buildroot/etc/init.d/nrpe
Kaushal Shriyan
kaushalshriyan at gmail.com
Tue Mar 12 02:18:57 CET 2013
Hi
Any clue to the below issue?
[nrpe-2.14]# rpmbuild -ba nrpe.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36913
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf nrpe-2.14
+ /bin/gzip -dc /usr/src/redhat/SOURCES/nrpe-2.14.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nrpe-2.14
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.36913
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nrpe-2.14
+ export PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin
+ PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin
+ CFLAGS='-O2 -g -m64 -mtune=generic'
+ CXXFLAGS='-O2 -g -m64 -mtune=generic'
+ MAKE=make
+ ./configure --with-init-dir=/etc/init.d --with-nrpe-port=5666
--with-nrpe-user=nagios --with-nrpe-group=nagios --prefix=/usr
--exec-prefix=/usr/sbin --bindir=/usr/sbin --sbindir=/usr/lib/nagios/cgi
--libexecdir=/usr/lib/nagios/plugins --datadir=/usr/share/nagios
--sysconfdir=/etc/nagios --localstatedir=/var/log/nagios
--enable-command-args
configure: WARNING: unrecognized options: --with-init-dir
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking size of int... 4
checking size of short... 2
checking size of long... 8
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for closesocket... no
checking for socklen_t... yes
checking for type of socket size... size_t
checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... SSL libraries found in /usr/lib64
*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
......++*++*++*++*++*++*
checking for Kerberos include files... could not find include files
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating src/Makefile
config.status: creating package/solaris/Makefile
config.status: creating init-script
config.status: creating init-script.debian
config.status: creating init-script.suse
config.status: creating nrpe.spec
config.status: creating sample-config/nrpe.cfg
config.status: creating sample-config/nrpe.xinetd
config.status: creating include/config.h
configure: WARNING: unrecognized options: --with-init-dir
*** Configuration summary for nrpe 2.14 12-21-2012 ***:
General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios
Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client.
+ make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
gcc -O2 -g -m64 -mtune=generic -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c
./acl.c -L/usr/lib64 -lssl -lcrypto -lnsl -lwrap
gcc -O2 -g -m64 -mtune=generic -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c
./utils.c -L/usr/lib64 -lssl -lcrypto -lnsl
make[1]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
*** Compile finished ***
If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.
Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.20356
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nrpe-2.14
+ '[' /var/tmp/nrpe-buildroot '!=' / ']'
+ rm -rf /var/tmp/nrpe-buildroot
+ install -d -m 0755 /var/tmp/nrpe-buildroot/etc/init.d
+ DESTDIR=/var/tmp/nrpe-buildroot
+ make install install-daemon-config
cd ./src/ && make install
make[1]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
make install-plugin
make[2]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
/usr/bin/install -c -m 775 -o nagios -g nagios -d
/var/tmp/nrpe-buildroot/usr/lib/nagios/plugins
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe
/var/tmp/nrpe-buildroot/usr/lib/nagios/plugins
make[2]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
make install-daemon
make[2]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
/usr/bin/install -c -m 775 -o nagios -g nagios -d
/var/tmp/nrpe-buildroot/usr/sbin
/usr/bin/install -c -m 775 -o nagios -g nagios nrpe
/var/tmp/nrpe-buildroot/usr/sbin
make[2]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
make[1]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'
/usr/bin/install -c -m 775 -o nagios -g nagios -d
/var/tmp/nrpe-buildroot/etc/nagios
/usr/bin/install -c -m 644 -o nagios -g nagios sample-config/nrpe.cfg
/var/tmp/nrpe-buildroot/etc/nagios
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: nrpe-2.14-1
error: File not found: /var/tmp/nrpe-buildroot/etc/init.d/nrpe
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.74958
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nrpe-2.14
+ DOCDIR=/var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14
+ export DOCDIR
+ rm -rf /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14
+ /bin/mkdir -p /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14
+ cp -pr Changelog LEGAL README
/var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14
+ exit 0
Processing files: nrpe-plugin-2.14-1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.74958
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nrpe-2.14
+ DOCDIR=/var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14
+ export DOCDIR
+ rm -rf /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14
+ /bin/mkdir -p /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14
+ cp -pr Changelog LEGAL README
/var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14
+ exit 0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit) libcrypto.so.6()(64bit) libnsl.so.1()(64bit)
libssl.so.6()(64bit) nagios-plugins rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/nrpe-buildroot
RPM build errors:
File not found: /var/tmp/nrpe-buildroot/etc/init.d/nrpe
[nrpe-2.14]#
Regards
Kaushal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20130312/5b76b3bf/attachment.html>
More information about the Help
mailing list