Re: [PostgreSQL YUM Repository - Bug #3710] (Resolved) RHEL7 postgresql11 postgis2.5 fails with /usr/pgsql-11/lib/postgis-2.5.so: undefined symbol: geod_polygon_init

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: redmine(at)postgresql(dot)org
Cc: devrim(at)gunduz(dot)org, john(dot)harvey(at)crunchydata(dot)com, akrherz(at)iastate(dot)edu, tom(at)intevation(dot)de, prashrao91(at)gmail(dot)com, diegohenrique1102(at)gmail(dot)com, alund1(at)umd(dot)edu, dimitri(dot)giardina(at)gmail(dot)com, coyoteptm(at)gmail(dot)com, pgsql-pkg-yum(at)postgresql(dot)org
Subject: Re: [PostgreSQL YUM Repository - Bug #3710] (Resolved) RHEL7 postgresql11 postgis2.5 fails with /usr/pgsql-11/lib/postgis-2.5.so: undefined symbol: geod_polygon_init
Date: 2019-01-07 21:54:10
Message-ID: 20190107215410.GA22493@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

This appears to be more or less same as issue #3710. See earlier communiction,
copied below.

Just reinstalling postgis on a centos7 test server which previously ran
postgres 11 beta.

Installing : geos37-3.7.0-1.rhel7.1.x86_64
Installing : postgis24_11-2.4.6-3.rhel7.x86_64
Installing : postgis24_11-client-2.4.6-3.rhel7.x86_64

sentinel=# \i /usr/pgsql-11/share/contrib/postgis-2.4/postgis.sql
BEGIN
SET
DO
CREATE FUNCTION
psql:/usr/pgsql-11/share/contrib/postgis-2.4/postgis.sql:95: ERROR: could not load library "/usr/pgsql-11/lib/postgis-2.4.so": /usr/pgsql-11/lib/postgis-2.4.so: undefined symbol: GEOSFrechetDistanceDensify

[pryzbyj(at)template0 ~]$ ldd /usr/pgsql-11/lib/postgis-2.4.so
libgeos_c.so.1 => /usr/geos36/lib64/libgeos_c.so.1 (0x00007f3e50e6e000)
libgeos-3.6.2.so => /usr/geos36/lib64/libgeos-3.6.2.so (0x00007f3e4f12e000)

Fixed with: rpm -e geos36-3.6.2-3.1.rhel7.x86_64
Should declare the RPM equivalent of debian's "Breaks" ??

On Wed, Dec 19, 2018 at 02:21:07PM -0600, Justin Pryzby wrote:
> On Mon, Dec 10, 2018 at 11:33:52AM +0000, redmine(at)postgresql(dot)org wrote:
> > Issue #3710 has been updated by Devrim Gündüz.
> > Status changed from In Testing to Resolved
>
> On Mon, Dec 10, 2018 at 09:06:43AM -0600, Justin Pryzby wrote:
> > Does that work for upgrades from PG10 + postgis, which would probably have
> > older geos installed ?
>
> I went to the effort to check:
>
> [pryzbyj(at)dev ~]$ /usr/pgsql-10/bin/initdb -D ./pgsql.tmp
> [pryzbyj(at)dev ~]$ /usr/pgsql-10/bin/postmaster -D pgsql.tmp -c port=5678 -c unix_socket_directories=/tmp
> [pryzbyj(at)dev ~]$ psql --host /tmp --port 5678 postgres -c 'CREATE EXTENSION postgis'
> [pryzbyj(at)dev ~]$ time /usr/pgsql-11/bin/pg_upgrade -b /usr/pgsql-10/bin/ -B /usr/pgsql-11/bin/ -d ./pgsql.tmp -D pgsql.tmp11
> [pryzbyj(at)dev ~]$ /usr/pgsql-10/bin/pg_ctl -D pgsql.tmp stop
> [pryzbyj(at)dev ~]$ time /usr/pgsql-11/bin/pg_upgrade -b /usr/pgsql-10/bin/ -B /usr/pgsql-11/bin/ -d ./pgsql.tmp -D pgsql.tmp11
> ...
>
> Checking for presence of required libraries fatal
>
> [pryzbyj(at)dev ~]$ cat loadable_libraries.txt
> could not load library "$libdir/postgis-2.4": ERROR: incompatible library "/usr/pgsql-11/lib/postgis-2.4.so": version mismatch
> DETAIL: Server is version 11, library is version 10.
> could not load library "$libdir/rtpostgis-2.4": ERROR: could not access file "$libdir/rtpostgis-2.4": No such file or directory
>
> I'd be interested to know if there's some reason why this would work on a fresh
> centos7 install (or one without historic packages installed), but I think it
> ought to work even on nonfresh installs, which are the ones where pg_upgrade is
> more likely to be used.
>
> Justin

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Chapman Flack 2019-01-10 13:50:45 Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1
Previous Message Kevin Brannen 2019-01-04 15:08:14 RE: Relocatable Binaries (RPMs) : custom installation path for PostgreSQL