Re: [gdal-dev] Compilation error gdal / git

2021-10-08 Thread Even Rouault

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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


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

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Compilation error gdal / git

2021-10-08 Thread thomas bonfort
I've had a quick look at what it would take to upgrade for autoconf >=
2.70 compatibility, and it is beyond what I am ready to invest,
especially given that part of the code is on the road to be phased out
due to the switch to cmake. Your best/only option is to uninstall your
apt supplied autoconf and apt install autoconf2.69

regards,

On Thu, Oct 7, 2021 at 10:01 AM thomas bonfort  wrote:
>
> 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  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@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Compilation error gdal / git

2021-10-07 Thread thomas bonfort
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  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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Compilation error gdal / git

2021-10-07 Thread APM

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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev