Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88069 - msmtp-1.3.6 fails to compile on ppc64
Summary: msmtp-1.3.6 fails to compile on ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 All
: High normal
Assignee: Tom Martin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-05 12:35 UTC by Markus Rothe (RETIRED)
Modified: 2005-04-07 10:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
msmtp-1.3.6.ebuild.patch (msmtp-1.3.6.ebuild.patch,453 bytes, patch)
2005-04-06 10:19 UTC, Markus Rothe (RETIRED)
Details | Diff
msmtp-1.3.6.ebuild.patch (msmtp-1.3.6.ebuild.patch,453 bytes, patch)
2005-04-06 10:20 UTC, Markus Rothe (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2005-04-05 12:35:19 UTC
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.
Comment 1 Tom Martin (RETIRED) gentoo-dev 2005-04-05 12:37:46 UTC
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
Comment 2 Martin Lambers 2005-04-05 13:14:59 UTC
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 ;-)
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2005-04-06 10:19:59 UTC
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. :-)
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2005-04-06 10:20:56 UTC
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. :-)
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2005-04-06 10:21:22 UTC
sorry.. don't klick that submit button twice :-/
Comment 6 Tom Martin (RETIRED) gentoo-dev 2005-04-07 04:41:46 UTC
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.
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2005-04-07 10:00:59 UTC
Fixed in CVS. added ~ppc64 to KEYWORDS.