Hi, msmtp-1.3.6 fails to compile on ppc64: [...] if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -I. -I. -I.. -I../lib -mcpu=G5 -O3 -pipe -fsigned-char -mabi=altivec -g -MT net.o -MD -MP -MF ".deps/net.Tpo" -c -o net.o net.c; \ then mv -f ".deps/net.Tpo" ".deps/net.Po"; else rm -f ".deps/net.Tpo"; exit 1; fi if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -I. -I. -I.. -I../lib -mcpu=G5 -O3 -pipe -fsigned-char -mabi=altivec -g -MT paths.o -MD -MP -MF ".deps/paths.Tpo" -c -o paths.o paths.c; \ then mv -f ".deps/paths.Tpo" ".deps/paths.Po"; else rm -f ".deps/paths.Tpo"; exit 1; fi if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -I. -I. -I.. -I../lib -mcpu=G5 -O3 -pipe -fsigned-char -mabi=altivec -g -MT smtp.o -MD -MP -MF ".deps/smtp.Tpo" -c -o smtp.o smtp.c; \ then mv -f ".deps/smtp.Tpo" ".deps/smtp.Po"; else rm -f ".deps/smtp.Tpo"; exit 1; fi if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -I. -I. -I.. -I../lib -mcpu=G5 -O3 -pipe -fsigned-char -mabi=altivec -g -MT xmalloc.o -MD -MP -MF ".deps/xmalloc.Tpo" -c -o xmalloc.o xmalloc.c; \ then mv -f ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; else rm -f ".deps/xmalloc.Tpo"; exit 1; fi smtp.c: In function `smtp_auth': smtp.c:1067: error: `GSASL_REALM' undeclared (first use in this function) smtp.c:1067: error: (Each undeclared identifier is reported only once smtp.c:1067: error: for each function it appears in.) make[2]: *** [smtp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/msmtp-1.3.6/work/msmtp-1.3.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/msmtp-1.3.6/work/msmtp-1.3.6' make: *** [all] Error 2 !!! ERROR: mail-mta/msmtp-1.3.6 failed. !!! Function src_compile, Line 39, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message.
Okay, do you have gsasl/libgsasl installed (just to make sure?) I'm sure I've seen this somewhere before... shame I can't remember :P
Just a guess: A version of libgsasl or gsasl < 0.2.4 is installed. The sasl USE flag is not set, so this is not considered a problem. msmtp wrongly detects this old version and tries to use it (version checking only works when pkg-config is properly used with (lib)gsasl). Perhaps add a --disable-gsasl argument, and only change that to --enable-gsasl when the sasl USE flag is set. Note that the configure options use -gsasl and not -sasl, so I'm not sure if $(use_enable sasl) is correct. Note also that msmtp >= 1.3.6 depends on GnuTLS >=1.2.0, not 1.1.23, when the gnutls USE flag is set. By the way: 1.4.0 is released ;-)
Created attachment 55500 [details, diff] msmtp-1.3.6.ebuild.patch this patch solves this problem for me. If this is a sufficient fix, please apply it. then I'll add KEYWORDS for ppc64 to the ebuild. :-)
Created attachment 55501 [details, diff] msmtp-1.3.6.ebuild.patch this patch solves this problem for me. If this is a sufficient fix, please apply it. then I'll add KEYWORDS for ppc64 to the ebuild. :-)
sorry.. don't klick that submit button twice :-/
I'm going with a $(use_enable sasl gsasl) fix, because this does the same thing and doesn't require a lengthy if. Martin: Weird. I usually get a freshmeat announcement through on a new release. I've got a feeling I'm forwarding them through to my old email address... I'll fix that :) Okay, so, to summarise, I've got the 1.4.0 ebuild finished and I'll be committing shortly. Markus, if you could mark that ~ppc64, I would appreciate it.
Fixed in CVS. added ~ppc64 to KEYWORDS.