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 1rSnrp-00G1XR-Da for pgsql-general@arkaria.postgresql.org; Thu, 25 Jan 2024 00:45:17 +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 1rSnro-00ACtv-1D for pgsql-general@arkaria.postgresql.org; Thu, 25 Jan 2024 00:45:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSnrn-00ACrV-HK for pgsql-general@lists.postgresql.org; Thu, 25 Jan 2024 00:45:15 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSnrk-003DIy-MY for pgsql-general@lists.postgresql.org; Thu, 25 Jan 2024 00:45:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 40P0jBKV240617; Wed, 24 Jan 2024 19:45:11 -0500 From: Tom Lane To: Michael Nolan cc: Daniel Gustafsson , "pgsql-generallists.postgresql.org" Subject: Re: undefined symbol when installing pgcrypto on 16.1 In-reply-to: References: <334461.1705013937@sss.pgh.pa.us> <2271455.1705593108@sss.pgh.pa.us> Comments: In-reply-to Michael Nolan message dated "Wed, 24 Jan 2024 18:09:18 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <240615.1706143511.1@sss.pgh.pa.us> Date: Wed, 24 Jan 2024 19:45:11 -0500 Message-ID: <240616.1706143511@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Nolan writes: > Writing or debugging makefiles is something I haven't done much of, > but as best I can figure out the problem is that the libcrypto.so file > isn't being linked in, though this line in the Makefile in pgcrypto > seems to say should be: > SHLIB_LINK += $(filter -lcrypto -lz, $(LIBS)) > I'm guessing it is supposed to pick up the LIBS list from the top > Makefile, but isn't. What that does is to select "-lcrypto" (and "-lz", but that's not relevant now) out of the LIBS variable. The configure script should have included that in LIBS if you specified --with-openssl, but maybe it failed to. Can you check the configured value of LIBS (in src/Makefile.global) to see? If it's not there, it would be useful to see the contents of the config.log log file. regards, tom lane