severity 636143 serious thanks Hi,
On Sun, Jul 31, 2011 at 07:10:09PM +0200, Andreas Metzler wrote: > Package: ssmtp > Version: 2.64-4 > Severity: normal > > Building ssmtp against a multi-arch enabled version of gnutls fails: > > ---------------- > gcc -o ssmtp ssmtp.o arpadate.o base64.o xgethostname.o md5auth/md5c.o > md5auth/hmac_md5.o -lnsl /usr/lib/libgnutls-openssl.so -DSTDC_HEADERS=1 > -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 > -DHAVE_LIBNSL=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 > -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 > -DHAVE_SSL=1 -DINET6=1 -DMD5AUTH=1 -DSSMTPCONFDIR=\"/etc/ssmtp\" > -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" > -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\" -O2 -g -Wall > gcc: error: /usr/lib/libgnutls-openssl.so: No such file or directory > make[1]: *** [ssmtp] Error 1 > make[1]: Leaving directory `/tmp/buildd/ssmtp-2.64' > make: *** [build] Error 2 > ---------------- This now happens in unstable. I was starting to get packages held back due to ssmtp not being upgradable, so I've prepared an NMU which I'm about to upload to DELAYED/2. Feel free to tell me to cancel or delay it longer, whatever you want. Patch attached. Regards, -- Iain Lane [ [email protected] ] Debian Developer [ [email protected] ] Ubuntu Developer [ [email protected] ] PhD student [ [email protected] ]
diff -Nru ssmtp-2.64/debian/changelog ssmtp-2.64/debian/changelog --- ssmtp-2.64/debian/changelog 2010-04-08 07:49:27.000000000 +0100 +++ ssmtp-2.64/debian/changelog 2011-08-09 12:54:03.000000000 +0100 @@ -1,3 +1,11 @@ +ssmtp (2.64-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Link against libgnutls-openssl; fixes FTBFS against muliarch enabled + gnutls + + -- Iain Lane <[email protected]> Tue, 09 Aug 2011 12:53:35 +0100 + ssmtp (2.64-4) unstable; urgency=low * Set back permissions as before 2.64-1 diff -Nru ssmtp-2.64/debian/patches/01-374327-use-gnutls.patch ssmtp-2.64/debian/patches/01-374327-use-gnutls.patch --- ssmtp-2.64/debian/patches/01-374327-use-gnutls.patch 2009-07-07 03:00:28.000000000 +0100 +++ ssmtp-2.64/debian/patches/01-374327-use-gnutls.patch 2011-08-09 12:59:13.000000000 +0100 @@ -14,30 +14,36 @@ Alejandro Rios <[email protected]> Anibal Monsalve Salazar <[email protected]> ---- a/configure 2008-03-07 07:53:03.000000000 +1100 -+++ b/configure 2009-07-06 23:33:59.000000000 +1000 -@@ -1562,7 +1562,7 @@ if test x$enableval = xyes ; then +Index: ssmtp-2.64/configure +=================================================================== +--- ssmtp-2.64.orig/configure 2011-08-09 12:58:32.870140807 +0100 ++++ ssmtp-2.64/configure 2011-08-09 12:59:10.444639834 +0100 +@@ -1562,7 +1562,7 @@ #define HAVE_SSL 1 EOF - LIBS="$LIBS -lssl" -+ LIBS="$LIBS /usr/lib/libgnutls-openssl.so" ++ LIBS="$LIBS -lgnutls-openssl" fi enableval="" ---- a/configure.in 2008-03-07 06:34:46.000000000 +1100 -+++ b/configure.in 2009-07-06 23:33:59.000000000 +1000 -@@ -52,7 +52,7 @@ AC_ARG_ENABLE(ssl, +Index: ssmtp-2.64/configure.in +=================================================================== +--- ssmtp-2.64.orig/configure.in 2011-08-09 12:58:32.850141606 +0100 ++++ ssmtp-2.64/configure.in 2011-08-09 12:58:36.000000000 +0100 +@@ -52,7 +52,7 @@ [ --enable-ssl support for secure connection to mail server]) if test x$enableval = xyes ; then AC_DEFINE(HAVE_SSL) - LIBS="$LIBS -lssl" -+ LIBS="$LIBS /usr/lib/libgnutls-openssl.so" ++ LIBS="$LIBS -lgnutls-openssl" fi enableval="" ---- a/ssmtp.c 2009-07-06 22:48:57.000000000 +1000 -+++ b/ssmtp.c 2009-07-06 23:33:59.000000000 +1000 +Index: ssmtp-2.64/ssmtp.c +=================================================================== +--- ssmtp-2.64.orig/ssmtp.c 2011-08-09 12:58:32.858141286 +0100 ++++ ssmtp-2.64/ssmtp.c 2011-08-09 12:58:54.213288209 +0100 @@ -26,11 +26,7 @@ #include <ctype.h> #include <netdb.h> @@ -51,7 +57,7 @@ #endif #ifdef MD5AUTH #include "md5auth/hmac_md5.h" -@@ -1133,7 +1129,7 @@ int smtp_open(char *host, int port) +@@ -1133,7 +1129,7 @@ } if(use_cert == True) { @@ -60,7 +66,7 @@ perror("Use certfile"); return(-1); } -@@ -1143,10 +1139,12 @@ int smtp_open(char *host, int port) +@@ -1143,10 +1139,12 @@ return(-1); }
signature.asc
Description: Digital signature

