Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggcqj-0007Bl-1K for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 07 Jan 2019 21:54:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggcqh-0003fx-3q for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 07 Jan 2019 21:54:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggcqg-0003d3-Pe for pgsql-pkg-yum@lists.postgresql.org; Mon, 07 Jan 2019 21:54:18 +0000 Received: from mail-it1-x142.google.com ([2607:f8b0:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggcqd-0001VY-Aa for pgsql-pkg-yum@postgresql.org; Mon, 07 Jan 2019 21:54:17 +0000 Received: by mail-it1-x142.google.com with SMTP id m62so3434862ith.5 for ; Mon, 07 Jan 2019 13:54:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LAJj+ZmgSp4tGlfoZBGpzl1FSejNj9BFJni7gjJF+go=; b=kX0AVJuUgtEOV5Zm7dEc7G0TUJtwa/g9FBb6NA6jqMWn7CCOkQTdeXagO8XBXt6dx2 1/Dh37gTZlSDbVFX+JUEsNbeBA4BXSbr/dpw7bNME/x8RhJp47pAVsMh4j5HpZoPpCwM uTzkQgSXqDmy3AjUVd61HFaQK8PY7vz/0ouoYRQY8X4E5c+8hfRZusIucz7rPQvSNdfp mkd9M6pScUkSJph3N5wUol+9nzFp6u2kuppstHYydp7P4Pd/i8HX/1CElEgL4H9KEKig LOTw40xmXPZYC6CA+cMds+b3xMY7+Y75nKbLChui7RObI2QoW3LZ0Rx1weX2FjpVzqE0 rmxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=LAJj+ZmgSp4tGlfoZBGpzl1FSejNj9BFJni7gjJF+go=; b=B7pNcv27+aAT6x5mYiSPdYtYZa92DCugU0QbqqcyjcBlvvf97/UywBGRWxFDZcsSQN qHfsclSethu8EH/rtyOKOT6NtC9c2i/8wxyakJOwOmsi+Vzdl2CN9WFJijswSHzlorMe 9YtxbtPGcKg/DvVMr4O0SKkUErqz1j2q16XaYglSdYSb4Msa/fDPoXm7mceZF7XAtKvz pP938mFgQ2FNEqBbi1Oj38yAmR9Z7YR03IPkxR05p5HeihBHjjlAZWQ/UZlCciAkoMmH oaxB9bkANCVA3t/YP4ZXrEv+cCMIGIexmeTacMoUh7jbJxYo3sIEKPZ5M+Iu/umfMzVS VxAA== X-Gm-Message-State: AA+aEWaZZvkVx2TvV5NvYGvwsjAWDlY57awdga4JpiB5WaWQaMdMWgOl 7eio7oMUfAMfCEWYrYoGD1JxbA== X-Google-Smtp-Source: AFSGD/UBpHqrlrLk1zZez8fXDbZK78+/xV/GlXvd87Ce0KPsqqcz0uP7JGElj3ORWh8uxZXbt2d6SA== X-Received: by 2002:a02:84e1:: with SMTP id f88mr43567875jai.107.1546898053170; Mon, 07 Jan 2019 13:54:13 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id w1sm10502998iop.14.2019.01.07.13.54.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 13:54:11 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 6B6FA801065; Mon, 7 Jan 2019 15:54:10 -0600 (CST) Date: Mon, 7 Jan 2019 15:54:10 -0600 From: Justin Pryzby To: redmine@postgresql.org Cc: devrim@gunduz.org, john.harvey@crunchydata.com, akrherz@iastate.edu, tom@intevation.de, prashrao91@gmail.com, diegohenrique1102@gmail.com, alund1@umd.edu, dimitri.giardina@gmail.com, coyoteptm@gmail.com, pgsql-pkg-yum@postgresql.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 Message-ID: <20190107215410.GA22493@telsasoft.com> References: <20181210150643.GF4848@telsasoft.com> <20181219202107.GA5406@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181219202107.GA5406@telsasoft.com> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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@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@postgresql.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@dev ~]$ /usr/pgsql-10/bin/initdb -D ./pgsql.tmp > [pryzbyj@dev ~]$ /usr/pgsql-10/bin/postmaster -D pgsql.tmp -c port=5678 -c unix_socket_directories=/tmp > [pryzbyj@dev ~]$ psql --host /tmp --port 5678 postgres -c 'CREATE EXTENSION postgis' > [pryzbyj@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@dev ~]$ /usr/pgsql-10/bin/pg_ctl -D pgsql.tmp stop > [pryzbyj@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@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