| From: | Matthias Apitz <guru(at)unixarea(dot)de> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: configure && --with |
| Date: | 2026-04-08 11:19:55 |
| Message-ID: | adY523xn9V+fO2H0@pureos |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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, ✉ guru(at)unixarea(dot)de, 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Laurenz Albe | 2026-04-08 11:24:47 | Re: configure && --with |
| Previous Message | Matthias Apitz | 2026-04-08 09:02:07 | Re: configure && --with |