[packagers] odd rpmbuild error while building nagios-plugins

Bill Schwanitz bilsch at bilsch.org
Thu Jun 8 21:13:57 CEST 2006


I am getting a rather strange error while attempting to build the
nagios-plugins package. According to svn, the spec is in revision 4481.

../libtool: line 1657: cd: yes/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `yes/lib'
make[3]: *** [check_disk] Error 1
make[3]: Leaving directory
`/usr/src/redhat/BUILD/nagios-plugins-1.4.3/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/src/redhat/BUILD/nagios-plugins-1.4.3/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/nagios-plugins-1.4.3'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.6866 (%build)

In reviewing the Makefile in /usr/src/redhat/BUILD/nagios-plugins-1.4.3, I
see the following lines:

LDFLAGS =  -L. -Lyes/lib
PGINCLUDE = -Iyes/include
PGLIBS = -Lyes/lib -lpq -lcrypt

As a temp hack to get around this, I tried the fllowing script just below
the configure section in the .spec file:

find . -type f -exec sed -e 's/-Lyes\/lib//' -e 's/-Iyes\/include//' -i {} \;

Oddly, another configure is run somewhere in the rpmbuild process. I'm
guessing this is part of the extramodules section of the spec file.

Any thoughts? Is this something I have somehow introduced? ( the only
modification to the .spec file is my hack to try to fix the Makefiles )

Thanks,

-- 

Bill Schwanitz







More information about the packagers mailing list