gftp icon indicating copy to clipboard operation
gftp copied to clipboard

configure.ac:10: warning: macro 'AM_GNU_GETTEXT' not found in library

Open Cat22 opened this issue 3 years ago • 11 comments

I just downloaded gFtp because it was not available in openSuse 15.3

$: ./autogen.sh 
configure.ac:10: warning: macro 'AM_GNU_GETTEXT' not found in library
configure.ac:11: installing 'autoconf/ar-lib'
configure.ac:11: installing 'autoconf/compile'
configure.ac:56: installing 'autoconf/config.guess'
configure.ac:56: installing 'autoconf/config.sub'
configure.ac:6: installing 'autoconf/install-sh'
configure.ac:6: installing 'autoconf/missing'
lib/Makefile.am: installing 'autoconf/depcomp'
configure.ac:10: error: possibly undefined macro: AM_GNU_GETTEXT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf `documentation.

Cat22 avatar Dec 30 '21 20:12 Cat22

It's part of the gettext package, unfortunately some distros split a source package into several packages (Dev, doc, bin, common), creating confusion

wdlkmpx avatar Feb 02 '22 05:02 wdlkmpx

Is there a workaround? I'm using openSuse Tumbleweed

Cat22 avatar Feb 02 '22 14:02 Cat22

Try to install:

  • gettext
  • gettext-tools
  • gettext-devel
  • gettext-autopoint
  • gettext-common-devel
  • gettext-libs

Etc

wdlkmpx avatar Feb 02 '22 15:02 wdlkmpx

It would be better if the autotools stuff is replaced by something else. Python is discarded of course

I have a simple configure script and makefiles that are ready to replace auto tools in several simple projects that don't have portability issues, it's good enough for cross compiling and determining flags and dependencies through pkg-config, no one will notice any difference, it's 100% compatible with autotools

Configure time: 1 second

This project is a bit more complex, maybe in 3 months the script will be ready for gFTP

wdlkmpx avatar Feb 02 '22 22:02 wdlkmpx

One more question: What versions are you using? All my gettext stuff is version 0.21-2.17 I have gettext tools What is this missing? If I can find out i can submit it to openSuse for update.

gettext runtime:

usr/bin/gettext
/usr/bin/gettext.sh
/usr/bin/msgfmt
/usr/bin/ngettext
My gettext tools installs these files:

gettext-tools

/usr/bin/autopoint
/usr/bin/gettextize
/usr/bin/msgattrib
/usr/bin/msgcat
/usr/bin/msgcmp
/usr/bin/msgcomm
/usr/bin/msgconv
/usr/bin/msgen
/usr/bin/msgexec
/usr/bin/msgfilter
/usr/bin/msggrep
/usr/bin/msginit
/usr/bin/msgmerge
/usr/bin/msgunfmt
/usr/bin/msguniq
/usr/bin/recode-sr-latin
/usr/bin/xgettext
/usr/include/autosprintf.h
/usr/include/gettext-po.h
/usr/lib64/gettext
/usr/lib64/gettext/cldr-plurals
/usr/lib64/gettext/hostname
/usr/lib64/gettext/project-id
/usr/lib64/gettext/urlget
/usr/lib64/gettext/user-email
/usr/lib64/libasprintf.la
/usr/lib64/libasprintf.so
/usr/lib64/libgettextlib.la
/usr/lib64/libgettextlib.so
/usr/lib64/libgettextpo.la
/usr/lib64/libgettextpo.so
/usr/lib64/libgettextpo.so.0
/usr/lib64/libgettextpo.so.0.5.7
/usr/lib64/libgettextsrc.la
/usr/lib64/libgettextsrc.so
/usr/lib64/preloadable_libintl.so
/usr/share/aclocal
/usr/share/aclocal/gettext.m4
/usr/share/aclocal/host-cpu-c-abi.m4
/usr/share/aclocal/iconv.m4
/usr/share/aclocal/intlmacosx.m4
/usr/share/aclocal/lib-ld.m4
/usr/share/aclocal/lib-link.m4
/usr/share/aclocal/lib-prefix.m4
/usr/share/aclocal/nls.m4
/usr/share/aclocal/po.m4
/usr/share/aclocal/progtest.m4
/usr/share/gettext-0.21
/usr/share/gettext-0.21/its
/usr/share/gettext-0.21/its/glade.loc
/usr/share/gettext-0.21/its/glade1.its
/usr/share/gettext-0.21/its/glade2.its
/usr/share/gettext-0.21/its/gsettings.its
/usr/share/gettext-0.21/its/gsettings.loc
/usr/share/gettext-0.21/its/gtkbuilder.its
/usr/share/gettext-0.21/its/metainfo.its
/usr/share/gettext-0.21/its/metainfo.loc
/usr/share/gettext/archive.dir.tar.xz
/usr/share/gettext/config.rpath
/usr/share/gettext/gettext.h
/usr/share/gettext/javaversion.class
/usr/share/gettext/msgunfmt.tcl
/usr/share/gettext/po
/usr/share/gettext/po/Makefile.in.in
/usr/share/gettext/po/Makevars.template
/usr/share/gettext/po/Rules-quot
/usr/share/gettext/po/boldquot.sed
/usr/share/gettext/po/[email protected]
/usr/share/gettext/po/[email protected]
/usr/share/gettext/po/insert-header.sin
/usr/share/gettext/po/quot.sed
/usr/share/gettext/po/remove-potcdate.sin
/usr/share/gettext/projects
/usr/share/gettext/projects/GNOME
/usr/share/gettext/projects/GNOME/team-address
/usr/share/gettext/projects/GNOME/teams.html
/usr/share/gettext/projects/GNOME/teams.url
/usr/share/gettext/projects/GNOME/trigger
/usr/share/gettext/projects/KDE
/usr/share/gettext/projects/KDE/team-address
/usr/share/gettext/projects/KDE/teams.html
/usr/share/gettext/projects/KDE/teams.url
/usr/share/gettext/projects/KDE/trigger
/usr/share/gettext/projects/TP
/usr/share/gettext/projects/TP/team-address
/usr/share/gettext/projects/TP/teams.html
/usr/share/gettext/projects/TP/teams.url
/usr/share/gettext/projects/TP/trigger
/usr/share/gettext/projects/index
/usr/share/gettext/projects/team-address
/usr/share/gettext/styles
/usr/share/gettext/styles/po-default.css
/usr/share/gettext/styles/po-emacs-x.css
/usr/share/gettext/styles/po-emacs-xterm.css
/usr/share/gettext/styles/po-emacs-xterm16.css
/usr/share/gettext/styles/po-emacs-xterm256.css
/usr/share/gettext/styles/po-vim.css
/usr/share/info/autosprintf.info.gz
/usr/share/info/gettext.info.gz
/usr/share/locale/be/LC_MESSAGES/gettext-tools.mo etc etc
and the man pages
```

