> On 24 Jan 2024, at 15:31, Martin Landa <landa.mar...@gmail.com> wrote:
> 
> Hi,
> 
> st 24. 1. 2024 v 15:22 odesílatel Nicklas Larsson <n_lars...@yahoo.com 
> <mailto:n_lars...@yahoo.com>> napsal:
>> I too would have been surprised if glibc wasn’t there. (I’m shooting from 
>> the hips :-).
>> 
>> You can investigate the "config.log” for hopefully more detailed information 
>> on why the math library configure test failed.
> 
> oh, it is caused by -Werror.
> 


Yes, of course!

You can add it after configure: e.g. `make CFLAGS=‘$CFLAGS -Werror’` if you 
want, but not before.


Cheers!


> conftest.c:59:1: note: 'atan' is declared in header '<math.h>'
>    58 | #include <limits.h>
>    59 | #undef atan
> cc1: all warnings being treated as errors
> 
> See also:
> 
>    54 | int64_t x;
>       |         ^
> cc1: all warnings being treated as errors
> 
> Now with
> 
>         CFLAGS="-g -Wall -fno-common -Wextra -Wunused" \
>      CXXFLAGS="-g -Wall -I/usr/include"  \
>             ./configure --prefix=/opt/grass \
>             --enable-largefile --enable-shared \
>             --with-blas --with-bzlib --with-cairo --with-cxx --with-freetype \
>             --with-freetype-includes=/usr/include/freetype2 --with-gdal \
>             --with-geos --with-lapack --with-netcdf --with-nls \
>             --with-odbc --with-openmp --with-pdal=no \
>             --with-postgres --with-postgres-includes=/usr/include/postgresql \
>             --with-proj-share=/usr/share/proj --with-readline \
>             --with-sqlite --with-x --with-zstd
> 
> it compiles...
> 
> Martin
> 
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to