Hi,

It appears msmtp has problems passing linker flags for libintl
(gettext).

How to reproduce:

./configure --without-libidn --without-libgsasl --with-ssl=no
make

Should fail with something like:

conf.o(.text+0x91): In function `check_account':
/usr/home/novel/ports_stuff/msmtp/work/msmtp-1.4.24/src/conf.c:711:
undefined reference to `libintl_gettext'
... and a number of similar messages ...

Note all that 'without' configure knobs, we need them to make sure
additional libs don't suck in libintl indirectly.

It happens because libintl flags are not listed in src/Makefile.am:

msmtp_LDADD =  $(tls_LIBS) $(libgsasl_LIBS) $(libidn_LIBS) 
$(libgnome_keyring_LIBS)

Probably it should look something like that:

msmtp_LDADD =  $(tls_LIBS) $(libgsasl_LIBS) $(libidn_LIBS) 
$(libgnome_keyring_LIBS) $(LTLIBINTL)

I have a similar fix to FreeBSD port and it seems to work: http://goo.gl/TFWbF

With the only exception that I patched src/Makefile.in in order not to
bother with its regeneration.

Roman Bogorodskiy

Attachment: pgpuVjlMRCl1Z.pgp
Description: PGP signature

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
msmtp-users mailing list
msmtp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msmtp-users

Reply via email to