<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Martin,<div><br></div><div>Noting that you use a non-default prefix, you may need to add `LDFLAGS="-L/usr/lib”` (and perhaps add ´”-I/usr/include” to CFLAGS and CXXFLAGS).</div><div>The same result could perhaps be reached with `--with-includes=/usr/include --with-libs=/usr/lib` added to configure, although that I’m not sure of.</div><div><br></div><div><br></div><div>Best,</div><div>Nicklas</div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On 24 Jan 2024, at 13:34, Martin Landa via grass-dev <grass-dev@lists.osgeo.org> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">Hi, <div><br></div><div>I am unable to compile GRASS on Debian testing. The configure fails with:</div><div><br></div><div>checking for atan... no<br>checking for atan in -lm... no<br>configure: error: *** Failed check for math library.<br><div><br></div><div>I installed dependencies by</div><div><br></div><div>apt build-dep grass<br></div><div><br></div><div>and run</div><div><br></div><div>        CFLAGS="-g -Wall -Werror -fno-common -Wextra -Wunused" \<br>            CXXFLAGS="-g -Wall"  \<br>       ./configure --prefix=/opt/grass \<br>            --enable-largefile --enable-shared \<br>            --with-blas --with-bzlib --with-cairo --with-cxx --with-freetype \<br>            --with-freetype-includes=/usr/include/freetype2 --with-gdal \<br>            --with-geos --with-lapack --with-netcdf --with-nls \<br>            --with-odbc --with-openmp --with-pdal=no \<br>            --with-postgres --with-postgres-includes=/usr/include/postgresql \<br>            --with-proj-share=/usr/share/proj --with-readline \<br>            --with-sqlite --with-x --with-zstd<br></div><div><br></div><div>Any idea what could be wrong? Thanks in advance, Martin</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Martin Landa<br><a href="http://geo.fsv.cvut.cz/gwiki/Landa" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br><a href="http://gismentors.cz/mentors/landa" target="_blank">http://gismentors.cz/mentors/landa</a></div></div></div>
_______________________________________________<br>grass-dev mailing list<br>grass-dev@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/grass-dev<br></div></blockquote></div><br></body></html>