jchelly / gadgetviewer

Simple tool for interactive visualisation of Gadget and SWIFT N-body simulations
GNU General Public License v3.0
24 stars 9 forks source link

Configuration problem on lastest Ubunt-oids #24

Closed MatthieuSchaller closed 8 months ago

MatthieuSchaller commented 8 months ago

I hit the following problems on my system:

matthieu> autoreconf
configure.ac:46: warning: macro 'AM_PATH_GTK_2_0' not found in library
configure.ac:8: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from...
configure.ac:8: the top level
configure.ac:10: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:10: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:781: AM_CONFIG_HEADER is expanded from...
configure.ac:10: the top level
configure.ac:28: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:28: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:28: the top level
configure.ac:41: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:41: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:41: the top level
configure.ac:49: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:49: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/gv_find_library.m4:29: GV_FIND_LIBRARY is expanded from...
configure.ac:49: the top level
configure.ac:52: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:52: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/gv_find_library.m4:29: GV_FIND_LIBRARY is expanded from...
configure.ac:52: the top level
configure.ac:55: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:55: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/gv_find_library.m4:29: GV_FIND_LIBRARY is expanded from...
configure.ac:55: the top level
configure.ac:58: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:58: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/gv_find_library.m4:29: GV_FIND_LIBRARY is expanded from...
configure.ac:58: the top level
configure.ac:61: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:61: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
m4/gv_find_library.m4:29: GV_FIND_LIBRARY is expanded from...
configure.ac:61: the top level
configure.ac:288: warning: AC_OUTPUT should be used without arguments.
configure.ac:288: You should run autoupdate.
configure.ac:46: error: possibly undefined macro: AM_PATH_GTK_2_0
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:46: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

The 2023 version of Ubuntu only ships with more recent autotool versions than the code assumes. Some of the macros have changed behaviour. (The GTK 2 thing is not the issue here; i can install the packages)

jchelly commented 8 months ago

Do you have libgtk2-dev installed already? I think that package provides the AM_PATH_GTK_2_0 macro that's causing one of the fatal errors so autoreconf will fail without it. I'm not sure why AC_MSG_ERROR would be missing so maybe that is a change between versions.

You might have more luck with a tar file from the releases page so you don't need to regenerate the configure script. But he best fix for this is probably for me to update the gtk3 branch and merge it into master.

MatthieuSchaller commented 8 months ago

Actually, that worked. :) I thought the other macro errors were unrelated to libgtk (which was tricky to get to install)