I was able to rebuild the xmlstarlet SRPM on Fedora Core 3 Linux by making a few simple changes. On FC3, libexslt depends on libgcrypt, which isn't included in the linking arguments. I made the following changes, which fixed the problem:
1. Added a Build-Requires dependency on libgrcypt-devel.
2. Patched configure.in to include -lgcrypt whenever libexslt was being linked.
3. Changed the RPM spec to run autoconf before %configure so that the configure.in changes would end up in the configure script.
I was able to rebuild the xmlstarlet SRPM on Fedora Core 3 Linux by making a few simple changes. On FC3, libexslt depends on libgcrypt, which isn't included in the linking arguments. I made the following changes, which fixed the problem:
1. Added a Build-Requires dependency on libgrcypt-devel.
2. Patched configure.in to include -lgcrypt whenever libexslt was being linked.
3. Changed the RPM spec to run autoconf before %configure so that the configure.in changes would end up in the configure script.
That's it.
You can download my modified version from here:
http://community.moertel.com/rpms/fedora/3/SRPMS/xmlstarlet-1.0.1-2.tgm.src.rpm
But I suspect that it would be better to add the dependency on libgcrypt in the mainsteam RPM release. Would that be possible?
Cheers,
Tom
Yes, please include it in the next release! I had the same problems, since I'm also using FC3.
I'll try to include it into the next release.
Meanwhile did you try passing it via LDFLAGS
before running configure?
Something like
LDFLAGS=-lgcrypt ./configure ...
Thanks,
--MG