Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3066 closed defect (invalid)

[raster] PostGIS 2.1.5 compile issues with raster extensions

Reported by: serbinsh Owned by: Bborie Park
Priority: high Milestone:
Component: raster Version: 2.1.x
Keywords: raster Cc:

Description

I am running into an issue attempting to compile PostGIS 2.1.5 with PostgreSQL 9.4 on a SciLinx 6.5 server. I am using Proj 4.0.8, GEOS 3.4.2, and GDAL 1.11.2. The issue occurs during make in the ../postgis-2.1.5/raster/loader extension directory. Here is the error output:

… make[2]: Entering directory `/data/software/src/postgis/postgis-2.1.5/raster/loader' mpicc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/data/software/proj/4.8.0/include -I/data/software/gdal/1.11.2/include -I/data/software/geos/3.4.2/include -c raster2pgsql.c /bin/sh ../../libtool —mode=link mpicc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/data/software/proj/4.8.0/include -I/data/software/gdal/1.11.2/include -I/data/software/geos/3.4.2/include ../rt_core/librtcore.a raster2pgsql.o ../../liblwgeom/liblwgeom.la -L/data/software/gdal/1.11.2/lib -lgdal -L/data/software/geos/3.4.2/lib -lgeos_c -lc -lm -o raster2pgsql libtool: link: mpicc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/data/software/proj/4.8.0/include -I/data/software/gdal/1.11.2/include -I/data/software/geos/3.4.2/include raster2pgsql.o -o .libs/raster2pgsql ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.so -L/data/software/geos/3.4.2/lib -L/software/src/openmpi/openmpi-1.6.4-gnu48/opal/mca/hwloc/hwloc132/hwloc/src -L/data/software/proj/4.8.0/lib -L/data/software/json-c/0.11/lib /data/software/proj/4.8.0/lib/libproj.so /data/software/json-c/0.11/lib/libjson-c.so -L/data/software/gdal/1.11.2/lib -lgdal /data/software/geos/3.4.2/lib/libgeos_c.so /data/software/geos/3.4.2/lib/libgeos.so /software/mpi/openmpi/1.6.4-gnu48/lib/libmpi_cxx.so /software/mpi/openmpi/1.6.4-gnu48/lib/libmpi.so -ldl -lnsl -lutil /usr/lib64/libtorque.so -lpthread -lrt -lxml2 -lz -lcrypto -lssl /software/gcc-4.8.0/lib/../lib64/libstdc++.so -lc -lm -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/data/software/proj/4.8.0/lib -Wl,-rpath -Wl,/data/software/json-c/0.11/lib -Wl,-rpath -Wl,/data/software/geos/3.4.2/lib -Wl,-rpath -Wl,/software/mpi/openmpi/1.6.4-gnu48/lib -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/software/gcc-4.8.0/lib/../lib64 /data/software/gdal/1.11.2/lib/libgdal.so: undefined reference to `GTIFAllocDefn' /data/software/gdal/1.11.2/lib/libgdal.so: undefined reference to `nc_inq_var_chunking' /data/software/gdal/1.11.2/lib/libgdal.so: undefined reference to `nc_def_var_chunking' /data/software/gdal/1.11.2/lib/libgdal.so: undefined reference to `nc_def_var_deflate' /data/software/gdal/1.11.2/lib/libgdal.so: undefined reference to `GTIFFreeDefn' collect2: error: ld returned 1 exit status make[2]: * [raster2pgsql] Error 1 make[2]: Leaving directory `/data/software/src/postgis/postgis-2.1.5/raster/loader' make[1]: * [rtloader] Error 2 make[1]: Leaving directory `/data/software/src/postgis/postgis-2.1.5/raster' make: * [all] Error 1

Change History (6)

comment:1 by Bborie Park, 9 years ago

Resolution: invalid
Status: newclosed

This is a question best asked on the user list, not a trac ticket.

It looks like your GDAL library is incomplete. Are you missing a GeoTIFF library?

comment:2 by serbinsh, 9 years ago

OK.

No, I have compiled GDAL with GeoTIFF and libtiff, as well as tested. Also, FYI - I don't get this error with ver 2.1.3 or 2.2.0. It seems to be related to 2.1.5?

Shawn

comment:3 by Bborie Park, 9 years ago

nm /data/software/gdal/1.11.2/lib/libgdal.so | grep GTIFAllocDefn

comment:4 by serbinsh, 9 years ago

root@test data # nm /data/software/gdal/1.11.2/lib/libgdal.so | grep GTIFAllocDefn
                 U GTIFAllocDefn

Where you interested in looking at the output from that command?

comment:5 by Bborie Park, 9 years ago

The output

U GTIFAllocDefn

tells me that the problem is not in PostGIS but rather your environment. "U" stands for undefined.

comment:6 by serbinsh, 9 years ago

Ugh…OK, sorry about that. I really thought my install was complete. FYI here is my configure command for GDAL

./configure —prefix=/data/software/gdal/1.11.2 —with-jpeg=external —with-jpeg12 —with-python —without-libtool —with-pg=/usr/pgsql-9.4/bin/pg_config \ —with-libkml=/data/software/libkml/devel —with-libtiff=/data/software/libtiff/4.0.3 —with-geotiff=/data/software/geotiff/1.4.1 —with-geos=/data/software/geos/3.4.2/bin/geos-config \ —with-hdf4=/data/software/hdf4/4.2.11 —with-hdf5=/data/software/hdf5/1.8.14 —with-netcdf=/data/software/netcdf/4.3.3.1

Basically the kitchen sink.

Note: See TracTickets for help on using tickets.