Hi Roman! On 18/05/11 12:28, Roman Bogorodskiy wrote: > 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.
Thanks for noting that! It is fixed now in msmtp and mpop, by adding $(LIBINTL) to the *_LDADD line (LTLIBINTL may work too but is intended for packages using libtool). Martin ------------------------------------------------------------------------------ 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