<div dir="ltr"><div>Actually ther was this warnings: </div><div><font face="monospace">lwgeom_geos.c:147:2: warning: implicit declaration of function ‘GEOSCoordSeq_copyToBuffer’; did you mean ‘GEOSCoordSeq_clone’? [-Wimplicit-function-declaration]<br>  147 |  GEOSCoordSeq_copyToBuffer(cs, (double*) pa->serialized_pointlist, (dims == 3), 0);<br>      |  ^~~~~~~~~~~~~~~~~~~~~~~~~<br>      |  GEOSCoordSeq_clone<br>lwgeom_geos.c: In function ‘ptarray_to_GEOSCoordSeq’:<br>lwgeom_geos.c:280:8: warning: implicit declaration of function ‘GEOSCoordSeq_copyFromBuffer’ [-Wimplicit-function-declaration]<br>  280 |   sq = GEOSCoordSeq_copyFromBuffer((const double*) pa->serialized_pointlist, pa->npoints, FLAGS_GET_Z(pa->flags), FLAGS_GET_M(pa->flags));<br>      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~<br>lwgeom_geos.c:280:6: warning: assignment to ‘GEOSCoordSeq’ {aka ‘struct GEOSCoordSeq_t *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]<br>  280 |   sq = GEOSCoordSeq_copyFromBuffer((const double*) pa->serialized_pointlist, pa->npoints, FLAGS_GET_Z(pa->flags), FLAGS_GET_M(pa->flags));<br>      |      ^<br></font></div><div><br></div><div>And this warning was repeated a bunch of time :</div><div><font face="monospace">gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -fPIC "-I../../liblwgeom"  -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c  -DNDEBUG  -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -I/usr/include/gdal "-I../../libpgcommon"  -I../rt_core -I. -I./ -I/usr/local/pgsql/include/server -I/usr/local/pgsql/include/internal  -D_GNU_SOURCE   -c -o rtpg_internal.o rtpg_internal.c<br>In file included from /usr/include/gdal/cpl_port.h:66,<br>                 from /usr/include/gdal/gdal.h:45,<br>                 from ../rt_core/librtcore.h:126,<br>                 from rtpostgis.h:39,<br>                 from rtpg_internal.h:33,<br>                 from rtpg_internal.c:34:<br>/usr/include/gdal/cpl_config.h:296: warning: "PACKAGE_URL" redefined<br>  296 | #define PACKAGE_URL ""<br>      |<br>In file included from /usr/local/pgsql/include/server/c.h:54,<br>                 from /usr/local/pgsql/include/server/postgres.h:46,<br>                 from rtpg_internal.c:31:<br>/usr/local/pgsql/include/server/pg_config.h:806: note: this is the location of the previous definition<br>  806 | #define PACKAGE_URL "<a href="https://www.postgresql.org/">https://www.postgresql.org/</a>"<br>      |</font><br></div>Here is the full output : <a href="https://github.com/ayoubft/postgis_error_file/blob/main/make_result.txt">https://github.com/ayoubft/postgis_error_file/blob/main/make_result.txt </a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">FATIHI Ayoub </div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 1, 2021 at 12:40 AM Ayoub FATIHI <<a href="mailto:ayoubfatihi1999@gmail.com">ayoubfatihi1999@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi community,<div>I was re-installing PostGIS with PostgreSQL from source.</div><div>And I have this problem : </div><div>Postgres compile just fine. But ...</div><div>When I run make for postgis, I get this error: </div><font face="arial black, sans-serif">------------------------------</font><div><font face="arial black, sans-serif">collect2: error: ld returned 1 exit status<br>make[2]: *** [Makefile:84: raster2pgsql] Error 1<br>make[2]: Leaving directory '/usr/local/src/postgis/raster/loader'<br>make[1]: *** [Makefile:35: rtloader] Error 2<br>make[1]: Leaving directory '/usr/local/src/postgis/raster'<br></font><div><font face="arial black, sans-serif">make: *** [GNUmakefile:22: all] Error 1</font><br></div><div><font face="arial black, sans-serif">----------------------------------</font></div><div>Noting also that config when done says:</div><div>-------------------------------</div><div><font face="monospace">PostGIS is now configured for x86_64-pc-linux-gnu</font><br><br><font face="monospace"> -------------- Compiler Info -------------</font><br><font face="monospace">  C compiler:           gcc -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros</font><br><font face="monospace">  C++ compiler (Wagyu): gcc -std=c++11 -x c++</font><br><font face="monospace">  CPPFLAGS:              -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c  -DNDEBUG</font><br><font face="monospace">  LDFLAGS:               -lm</font><br><font face="monospace">  SQL preprocessor:     /usr/bin/cpp -traditional-cpp -w -P</font><br><br><font face="monospace"> -------------- Additional Info -------------</font><br><font face="monospace">  Interrupt Tests:   DISABLED use: --with-interrupt-tests to enable</font><br><br><font face="monospace"> -------------- Dependencies --------------</font><br><font face="monospace">  GEOS config:          /usr/bin/geos-config</font><br><font face="monospace">  GEOS version:         3.8.0</font><br><font face="monospace">  GDAL config:          /usr/bin/gdal-config</font><br><font face="monospace">  GDAL version:         3.0.4</font><br><font face="monospace">  PostgreSQL config:    /usr/local/pgsql/bin/pg_config</font><br><b><font face="arial black, sans-serif">  PostgreSQL version:   PostgreSQL 14devel</font></b><br><font face="monospace">  PROJ4 version:        63</font><br><font face="monospace">  Libxml2 config:       /usr/bin/xml2-config</font><br><font face="monospace">  Libxml2 version:      2.9.10</font><br><font face="monospace">  JSON-C support:       yes</font><br><font face="monospace">  protobuf support:     yes</font><br><font face="monospace">  protobuf-c version:   1003003</font><br><font face="monospace">  PCRE support:         yes</font><br><font face="monospace">  Perl:                 /usr/bin/perl</font><br><br><font face="monospace"> --------------- Extensions ---------------</font><br><font face="monospace">  PostGIS Raster:                     enabled</font><br><font face="monospace">  PostGIS Topology:                   enabled</font><br><font face="monospace">  SFCGAL support:                     disabled</font><br><font face="monospace">  Address Standardizer support:       enabled</font><br><br><font face="monospace"> -------- Documentation Generation --------</font><br><font face="monospace">  xsltproc:             /usr/bin/xsltproc</font><br><font face="monospace">  xsl style sheets:</font><br><font face="monospace">  dblatex:</font><br><font face="monospace">  convert:</font><br><font face="monospace">  mathml2.dtd:          <a href="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" target="_blank">http://www.w3.org/Math/DTD/mathml2/mathml2.dtd</a></font><br><br><font face="monospace">configure: WARNING:  --------- GEOS VERSION WARNING ------------</font><br><font face="monospace">configure WARNING:   You are building against GEOS 3.8.0.</font><br><font face="monospace">configure: WARNING:</font><br><font face="monospace">configure: WARNING:   To take advantage of _all_ the features of</font><br><font face="monospace">configure: WARNING:   PostGIS, GEOS 3.9.0 or higher is required.</font><br><font face="monospace">configure: WARNING:</font><br><font face="monospace">configure: WARNING:   For _many_ features, GEOS 3.6.0 is enough.</font><br><font face="monospace">configure: WARNING:</font><br><font face="monospace">configure: WARNING:   We recommend GEOS 3.8.0 or higher</font><br><font face="monospace">configure: WARNING:</font><br><font face="monospace">configure: WARNING:   You can download the latest versions from</font><br><font face="monospace">configure: WARNING:   <a href="http://geos.osgeo.org/" target="_blank">http://geos.osgeo.org/</a></font><br><font face="monospace">configure: WARNING:</font><br></div><div>--------------------------<br clear="all"><div>Any ideas how to solve this problem ?</div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr">FATIHI Ayoub </div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">FATIHI Ayoub </div></div></div></div>