[gdal-dev] Compilation error gdal / git

Even Rouault even.rouault at spatialys.com
Fri Oct 8 14:56:17 PDT 2021


Hi,

Although a bit annoying, you can probably just ignore the warnings 
emitted by ./autogen.sh with autoconf 2.71, and run ./configure right 
behind, without trying autoupdate

I've a clean up in https://github.com/OSGeo/gdal/pull/4626 that results 
in ./autogen.sh not emitting warning with autoconf 2.69 or 2.71. That's 
a bit risky material though, so this will likely only go to master / 
3.4dev, and not in 3.3 branch

Even

Le 07/10/2021 à 09:47, APM a écrit :
> 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

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list