Can't find gnutls ibrary when executing rpmbuild under non-root
- by Rilindo
I am trying to build ntgs from the latest source, using the .spec from rpmforge - as non-root via rpmbuild. During the compile, it fails at this step:
checking for GNUTLS... no
configure: error: ntfsprogs crypto code requires the gnutls library.
error: Bad exit status from /var/tmp/rpm-tmp.78913 (%build)
However, I can compile it successfully outside of rpmbuild. So it sounds like it just the matter of library being seen during the build. However, I can confirm that rpmbuild can see the library that gnutls resides:
[foo@bar ~]$ rpmbuild -E '%{_libdir}' rpmbuild/SPECS/ntfsprogs.spec
/usr/lib
Library location:
[foo@bar ntfs-3g_ntfsprogs-2012.1.15]$ /sbin/ldconfig -p | grep -i gnutls
libgnutls.so.13 (libc6) => /usr/lib/libgnutls.so.13
libgnutls.so (libc6) => /usr/lib/libgnutls.so
libgnutls-openssl.so.13 (libc6) => /usr/lib/libgnutls-openssl.so.13
libgnutls-openssl.so (libc6) => /usr/lib/libgnutls-openssl.so
libgnutls-extra.so.13 (libc6) => /usr/lib/libgnutls-extra.so.13
libgnutls-extra.so (libc6) => /usr/lib/libgnutls-extra.so
What would cause the problem of the library not being seen when you build a RPM?
EDIT: Oh yeah, I am running Centos 5.5.