Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uSagi-009tbP-82 for pgsql-general@arkaria.postgresql.org; Fri, 20 Jun 2025 12:17:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uSagf-0017PO-19 for pgsql-general@arkaria.postgresql.org; Fri, 20 Jun 2025 12:17:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uSage-0017PE-Ku for pgsql-general@lists.postgresql.org; Fri, 20 Jun 2025 12:17:41 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uSagc-0037Xj-31 for pgsql-general@lists.postgresql.org; Fri, 20 Jun 2025 12:17:40 +0000 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3a503d9ef59so1305708f8f.3 for ; Fri, 20 Jun 2025 05:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zen-innovations.com; s=google; t=1750421857; x=1751026657; darn=lists.postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=/RvNdHqtfaemVojN1sfYe1HNMj7tUsZUcDOZHogkLN0=; b=CmYvFXEhbUQPrYklD4+qkr5+cDw4RcFPbe2uCoV2YxHyOpsIE26JbBSHiQCCNyqmjz hajwesEHT2ZeeglIlBHLjzkbjBoId1Whbn3UF6VvJmDBJfryDPhZOgW7iJy7LMXbRNHC OIe8jQKjgOgyckKB8gjgLRYo+RbxBmmwFJWZ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750421857; x=1751026657; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/RvNdHqtfaemVojN1sfYe1HNMj7tUsZUcDOZHogkLN0=; b=UqyIpLjQ44XVQZj4n2dnnjVQsM3sHonJHV4jqMLqtH+WqM5xjEY5M1HW16M3tmq7UB B/P3GruIZ22ykO/GGk3V5kIMAKqJUlOUsSReIVvD74X0QXCKx9daJuH3NJ9xWjoJhXqp bjqmICc9PD/e5byDP4XTpK8bhR9PYmrSRQe/1kTSyfU3zyT26KRgth+EbMy06mEGAF5R tUp0gToJ2okGwnfCFAKLDSMAT8fnB42+AMe+lOUTRnjTSRjWz0D647Ncgffol4TW2UGn KabuDolULZ904ohixpRtpX3EUunpFLJ85dWRO93eXZi4F5QvZrgnWA6LIteY+gRxONrq n3zg== X-Gm-Message-State: AOJu0YwscILsf4/cUh5M8WxAru31gDbWVecXmCky/Mqctwu6au9a4xF+ vblvdF5fukrCnLvdtySwqIPeE9W0gKRHmwqp/X2/SAZar2F5owFxWJ49JRHRWr5im1k= X-Gm-Gg: ASbGncsswI7FAWbp/t1GezZuXml76pMb8eV+YrZFukJrZi0B6oGS+j2DutJV5K6aqY5 BZamf1S4UlrPJmbCfQUpLGYo3WnKlL/Ef2fEvS/HpyoVxFN6hKtcRntKsur6V8oGJO2YmrizbYO tLw97jBBm0fRF0ZjxsJQGRseQ8JD6e8UfxGJncG7p554E0fNw/s/gQnfQfLuWfMHftxy3+QAEQD yb/27iSwDVtwigqMJ9dcIYkn5O9QrRfhLj+sXswjswvKDySi8z9L7gb3Uw1lCnB2oFGv7nEI3ua TpH9LTexUOhuEn5C6CsqAuxP1dT/FDua00shO60hs/jhXmNTDNK4nJeQlm5i7VylpdZu6Wif4c2 1fovXz3+ILqWaXC74CKQoGU5exEBjs57GPd4MVnL8eJSoJ50sN69dW7sNRGTek5+PcjSjZjFgmH GPcobGUdFylUsjDMSmkhBxMijs1itAZCUUILA= X-Google-Smtp-Source: AGHT+IGGQC7DD6H/8thVUoGZmJoE8Ifa7x2ZcpsZUmL8M80fnmgiZKP+8SalfBitc5nxsG3k6Y1ouw== X-Received: by 2002:a05:6000:2908:b0:3a4:dd16:b287 with SMTP id ffacd0b85a97d-3a6d12e903fmr2161553f8f.19.1750421857273; Fri, 20 Jun 2025 05:17:37 -0700 (PDT) Received: from smtpclient.apple (2001-8e0-306c-2301-e0df-64a7-2894-b600.bbcs.ip6.as8758.net. [2001:8e0:306c:2301:e0df:64a7:2894:b600]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45364703701sm23832445e9.27.2025.06.20.05.17.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jun 2025 05:17:36 -0700 (PDT) From: =?utf-8?Q?Peter_R=C3=B6thlisberger?= Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_324075EF-8715-4EB8-BD5C-C042053FA4EB" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: undefined symbol: PQcancelStart Date: Fri, 20 Jun 2025 14:17:26 +0200 In-Reply-To: Cc: pgsql-general@lists.postgresql.org To: Laurenz Albe References: <4DFE733D-51B8-4A15-9FB8-C6FFF73E6338@zen-innovations.com> X-Mailer: Apple Mail (2.3826.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_324075EF-8715-4EB8-BD5C-C042053FA4EB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello Laurenz, thanks for your quick reply. The issue was having the old postgres library in LD_LIBRARY_PATH. Once I = removed it, everything started to look good! In all the past years this = was not a problem though. But anyway: All good now! Thanks again: peter > On 20 Jun 2025, at 14:00, Laurenz Albe = wrote: >=20 > On Fri, 2025-06-20 at 13:49 +0200, Peter R=C3=B6thlisberger wrote: >> Hello all, >>=20 >> Platform: Rocky Linux release 9.4 (Blue Onyx) >>=20 >> I try to migrate from version 16.7 to 17.5. When executing pg_upgrade = =E2=80=94check I get the following: >>=20 >>=20 >> could not load library "$libdir/dblink": ERROR: could not load = library "/opt/postgresql-17.5/lib/dblink.so": = /opt/postgresql-17.5/lib/dblink.so: undefined symbol: PQcancelStart >> In database: zen_dev1 >> In database: zen_prod2 >> could not load library "$libdir/postgres_fdw": ERROR: could not load = library "/opt/postgresql-17.5/lib/postgres_fdw.so": = /opt/postgresql-17.5/lib/postgres_fdw.so: undefined symbol: = PQcancelStart >> In database: zen_dev1 >>=20 >> I tried hard to find a hint on the net. No success hence my first = post here. I was able to execute the update on another server having the = same OS. >=20 > How did you install "dblink.so" and "postgres_fdw.so"? > It looks like you copied them from the old installation. That won't = work. >=20 > Yours, > Laurenz Albe Peter Roethlisberger=20 Senior System & Database Architect Zen Innovations AG Bernstrasse 99 3122 Kehrsatz Switzerland=20 46=C2=B054=E2=80=9957=E2=80=9D N 007=C2=B028=E2=80=9903=E2=80=9D E www.zen-innovations.com Phone: +41 (0)31 550 07 65 Mobile: +41 (0)79 785 79 35=20 D-U-N-S=C2=AE Number: 48-405-0989 peter.roethlisberger@zen-innovations.com --Apple-Mail=_324075EF-8715-4EB8-BD5C-C042053FA4EB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello Laurenz, = thanks for your quick reply.

The issue was having the = old postgres library in LD_LIBRARY_PATH. Once I removed it, everything = started to look good! In all the past years this was not a problem = though. But anyway: All good now!

Thanks again: = peter


On 20 Jun 2025, at 14:00, Laurenz Albe = <laurenz.albe@cybertec.at> wrote:

On Fri, 2025-06-20 at = 13:49 +0200, Peter R=C3=B6thlisberger wrote:
Hello all,

Platform: Rocky Linux release 9.4 (Blue = Onyx)

I try to migrate from version 16.7 to 17.5. When executing = pg_upgrade =E2=80=94check I get the following:


could not load = library "$libdir/dblink": ERROR:  could not load library = "/opt/postgresql-17.5/lib/dblink.so": = /opt/postgresql-17.5/lib/dblink.so: undefined symbol: = PQcancelStart
In database: zen_dev1
In database: = zen_prod2
could not load library "$libdir/postgres_fdw": ERROR: =  could not load library "/opt/postgresql-17.5/lib/postgres_fdw.so": = /opt/postgresql-17.5/lib/postgres_fdw.so: undefined symbol: = PQcancelStart
In database: zen_dev1

I  tried hard to find = a hint on the net. No success hence my first post here. I was able to = execute the update on another server having the same = OS.

How did you install "dblink.so" and = "postgres_fdw.so"?
It looks like you copied them from the old = installation.  That won't work.

Yours,
Laurenz = Albe

Peter Roethlisberger 
Senior System = & Database Architect
Zen Innovations AG
Bernstrasse 99
3122 = Kehrsatz
Switzerland 
46=C2=B054=E2=80=9957=E2=80=9D N = 007=C2=B028=E2=80=9903=E2=80=9D = E

www.zen-innovations.com
Phone:  +41 (0)31 550 07 = 65
Mobile: +41 (0)79 785 79 35 
D-U-N-S=C2=AE Number: = 48-405-0989
peter.roethlisberger@zen-innovations.com







= --Apple-Mail=_324075EF-8715-4EB8-BD5C-C042053FA4EB--