From nobody Thu Mar 24 21:34:33 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A0F7E1A28DF9 for ; Thu, 24 Mar 2022 21:34:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KPdls1Txnz4hpD for ; Thu, 24 Mar 2022 21:34:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 13E371FB29 for ; Thu, 24 Mar 2022 21:34:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22OLYXx6071801 for ; Thu, 24 Mar 2022 21:34:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22OLYXi9071800 for ports-bugs@FreeBSD.org; Thu, 24 Mar 2022 21:34:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262768] databases/postgis31 does not work on i386: Undefined symbol "_ZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEj" Date: Thu, 24 Mar 2022 21:34:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mark@kane.mn X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: lbartoletti@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648157673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=55LcLOPGWt1gEhPqc/PsreneuvScrLGpALNRofjpyfU=; b=n1UZ4nAeVVRhjw3bxEG2Z9VAO1DFd83b30pklubal4qrmObpKD5gVCAu2bFbsfD84UgY64 1GhRU/geZggn+ctmh6bf6cnPhm3+TUY8yvZn8fcWYXLlomiNs4q5Pq95RAqp27pYTmBim+ Bl0lHIWc7YMpBHLP21AAXaOg0XvHnVGeNxZw+8EZJ3wfBTx/B+t0h8e4TiFdA/mtZOgRJB ABRayd8hsT7t/FnDtZ8qahm6NC1UelgNbHvKsrIXDDXtt4NsbiKi+VbOD45zHvOEc+jGy8 rspwMjJx2nggwlfbuSSLOI7ySO27x9jKD1GMU0DvJ/wiEiwQUiz0U5owisynSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648157673; a=rsa-sha256; cv=none; b=h5LVVU4j6JrR16FZo3FiaYirWDA2APuX0knH90ev65VJQUGEUZUlFzUohSnFg/BfPnu1Yi b6XYCuZIVHRjdH8CDpboF9bLef6CZr14aOekV2Oi7x/XbMWx6Xjn6kTD2XZ4oVQJEUAWCA TbvGmoMtkFzf+A5pcDRS82777seujR9rLmxhyqO1Mw9jsryfT23eDEk2/4ZXklONifeYxX MBNeQrEE4CsVjam/4j5J2oQiwO4EPBmfNpYUfPalSJCKd8uVPtUnaUSrWfCTV4uTA4y4G9 760VEmWMOqXWGZVvM9K2t3eMXh+h6ZnqnO11lQeW3/Bw4QtgBEenIU+rYaYqbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262768 Bug ID: 262768 Summary: databases/postgis31 does not work on i386: Undefined symbol "_ZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEj" Product: Ports & Packages Version: Latest Hardware: i386 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: lbartoletti@FreeBSD.org Reporter: mark@kane.mn Flags: maintainer-feedback?(lbartoletti@FreeBSD.org) Assignee: lbartoletti@FreeBSD.org databases/postgis31 works perfectly on amd64, however on many i386 machines with either postgresql13-server or postgresql12-server it fails with "Undef= ined symbol" errors. postgis31-3.1.5 from official "latest" package repo on a fresh FreeBSD 13.0-RELEASE-p8 i386 install: ---------- postgres=3D# CREATE DATABASE postgistest; CREATE DATABASE postgres=3D# \c postgistest You are now connected to database "postgistest" as user "postgres". postgistest=3D# CREATE EXTENSION postgis; ERROR: could not load library "/usr/local/lib/postgresql/postgis-3.so": /usr/local/lib/postgresql/postgis-3.so: Undefined symbol "_ZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEj" postgistest=3D#=20 ---------- Some searching suggests this might be related to a library mismatch between base and ports. I notice the i386 library that does not work is linking to libgcc_s.so.1 from the gcc10 port: i386# ldd /usr/local/lib/postgresql/postgis-3.so | grep libgcc libgcc_s.so.1 =3D> /usr/local/lib/gcc10/libgcc_s.so.1 (0x207a4000) i386#=20 while the working amd64 machine is linking to base libgcc_s.so.1: amd64# ldd /usr/local/lib/postgresql/postgis-3.so | grep gcc libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x80169b000) amd64# I have tried playing around with LD_LIBRARY_PATH/LD_PRELOAD but have not fo= und a working combination as postgresql-server itself appears to need the ports gcc10 libgcc_s.so.1. FYI this also affects databases/postgis32 on i386, although the undefined symbol is different with 3.2: postgistest=3D# CREATE EXTENSION postgis; ERROR: could not load library "/usr/local/lib/postgresql/postgis-3.so": /usr/local/lib/postgresql/postgis-3.so: Undefined symbol "_ZNSt8ios_base4InitD1Ev" postgistest=3D# --=20 You are receiving this mail because: You are the assignee for the bug.=