[gdal-dev] Compilation error gdal / git

thomas bonfort thomas.bonfort at gmail.com
Thu Oct 7 01:01:53 PDT 2021


we seem to be using deprecated autoconf macros. It should work if you
downgrade autoconf to version 2.69 on your system. I'll look into
fixing our autoconf.ac syntax in a coming PR.

regards,
Thomas

On Thu, Oct 7, 2021 at 9:53 AM APM <apschwimmer at apmland.de> wrote:
>
> Dear List,
>
>
> if I try to compile gdal, I got an error message, see below in this email.
>
>
> I use Debian testing and git:
>
>
> git clone https://github.com/OSGeo/gdal.git
>
> cd gdal
>
> git checkout master
>
> cd gdal
>
> ./autogen.sh
>
>
> configure.ac:6172: warning: AC_OUTPUT should be used without arguments.
> configure.ac:6172: You should run autoupdate.
>
>
> autoupdate
>
>
> configure.ac:212: warning: AC_PROG_CC_C99 is obsolete; use AC_PROG_CC
>
> configure.ac:289: warning: The preprocessor macro `STDC_HEADERS' is
> obsolete.
>    Except in unusual embedded environments, you can safely include all
>    ISO C90 headers unconditionally.
>
>
> ./configure --prefix=/home/user/apps/gdal/
>
>
> make -j4
>
> Error:
>
> /src/gdal/gdal$ ./autogen.sh
> + aclocal -I ./m4
> configure.ac:218: error: AC_REQUIRE(): cannot be used outside of an
> AC_DEFUN'd macro
> configure.ac:218: the top level
> autom4te: error: /usr/bin/m4 failed with exit status: 1
> aclocal: error: autom4te failed with exit status: 1
> + autoconf
> configure.ac:218: error: AC_REQUIRE(): cannot be used outside of an
> AC_DEFUN'd macro
> configure.ac:218: the top level
> autom4te: error: /usr/bin/m4 failed with exit status: 1
>
>
> I'm not sure if I deal with gdal/git correctly.
>
>
> Maybe you have a tipp?
>
>
> Thank you!
>
>
> Kind regards
>
>
> Piet
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list