lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.11k stars 162 forks source link

Compilation issue: "gettext infrastructure mismatch" #544

Closed I4HJrl0 closed 4 years ago

I4HJrl0 commented 5 years ago

LFTP version: latest master (6f0b3d8). OS: Ubuntu 18.04.

This is a copy of #376.

I'm running ./autogen.sh && make and I'm getting the following make error:

Making all in po make[2]: Entering directory 'lftp/po' error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.19 but the autoconf macros are from gettext version 0.18 Makefile:260: recipe for target 'stamp-po' failed make[2]: [stamp-po] Error 1 make[2]: Leaving directory 'lftp/po' Makefile:1613: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory 'lftp' Makefile:1558: recipe for target 'all' failed make: [all] Error 2

The error message is indeed correct: my Autoconf macros (as returned by gnulib-tool --extract-autoconf-snippet gettext) are indeed of version 0.18.1, and the installed gettext is of version 0.19.8.1.

I'm looking for a solution which can be applied before running autogen.sh (i.e. not an edit to the file makefile.in.in).

Thank you.

lavv17 commented 4 years ago

should be fixed in 4.9.0

joast commented 4 years ago

I was getting the same error with 4.9.1 on a few different Linux distributions and versions. Fixed it by uninstalling gnulib and cloning git://git.savannah.gnu.org/gnulib.git in my home directory. After that "./autogen.sh && make" was successful. Hope this works for anyone else having the same problem.