PintaProject / Pinta

Simple GTK# Paint Program
http://www.pinta-project.com/
MIT License
1.75k stars 267 forks source link

autogen.sh Crashes upon Reaching the .NET Check (Build-Install Issue) #764

Closed kinker31 closed 2 months ago

kinker31 commented 3 months ago

Description

When attempting to run autogen.sh as directed by the readme file, the shell script crashes after trying to check for the .NET version, citing an unexpected token as the reason for crashing. The log when trying to run the file itself is as follows:

[kinker31@renderinator Pinta]$ ./autogen.sh
Running intltoolize
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
Running aclocal -I .  ...
Running automake --gnu  ...
Running autoconf ...
configure.ac:33: warning: The macro 'AC_PROG_INTLTOOL' is obsolete.
configure.ac:33: You should run autoupdate.
aclocal.m4:695: AC_PROG_INTLTOOL is expanded from...
configure.ac:33: the top level
configure.ac:40: warning: The macro 'GLIB_GNU_GETTEXT' is obsolete.
configure.ac:40: You should run autoupdate.
aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:40: the top level
configure.ac:40: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:40: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:73: GLIB_LC_MESSAGES is expanded from...
aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:40: the top level
configure.ac:40: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:40: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
aclocal.m4:172: GLIB_WITH_NLS is expanded from...
aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:40: the top level
configure.ac:40: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:40: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
aclocal.m4:172: GLIB_WITH_NLS is expanded from...
aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:40: the top level
configure.ac:40: warning: The macro 'AC_OUTPUT_COMMANDS' is obsolete.
configure.ac:40: You should run autoupdate.
./lib/autoconf/status.m4:1025: AC_OUTPUT_COMMANDS is expanded from...
aclocal.m4:172: GLIB_WITH_NLS is expanded from...
aclocal.m4:388: GLIB_GNU_GETTEXT is expanded from...
aclocal.m4:488: AM_GLIB_GNU_GETTEXT is expanded from...
configure.ac:40: the top level
Running ./configure ...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /sbin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for pkg-config... /sbin/pkg-config
checking pkg-config is at least version 0.20... yes
checking for dotnet... /sbin/dotnet
./configure: line 3456: syntax error near unexpected token `$DOTNET_VERSION,'
./configure: line 3456: `AX_COMPARE_VERSION($DOTNET_VERSION, ge, $DOTNET_MINIMUM_VERSION,'

Context/Additional Info

I'm currently attempting to install (and run) the latest version of Pinta, and I am on Arch Linux x86_64, using linux-zen (6.8.2-zen2-1-zen) as my Linux kernel.

My .NET SDK version is 8.0.103, and my .NET runtime versions are 8.0.3 and 7.0.17. All other dependencies should be installed, though it's possible I might've missed one.

kinker31 commented 3 months ago

Was able to work around the issue by specifying the version number manually, taking out all the code related to the check, and building/installing anyways. The process worked, but DO NOT ATTEMPT THIS YOURSELF.

cameronwhite commented 2 months ago

Hmm, maybe there's a compatibility issue with a newer version of autotools or something like that, or just some dependency is missing. Are you building against the master branch, or the latest official release? You could check your installed dependencies against https://aur.archlinux.org/packages/pinta-git if you're building the master branch

cameronwhite commented 2 months ago

I think you also need to install the autoconf-archive package - I set up a Manjaro VM to test this out and got the same error message without that package installed

I should be able to add a better error message to the configure script if this isn't installed