nagios.spec that comes w/ 3.3.1 is BROKEN!

alexus alexus at gmail.com
Tue Sep 6 23:53:59 CEST 2011


[root at uftwfnagios ~]# wget
http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.3.1.tar.gz
--2011-09-06 17:43:11--
http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.3.1.tar.gz
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz
[following]
--2011-09-06 17:43:11--
http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Reusing existing connection to prdownloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://surfnet.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz
[following]
--2011-09-06 17:43:11--
http://surfnet.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz
Resolving surfnet.dl.sourceforge.net... 130.59.138.21, 2001:620:0:1b::21
Connecting to surfnet.dl.sourceforge.net|130.59.138.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1714630 (1.6M) [application/x-gzip]
Saving to: “nagios-3.3.1.tar.gz”

100%[===================================================================================================================================================================================================>]
1,714,630   1.42M/s   in 1.1s

2011-09-06 17:43:12 (1.42 MB/s) - “nagios-3.3.1.tar.gz” saved [1714630/1714630]

[root at uftwfnagios ~]# rpmbuild -tb nagios-3.3.1.tar.gz
warning: line 40: prereq is deprecated: PreReq: /usr/bin/logger,
chkconfig, sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1B8XpT
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf nagios-3.3.1
+ /usr/bin/gzip -dc /root/nagios-3.3.1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nagios-3.3.1
/var/tmp/rpm-tmp.1B8XpT: line 34: cd: nagios-3.3.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.1B8XpT (%prep)


RPM build errors:
    line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig,
sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
    Bad exit status from /var/tmp/rpm-tmp.1B8XpT (%prep)
[root at uftwfnagios ~]#

----

[root at uftwfnagios ~]# tar -zxf nagios-3.3.1.tar.gz
[root at uftwfnagios ~]# ls -ld nagios
drwxr-xr-x 16 nagios nagios 4096 Jul 25 17:20 nagios
[root at uftwfnagios ~]# mv nagios nagios-3.3.1
[root at uftwfnagios ~]# tar -cf nagios-3.3.1.tar.gz nagios-3.3.1^C
[root at uftwfnagios ~]# mv nagios-3.3.1.tar.gz nagios-3.3.1.tar.gz.1
[root at uftwfnagios ~]# tar -czf nagios-3.3.1.tar.gz nagios-3.3.1
[root at uftwfnagios ~]# rpmbuild -tb nagios-3.3.1.tar.gz
warning: line 40: prereq is deprecated: PreReq: /usr/bin/logger,
chkconfig, sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wi8zWR
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf nagios-3.3.1
+ /usr/bin/gzip -dc /root/nagios-3.3.1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nagios-3.3.1
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.13SH1H
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd nagios-3.3.1
+ export PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/sbin
+ PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/sbin
+ CFLAGS='-O2 -g'
+ CXXFLAGS='-O2 -g'
+ ./configure --with-init-dir=/etc/init.d
--with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios
--with-lockfile=/var/run/nagios.pid --with-nagios-user=nagios
--with-nagios-group=nagios --prefix=/usr --exec-prefix=/usr/sbin
--bindir=/usr/sbin --sbindir=/usr/lib/nagios/cgi
--libexecdir=/usr/lib/nagios/plugins --datarootdir=/usr/share/nagios
--sysconfdir=/etc/nagios --localstatedir=/var/log/nagios
--with-file-perfdata --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
--with-template-objects --with-template-extinfo
configure: error: unrecognized option: --datarootdir=/usr/share/nagios
Try `./configure --help' for more information.
error: Bad exit status from /var/tmp/rpm-tmp.13SH1H (%build)


RPM build errors:
    line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig,
sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
    Bad exit status from /var/tmp/rpm-tmp.13SH1H (%build)
[root at uftwfnagios ~]# cd nagios-3.3.1
[root at uftwfnagios nagios-3.3.1]# ./configure --help | grep -i datarootdir
[root at uftwfnagios nagios-3.3.1]# cd ../nagios-3.2.3
[root at uftwfnagios nagios-3.2.3]# ./configure --help | grep -i datarootdir
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
[root at uftwfnagios nagios-3.2.3]#



-- 
http://alexus.org/

------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list