[packagers] odd rpmbuild error while building nagios-plugins
Bill Schwanitz
bilsch at bilsch.org
Fri Jun 9 17:36:15 CEST 2006
Dag,
I think I have a working fix to the .spec file.
I poked around through the .spec file included with the nagios-plugins
source distribution and saw they have their own .spec file. I ... adapted
( ok, yank 'n paste between vi buffers :-> ) a few lines.
I also took a look at the configure options and noticed the mysql expected
an argument. I did not see the same note for the postgres option, but
assumed it was the same. I appended an =/usr to each. It may be more
correct to say =%{prefix} - but I was not sure.
I have buildlog files for both builds ( failed and successful ). I would
attach them, but they total about 200k ( non-compressed ). If you would
like to see them, please let me know.
I have attached a diff against the current svn revision for the .spec
file. Note - I have *not* tested this rpm. I will probably not get to
testing of this rpm until mid-week next week. If you want, I can let you
know how it goes.
Bill
> On Thu, 8 Jun 2006, Bill Schwanitz wrote:
>
>> 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 )
>
> Bill,
>
> I've seen the same problem but had no time to look into it. A lot of
> people send me email in private notifying me of the new release, but it
> would be easier if they'd look into my buildlogs and see why it isn't
> available. And help out if they can.
>
> Maybe I'll have more time this weekend to investigate, maybe not...
>
> It obviously is a bug in configure, which does not surprise me as
> nagios-plugins has little QA. Nearly every release has had some brown
> paper bag issue that could have been prevented :(
>
> Kind regards,
> -- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
> [all I want is a warm bed and a kind word and unlimited power]
>
>
--
Bill Schwanitz
--
"Mindlessness and moral idiocy are not characteristically human
attributes; they
are symptoms of heard-poisoning."
-- Aldous Huxley, Brave New World Revisited ( pg. 44 )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-plugins.spec.diff
Type: application/octet-stream
Size: 762 bytes
Desc: not available
Url : http://lists.rpmforge.net/pipermail/packagers/attachments/20060609/f28f4268/nagios-plugins.spec.obj
More information about the packagers
mailing list