VMime 0.9.0 autoconf build process uses the libgnutls-config script to search for GNU TLS (by using AM_PATH_LIBGNUTLS).
This script is deprecated and not shipped in gnutls 2.8.0 and later; pkg-config should now be used.
Andreas Metzler provided a patch for fixing this.
This doesn't actually fix the problem. The file attached to the SF comment only changes a line in SConstruct (not even sure what that is). The file that needs to be changed is m4/libgnutls.
We can fix it by replacing the AM_PATH_LIBGNUTLS(1.2.0, have_gnutls=yes, have_gnutls=no) by PKG_CHECK_MODULES(GNUTLS, gnutls >= 1.2.0, have_gnutls=yes, have_gnutls=no) in the file configure.in and update the configure file by issuing the command "autoreconfig -vfi".
Comments
Hi,
I want apply patch but i known't do it.
i am try :
patch configure fixgnutlsdetect.diff
It give me this error :
patching file configure
Hunk #1 FAILED at 1621.
1 out of 1 hunk FAILED -- saving rejects to file configure.rej
Thank you !
This doesn't actually fix the problem. The file attached to the SF comment only changes a line in SConstruct (not even sure what that is). The file that needs to be changed is m4/libgnutls.
Would you care to elaborate? I've tried modifying various files to work around this problem and still have issues.
So far Vmime appears to be broken?
I tried the patch and it goes a little further. Still looking for libgnutils:
*** Could not run libgnutls test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed
*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you
*** may want to edit the libgnutls-config script: /usr/local/bin/libgnutls-config
I tried using a pre 2.8 version but there is an issue where gnutils --version returns 2.10.0
The solution is to use a version < 2.8. I got it to build with 2.6.6
We can fix it by replacing the AM_PATH_LIBGNUTLS(1.2.0, have_gnutls=yes, have_gnutls=no) by PKG_CHECK_MODULES(GNUTLS, gnutls >= 1.2.0, have_gnutls=yes, have_gnutls=no) in the file configure.in and update the configure file by issuing the command "autoreconfig -vfi".
Regards, Ngoc Tam