[postgis-tickets] [PostGIS] #4259: PostGIS 2.5 unable to compile with GDAL 2.3
PostGIS
trac at osgeo.org
Tue Nov 27 08:18:47 PST 2018
#4259: PostGIS 2.5 unable to compile with GDAL 2.3
----------------------+---------------------------
Reporter: nstires | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.5.2
Component: postgis | Version: 2.5.x
Resolution: | Keywords: postgis gdal
----------------------+---------------------------
Comment (by Algunenano):
> One thing of note: the lib path is set to lib64, but they actually
reside within /usr/lib. I've also built the gdal packages, is this a build
flag?
Most likely your `/usr/lib64` just points to `/usr/lib`:
{{{
$ ls -al /usr/lib64
lrwxrwxrwx 1 root root 3 ago 21 16:21 /usr/lib64 -> lib
}}}
The problem appears to reside in your GDAL installation. From the log:
{{{
configure:17642: gcc -o conftest -Wall -Wmissing-prototypes -Wpointer-
arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-
attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-
buffer-size=4 -m64 -mtune=generic -I/usr/include conftest.c -L/usr/lib64
-lgdal >&5
/usr/lib/libgdal.so: undefined reference to
`std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
/usr/lib/libgdal.so: undefined reference to `std::_Hash_bytes(void const*,
unsigned long, unsigned long)'
/usr/lib/libgdal.so: undefined reference to
`std::__detail::_List_node_base::_M_unhook()'
/usr/lib/libgdal.so: undefined reference to
`std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned long) const'
/usr/lib/libgdal.so: undefined reference to
`std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*,
std::__detail::_List_node_base*)'
/usr/lib/libgdal.so: undefined reference to
`std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned long,
unsigned long, unsigned long) const'
/usr/lib/libgdal.so: undefined reference to `std::string::back()'
collect2: error: ld returned 1 exit status
configure:17642: $? = 1
configure: failed program was:
}}}
You might be mixing gcc or libstdc++ releases so you'll need to find how
to sort it out.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4259#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list