Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehn4F-00008R-6v for pgsql-pkg-yum@arkaria.postgresql.org; Sat, 03 Feb 2018 01:56:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehn4D-0004gk-E5 for pgsql-pkg-yum@arkaria.postgresql.org; Sat, 03 Feb 2018 01:56:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehn4D-0004ga-2y for pgsql-pkg-yum@lists.postgresql.org; Sat, 03 Feb 2018 01:56:33 +0000 Received: from mail-it0-x22f.google.com ([2607:f8b0:4001:c0b::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ehn49-0005Su-Ln for pgsql-pkg-yum@postgresql.org; Sat, 03 Feb 2018 01:56:31 +0000 Received: by mail-it0-x22f.google.com with SMTP id k131so10720260ith.4 for ; Fri, 02 Feb 2018 17:56:28 -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:mime-version:content-disposition :user-agent; bh=QF/3ghBmksERaHpyB61e7CK98mk82QunOJg/cGUPrsU=; b=J9DFmErAjk4xirAo22npl3YhhZKGCBUB22cQezP/EHCyDTTvYzwVLKjnZVfbMc2eel quXvF5eEEP0ww3fmq6EUPBR8uefKkv/H4xUg5os253j5q/58RRQdiJ8Z/Ktxm+STIYzv XuEwN76XefSG0pqu8JI1A6tIz1rBAqsn895lv89KpHCllZzr/ut2cyj7XGs0vHTEjKoa +56wQuQxJE3Cj7ULna7pFMZ/Fw8tCfTHpVMhzFVnpLK2+jEZ4phREISLGttGhQiRKxLJ 9ox7NGTFLSU3rXyWFoU5+xXb2YlN4rD/ghzwaYduwyk2oLxpLzp4dlwtBRuMtYAfzToz AEDw== 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:mime-version :content-disposition:user-agent; bh=QF/3ghBmksERaHpyB61e7CK98mk82QunOJg/cGUPrsU=; b=c8w0yC8VLxiYdEzxY7bGSAPsuY6jttY5cmrLvmaoftKpYvLIavhInM70HIpGp4Qbg0 MJ/8pSgq8IiQyFUgCDn2tHxw0hNDSD8srS7KZadAwZ3XakRG8B65O2T86SGI8Lo7u8O3 57T1yCUdbKtebOZAfwuyAqxRrJXHEfQQctvr2Kbig4FC/fQkG0zUnF7uAnh85vlfwsfy ZlpZgE7FXk3deHq8RWQPR/tJFdUcKKeRkq/4SUQkg/Lcu4pb10Bdx4Hfa2a2j0cfHy8r iOX6lTSIgqnH9eCqq7NiGiieQ1u3/X9X25S8I78ONkalUzmg0zvGt0F4SgB3Q2Ey1Nww Ap4w== X-Gm-Message-State: AKwxytfcVIDf9StBzmhsgw8KOua5HEH7mJNUJyrSC6Gvlw55K82SpyvG jjLnDbNUGBK/jJif2YPAMcySwpZyZDo= X-Google-Smtp-Source: AH8x224Gt13JvEIeVPRE/6Z/7nOo1FHTJ2zc5pZTFCsYX3UG+VdMlRMD2mbbPDaGB6t/pIHibIV7Bw== X-Received: by 10.36.79.19 with SMTP id c19mr35534977itb.148.1517622988135; Fri, 02 Feb 2018 17:56:28 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id e21sm1870359ita.28.2018.02.02.17.56.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 17:56:27 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 74F2B800FD9; Fri, 2 Feb 2018 19:56:26 -0600 (CST) Date: Fri, 2 Feb 2018 19:56:26 -0600 From: Justin Pryzby To: Devrim =?iso-8859-1?B?R/xuZPx6?= Cc: pgsql-pkg-yum@postgresql.org Subject: pgsql-9.6/lib/postgis-2.1.so: undefined symbol: pj_get_spheroid_defn Message-ID: <20180203015626.GR26916@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I'm sorry but I'm still have issues with the latest packages for centos6. I'm transitioning a customer off PG9.5+centos5, and onto PG96+centos6, by executing a db dump and restore. I'm transitioning to PG96, and not PG10, since there are packages for PG96+postgis2.2, which is what's on the PG95 instance (and its DB dump) - I plan to execute an pg_upgrade to pg10 shortly after the OS transition. But during the restore onto the centos6 machine: pg_restore: [archiver (db)] Error from TOC entry 2732; 1255 16405 FUNCTION box2d_in(cstring) postgres pg_restore: [archiver (db)] could not execute query: ERROR: could not load library "/usr/pgsql-9.6/lib/postgis-2.1.so": /usr/pgsql-9.6/lib/postgis-2.1.so: undefined symbol: pj_get_spheroid_defn Command was: CREATE FUNCTION box2d_in(cstring) RETURNS box2d LANGUAGE c IMMUTABLE STRICT AS '$libdir/postgis-2.1', 'BOX2D_in'; I have these packages installed: [pryzbyj@telsasoft ~]$ rpm -qa |grep -Ei 'pgdg|proj|gis' #|grep -vE 'postgresql10|_10' postgresql96-contrib-9.6.6-5PGDG.rhel6.x86_64 postgis24_10-2.4.3-1.rhel6.x86_64 postgis24_10-docs-2.4.3-1.rhel6.x86_64 postgresql10-devel-10.1-5PGDG.rhel6.x86_64 postgresql10-10.1-5PGDG.rhel6.x86_64 postgis22_96-client-2.2.6-1.rhel6.x86_64 postgresql96-libs-9.6.6-5PGDG.rhel6.x86_64 postgresql96-debuginfo-9.6.6-5PGDG.rhel6.x86_64 postgis24_10-utils-2.4.3-1.rhel6.x86_64 pgdg-centos10-10-2.noarch postgresql10-libs-10.1-5PGDG.rhel6.x86_64 proj49-4.9.3-3.rhel6.x86_64 postgis24_10-client-2.4.3-1.rhel6.x86_64 postgresql10-docs-10.1-5PGDG.rhel6.x86_64 postgresql96-9.6.6-5PGDG.rhel6.x86_64 postgresql96-server-9.6.6-5PGDG.rhel6.x86_64 pgdg-centos96-9.6-3.noarch postgis22_96-2.2.6-1.rhel6.x86_64 postgresql10-server-10.1-5PGDG.rhel6.x86_64 postgresql10-contrib-10.1-5PGDG.rhel6.x86_64 proj-nad-4.7.0-1.el6.x86_64 proj-4.7.0-1.el6.x86_64 [pryzbyj@telsasoft ~]$ yum list installed |grep -i pgdg check_postgres.noarch 2.23.0-1.rhel6 @pgdg10 gdal-libs.x86_64 1.9.2-8.rhel6 @pgdg10 geos.x86_64 3.5.0-1.rhel6 @pgdg96 geos36.x86_64 3.6.2-3.1.rhel6 @pgdg10 libgeotiff.x86_64 1.4.0-1.rhel6 @pgdg10 pg_repack10.x86_64 1.4.2-1.rhel6 @pgdg10 pgdg-centos10.noarch 10-2 @/pgdg-centos10-10-2.noarch pgdg-centos96.noarch 9.6-3 @/pgdg-centos96-9.6-3.noarch pgfincore10.x86_64 1.1.2-2.rhel6 @pgdg10 postgis22_96.x86_64 2.2.6-1.rhel6 @pgdg96 postgis22_96-client.x86_64 2.2.6-1.rhel6 @pgdg96 postgresql96.x86_64 9.6.6-5PGDG.rhel6 @pgdg96 postgresql96-contrib.x86_64 9.6.6-5PGDG.rhel6 @pgdg96 postgresql96-debuginfo.x86_64 9.6.6-5PGDG.rhel6 @pgdg96 postgresql96-libs.x86_64 9.6.6-5PGDG.rhel6 @pgdg96 postgresql96-server.x86_64 9.6.6-5PGDG.rhel6 @pgdg96 proj49.x86_64 4.9.3-3.rhel6 @pgdg10 python-psycopg2.x86_64 2.7.3.2-1.rhel6 @pgdg10 I gather that symbol is added in proj49: [pryzbyj@telsasoft ~]$ rpm -ql proj |xargs grep pj_get_spheroid_defn grep: /usr/share/doc/proj-4.7.0: Is a directory [pryzbyj@telsasoft ~]$ rpm -ql proj49|xargs grep pj_get_spheroid_defn Binary file /usr/proj49/lib/libproj.so.12 matches Binary file /usr/proj49/lib/libproj.so.12.0.0 matches /usr/proj49/share/doc/ChangeLog: * src/proj.def: add pj_get_spheroid_defn to proj.def. (#214) /usr/proj49/share/doc/ChangeLog: * src/pj_utils.c: Add pj_get_spheroid_defn() (#142) /usr/proj49/share/doc/NEWS: o Add pj_get_spheroid_defn() accessor. I thought the issue was here: [pryzbyj@telsasoft ~]$ ldd /usr/lib64/libgdal.so.1 |grep proj libproj.so.12 => /usr/proj49/lib/libproj.so.12 (0x00007f7d6127d000) libproj.so.0 => /usr/lib64/libproj.so.0 (0x00007f7d60431000) [pryzbyj@telsasoft ~]$ ldd /usr/pgsql-9.6/lib/postgis-2.1.so linux-vdso.so.1 => (0x00007fffcf5c7000) libgeos_c.so.1 => /usr/lib64/libgeos_c.so.1 (0x00007f2b4663c000) libproj.so.0 => /usr/lib64/libproj.so.0 (0x00007f2b463f8000) I tried to fix with: [pryzbyj@telsasoft ~]$ sudo yum --disablerepo=pgdg10 --enablerepo=pgdg96 reinstall libgeotiff gdal-libs [pryzbyj@telsasoft ~]$ sudo rpm -e proj49 Now: [pryzbyj@telsasoft ~]$ ldd /usr/lib64/libgdal.so.1 |grep proj libproj.so.0 => /usr/lib64/libproj.so.0 (0x00007f3c6fe95000) [pryzbyj@telsasoft ~]$ ..But I'm still getting the same error restore the DB, so seems to be due to compile-time linking against proj49 (without a versioned dependency?). Let me know if I can send any other info. Justin