public inbox for [email protected]  
help / color / mirror / Atom feed
From: Matthias Apitz <[email protected]>
To: Tom Lane <[email protected]>
To: [email protected]
Subject: Re: configure && --with
Date: Wed, 8 Apr 2026 13:19:55 +0200
Message-ID: <adY523xn9V+fO2H0@pureos> (raw)
In-Reply-To: <adYZj2yREZN2YJRg@pureos>
References: <adTLHOYqTDxT6auA@pureos>
	<[email protected]>
	<adX8VNY-qP1hJ7P6@c720-1400094>
	<adYZj2yREZN2YJRg@pureos>

El día miércoles, abril 08, 2026 a las 11:02:07 +0200, Matthias Apitz escribió:

> El día miércoles, abril 08, 2026 a las 08:57:24 +0200, Matthias Apitz escribió:
> 
> > Thanks for your hints. I do use now:
> > 
> > $ ./configure --prefix=/usr/local/sisis-pap/pgsql-18.3 \
> >         --libdir=/usr/local/sisis-pap/pgsql-18.3/lib \
> >         --with-includes=/usr/local/sisis-pap/include \
> >         --with-libraries=/usr/local/sisis-pap/lib \
> >         --enable-nls \
> >         --with-perl \
> >         --with-ldap \
> >         --with-pam \
> >         --without-icu \
> >         --with-openssl
> > 

I did y quick fix in ./configure and with this I get in config.log:

...
configure:14192: checking for openssl
configure:14210: found /usr/local/sisis-pap/bin/openssl
configure:14222: result: /usr/local/sisis-pap/bin/openssl
configure:14246: using openssl: OpenSSL 3.5.6 7 Apr 2026 (Library: OpenSSL 3.5.6 7 Apr 2026)
configure:14249: checking openssl/ssl.h usability
...

The change is:

diff -c configure.orig configure
*** configure.orig      Mon Feb 23 22:56:43 2026
--- configure   Wed Apr  8 13:06:57 2026
***************
*** 14238,14244 ****
--- 14238,14248 ----
  $as_echo "$OPENSSL" >&6; }
  fi

+ # see line 3109 for LIBRARY_DIRS
+ LD_LIBRARY_PATH_SAVED=$LD_LIBRARY_PATH
+ LD_LIBRARY_PATH=$LIBRARY_DIRS:$LD_LIBRARY_PATH
  pgac_openssl_version="$($OPENSSL version 2> /dev/null || echo openssl not found)"
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH_SAVED
  { $as_echo "$as_me:${as_lineno-$LINENO}: using openssl: $pgac_openssl_version" >&5
  $as_echo "$as_me: using openssl: $pgac_openssl_version" >&6;}
  if test "$with_ssl" = openssl ; then

The bug/issue with "--with-libraries=LIB" is that the specified lib dir(s)
are used for linker statement, but never for run time statements:

 8096 #
 8097 # Library directories
 8098 #
 8099 ac_save_IFS=$IFS
 8100 IFS="${IFS}${PATH_SEPARATOR}"
 8101 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
 8102 for dir in $LIBRARY_DIRS $SRCH_LIB; do
 8103   if test -d "$dir"; then
 8104     LIBDIRS="$LIBDIRS -L$dir"
 8105   else
 ...

My fix is dirty and should not stay like this. It only points to the
problem.

HIH

	matthias

-- 
Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

Annalena Baerbock: "We are fighting a war against Russia ..." (25.1.2023)

I, Matthias, I am not at war with Russia.
Я не воюю с Россией.
Ich bin nicht im Krieg mit Russland.






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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: configure && --with
  In-Reply-To: <adY523xn9V+fO2H0@pureos>

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

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