[postgis-devel] Error making postgis

Regina Obe lr at pcorp.us
Sun May 2 00:49:06 PDT 2021


Ayoub,

 

Issue should be fixed now.  Can you give it another try.

 

Thanks,

Regina

 

From: postgis-devel [mailto:postgis-devel-bounces at lists.osgeo.org] On Behalf Of Ayoub FATIHI
Sent: Friday, April 30, 2021 9:47 PM
To: postgis devel <postgis-devel at lists.osgeo.org>
Subject: Re: [postgis-devel] Error making postgis

 

Actually ther was this warnings: 

lwgeom_geos.c:147:2: warning: implicit declaration of function ‘GEOSCoordSeq_copyToBuffer’; did you mean ‘GEOSCoordSeq_clone’? [-Wimplicit-function-declaration]
  147 |  GEOSCoordSeq_copyToBuffer(cs, (double*) pa->serialized_pointlist, (dims == 3), 0);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
      |  GEOSCoordSeq_clone
lwgeom_geos.c: In function ‘ptarray_to_GEOSCoordSeq’:
lwgeom_geos.c:280:8: warning: implicit declaration of function ‘GEOSCoordSeq_copyFromBuffer’ [-Wimplicit-function-declaration]
  280 |   sq = GEOSCoordSeq_copyFromBuffer((const double*) pa->serialized_pointlist, pa->npoints, FLAGS_GET_Z(pa->flags), FLAGS_GET_M(pa->flags));
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lwgeom_geos.c:280:6: warning: assignment to ‘GEOSCoordSeq’ {aka ‘struct GEOSCoordSeq_t *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  280 |   sq = GEOSCoordSeq_copyFromBuffer((const double*) pa->serialized_pointlist, pa->npoints, FLAGS_GET_Z(pa->flags), FLAGS_GET_M(pa->flags));
      |      ^

 

And this warning was repeated a bunch of time :

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
In file included from /usr/include/gdal/cpl_port.h:66,
                 from /usr/include/gdal/gdal.h:45,
                 from ../rt_core/librtcore.h:126,
                 from rtpostgis.h:39,
                 from rtpg_internal.h:33,
                 from rtpg_internal.c:34:
/usr/include/gdal/cpl_config.h:296: warning: "PACKAGE_URL" redefined
  296 | #define PACKAGE_URL ""
      |
In file included from /usr/local/pgsql/include/server/c.h:54,
                 from /usr/local/pgsql/include/server/postgres.h:46,
                 from rtpg_internal.c:31:
/usr/local/pgsql/include/server/pg_config.h:806: note: this is the location of the previous definition
  806 | #define PACKAGE_URL "https://www.postgresql.org/"
      |

Here is the full output : https://github.com/ayoubft/postgis_error_file/blob/main/make_result.txt 


 

-- 

FATIHI Ayoub 

 

On Sat, May 1, 2021 at 12:40 AM Ayoub FATIHI <ayoubfatihi1999 at gmail.com <mailto:ayoubfatihi1999 at gmail.com> > wrote:

Hi community,

I was re-installing PostGIS with PostgreSQL from source.

And I have this problem : 

Postgres compile just fine. But ...

When I run make for postgis, I get this error: 

------------------------------

collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:84: raster2pgsql] Error 1
make[2]: Leaving directory '/usr/local/src/postgis/raster/loader'
make[1]: *** [Makefile:35: rtloader] Error 2
make[1]: Leaving directory '/usr/local/src/postgis/raster'

make: *** [GNUmakefile:22: all] Error 1

----------------------------------

Noting also that config when done says:

-------------------------------

PostGIS is now configured for x86_64-pc-linux-gnu

 -------------- Compiler Info -------------
  C compiler:           gcc -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros
  C++ compiler (Wagyu): gcc -std=c++11 -x c++
  CPPFLAGS:              -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c  -DNDEBUG
  LDFLAGS:               -lm
  SQL preprocessor:     /usr/bin/cpp -traditional-cpp -w -P

 -------------- Additional Info -------------
  Interrupt Tests:   DISABLED use: --with-interrupt-tests to enable

 -------------- Dependencies --------------
  GEOS config:          /usr/bin/geos-config
  GEOS version:         3.8.0
  GDAL config:          /usr/bin/gdal-config
  GDAL version:         3.0.4
  PostgreSQL config:    /usr/local/pgsql/bin/pg_config
  PostgreSQL version:   PostgreSQL 14devel
  PROJ4 version:        63
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.10
  JSON-C support:       yes
  protobuf support:     yes
  protobuf-c version:   1003003
  PCRE support:         yes
  Perl:                 /usr/bin/perl

 --------------- Extensions ---------------
  PostGIS Raster:                     enabled
  PostGIS Topology:                   enabled
  SFCGAL support:                     disabled
  Address Standardizer support:       enabled

 -------- Documentation Generation --------
  xsltproc:             /usr/bin/xsltproc
  xsl style sheets:
  dblatex:
  convert:
  mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

configure: WARNING:  --------- GEOS VERSION WARNING ------------
configure WARNING:   You are building against GEOS 3.8.0.
configure: WARNING:
configure: WARNING:   To take advantage of _all_ the features of
configure: WARNING:   PostGIS, GEOS 3.9.0 or higher is required.
configure: WARNING:
configure: WARNING:   For _many_ features, GEOS 3.6.0 is enough.
configure: WARNING:
configure: WARNING:   We recommend GEOS 3.8.0 or higher
configure: WARNING:
configure: WARNING:   You can download the latest versions from
configure: WARNING:   http://geos.osgeo.org/
configure: WARNING:

--------------------------


Any ideas how to solve this problem ?

 

-- 

FATIHI Ayoub 




 

-- 

FATIHI Ayoub 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20210502/9dd6b7a7/attachment-0001.html>


More information about the postgis-devel mailing list