pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Nolan <htfoot@gmail.com>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: undefined symbol when installing pgcrypto on 16.1
Date: Wed, 24 Jan 2024 19:45:11 -0500
Message-ID: <240616.1706143511@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOzAquKFGq=+2X7SLWMZis2gb69QxqcAM_+-XYSqQ0bgMZuACg@mail.gmail.com>
References: <CAOzAquJWw6vatvGh40eYH-M=VFubgZmi6RFud7vG__hyn4cP3w@mail.gmail.com>
	<334461.1705013937@sss.pgh.pa.us>
	<CAOzAquLC9dwCVFvffALn-_nDQr2sYL1baqQsm=5w0yVwwfWSMg@mail.gmail.com>
	<A9136BB3-9B98-48C2-8DBC-146A9AE99862@yesql.se>
	<CAOzAqu+NvikLGzzVZ2p97qm=M=E_hxKuosRP6Y1Gu3p3QAY5uw@mail.gmail.com>
	<F8FD4AF2-AE6A-4D6F-9B1A-F2121F294E47@yesql.se>
	<CAOzAquJM5yJiw8JBsE-DnWdNGYqOf+yJcRahiJqPs3d09sWcNg@mail.gmail.com>
	<2271455.1705593108@sss.pgh.pa.us>
	<CAOzAquL6qSzYtd7VE4FCyZ44H43g5kgU2n9SoX3X7QSZqD3Cdg@mail.gmail.com>
	<CAOzAquKFGq=+2X7SLWMZis2gb69QxqcAM_+-XYSqQ0bgMZuACg@mail.gmail.com>

Michael Nolan <htfoot@gmail.com> 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





view thread (14+ messages)  latest in thread

Message-ID: <240616.1706143511@sss.pgh.pa.us>
Permalink:  ../240616.1706143511@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/240616.1706143511@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, htfoot@gmail.com, daniel@yesql.se
  Subject: Re: undefined symbol when installing pgcrypto on 16.1
  In-Reply-To: <240616.1706143511@sss.pgh.pa.us>
  References: <CAOzAquJWw6vatvGh40eYH-M=VFubgZmi6RFud7vG__hyn4cP3w@mail.gmail.com> <334461.1705013937@sss.pgh.pa.us> <CAOzAquLC9dwCVFvffALn-_nDQr2sYL1baqQsm=5w0yVwwfWSMg@mail.gmail.com> <A9136BB3-9B98-48C2-8DBC-146A9AE99862@yesql.se> <CAOzAqu+NvikLGzzVZ2p97qm=M=E_hxKuosRP6Y1Gu3p3QAY5uw@mail.gmail.com> <F8FD4AF2-AE6A-4D6F-9B1A-F2121F294E47@yesql.se> <CAOzAquJM5yJiw8JBsE-DnWdNGYqOf+yJcRahiJqPs3d09sWcNg@mail.gmail.com> <2271455.1705593108@sss.pgh.pa.us> <CAOzAquL6qSzYtd7VE4FCyZ44H43g5kgU2n9SoX3X7QSZqD3Cdg@mail.gmail.com> <CAOzAquKFGq=+2X7SLWMZis2gb69QxqcAM_+-XYSqQ0bgMZuACg@mail.gmail.com> <240616.1706143511@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox