BUG #16198: Create extension postgis fails with incorrect version of ogdi

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: dmck(at)interactive(dot)co(dot)uk
Subject: BUG #16198: Create extension postgis fails with incorrect version of ogdi
Date: 2020-01-08 14:15:09
Message-ID: 16198-81a159343d262d41@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16198
Logged by: David McKelvie
Email address: dmck(at)interactive(dot)co(dot)uk
PostgreSQL version: 9.4.25
Operating system: Centos 7.7.1908
Description:

We have a Centos7 server (a) that has the following rpms installed

ogdi.x86_64 3.2.0-4.rhel7
@pgdg94
ogdi41.x86_64 4.1.0-2.rhel7
@pgdg94

postgis24_94.x86_64 2.4.8-3.rhel7
@pgdg94
postgis24_94-utils.x86_64 2.4.8-3.rhel7
@pgdg94

postgresql94.x86_64 9.4.25-1PGDG.rhel7
@pgdg94
postgresql94-contrib.x86_64 9.4.25-1PGDG.rhel7
@pgdg94
postgresql94-devel.x86_64 9.4.25-1PGDG.rhel7
@pgdg94
postgresql94-libs.x86_64 9.4.25-1PGDG.rhel7
@pgdg94
postgresql94-server.x86_64 9.4.25-1PGDG.rhel7
@pgdg94

and 'CREATE EXTENSION postgis;' works

We are trying to set up a similar server (b) but this time

It looks as if Postgresql have removed ogdi-3.2.0-4.rhel7 from their RPM
repository.

yum list available | grep ogdi
ogdi-devel.x86_64 3.2.0-0.19.beta2.el7
epel
ogdi-odbc.x86_64 3.2.0-0.19.beta2.el7
epel
ogdi-tcl.x86_64 3.2.0-0.19.beta2.el7
epel
ogdi41-debuginfo.x86_64 4.1.0-2.rhel7
pgdg94
ogdi41-devel.x86_64 4.1.0-2.rhel7
pgdg94
ogdi41-odbc.x86_64 4.1.0-2.rhel7
pgdg94
ogdi41-tcl.x86_64 4.1.0-2.rhel7
pgdg94

As a result, yum was fetching ogdi.x86_64 0:3.2.0-0.19.beta2.el7
from epel, and THIS DOES NOT WORK

i.e. in psql
drain_walsall=# create extension postgis;
ERROR: could not load library "/usr/pgsql-9.4/lib/rtpostgis-2.4.so": \
/usr/gdal23/lib/libgdal.so.20: \
undefined symbol: ecs_SetReportErrorFunction

Our work around was to get ogdi-3.2.0-4.rhel7.x86_64.rpm
from postgres/9.6/redhat/rhel-7-x86_64 repo

What would the right way to do this?

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Cramer 2020-01-08 14:21:32 Re: publication not found, yet it is there.??
Previous Message Tomas Vondra 2020-01-08 14:02:02 Re: publication not found, yet it is there.??