Cat22 avatar Feb 02 '22 23:02 Cat22

I'm using gettext (0.19.8.1-2+deb9u1)

I don't know why autogen.sh fails for you, something is probably malfunctioning. The autotools stuff is unnecessarily complex and supports stuff that is long gone and no longer makes sense, they can remove about 90% of the code and everything will still work fine on Linux distros > 2010 and modern BSDs, and MinGW perhaps

You can also you use the release tarballs - .tar.xz which include configure and should work everywhere, maybe tomorrow I'll release a new beta version, after that I don't think I'll be making many more changes, it's basically feature-complete

wdlkmpx avatar Feb 03 '22 16:02 wdlkmpx

I downloaded the tarball, autogen.sh and configure work there ok but the build fails (I do have gtk3-devel installed) I used ./configure --disable-gtk2 --enable-gtk3 see attached file for build output gftp_build_errors.txt

The main issue seems to be

In file included from bookmarks.c:20:
gftp-gtk.h:89:3: error: unknown type name ‘GdkPixmap’
   89 |   GdkPixmap * pixmap;
      |   ^~~~~~~~~
gftp-gtk.h:90:3: error: unknown type name ‘GdkBitmap’
   90 |   GdkBitmap * bitmap;
      |   ^~~~~~~~~
gftp-gtk.h:296:51: error: unknown type name ‘GdkPixmap’; did you mean ‘GdkPixbuf’?
  296 |                                                   GdkPixmap ** pix,
      |                                                   ^~~~~~~~~
      |                                                   GdkPixbuf
gftp-gtk.h:297:51: error: unknown type name ‘GdkBitmap’; did you mean ‘GdkKeymap’?
  297 |                                                   GdkBitmap ** bitmap );
      |                                                   ^~~~~~~~~
      |                                                   GdkKeymap


Cat22 avatar Feb 04 '22 22:02 Cat22

The gtk3 port doesn't compile yet, you have to use gtk2. If gtk2 is not available then suse is not worth using

My GTK knowledge is becoming rusty, when will the gtk3 port finally compile? I don't know

First I need a psychiatrist and some diazepam pills to overcome my irrational hatred of gnome and gtk. Perhaps someone else can finish the gtk3 port in time

wdlkmpx avatar Feb 05 '22 20:02 wdlkmpx

I ran autogen.sh on slackware 15.0 and it didn't trigger any error, autoconf 2.69. I read some projects might have issues with autoconf 2.70+, I was not able to test that version, but the next gftp beta release might come with something that looks like the autoconf configure script, but it isn't, it will be wconf

Meanwhile this release provides a fresh tar.xz file https://github.com/masneyb/gftp/releases/tag/2.9.0b

wdlkmpx avatar Feb 07 '22 23:02 wdlkmpx

I got it working under GTK2 (using the xz'd tar file) I really don't know what the difference is between GTK2 and 3 in practical terms

Cat22 avatar Feb 08 '22 13:02 Cat22

fresh .tar.xz release with configure script

https://github.com/masneyb/gftp/releases/tag/2.9.1b

wdlkmpx avatar Feb 15 '22 18:02 wdlkmpx