Re: configure bug with static openssl 1.1.1? - bugid 77288
| From: | Helmut K. C. Tessarek | Date: | Tue, 22 Oct 2019 07:18:55 +0000 |
| Subject: | Re: configure bug with static openssl 1.1.1? - bugid 77288 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107625@lists.php.net to get a copy of this message | ||
On 2019-10-22 02:32, Rainer Jung wrote:
> If you are willing for another round:
>
> # The next line only if configure.saved
> # no longer exists from the previous try
> cp -p configure configure.saved
>
> # The sed command here is three lines,
> # the first two of them continued by a
> # backslash at the end of line
> sed -e 's/\(LIBS=.*\)-lssl \(.*\)/\1 -lssl -lcrypto \2/' \
> -e 's/\(LIBS=.*-lssl *-lcrypto\)\(.*\)/\1 `$PKG_CONFIG --libs --static
> openssl` \2/' \
> configure.saved > configure
>
> If it doesn't work, then please again give us the config.log plus the "diff
> configure.saved configure".
It didn't work, but it can't work this way:
LIBS=" -lssl -lcrypto
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
$PKG_CONFIG --libs --static openssl $LIBS"
This will find the system openssl and not my openssl 1.1.1.
But if I set
export PKG_CONFIG_PATH=/usr/local/ssl-1.1.1/lib/pkgconfig
then other libraries are not found. I seriously don't understand why linking
to 2 files in /usr/local/ssl-1.1.1/lib is so complicated. Apache httpd can do
it. dovecot can do it. Every other software paxckage I compile can do it.
PHP is the only one that fails.
Once again, it does work with my other (non-system static openssl 1.0.2).
I never link against the system openssl (my server has an uptime of more than
5 years), but unfortunately I can't remove it either.
So if I change the path from /usr/local/ssl-1.1.1 to /usr/local/ssl (which
holds my static 1.0.2 non-sysetm openssl) all works well.
Anyway, here are the 2 files you requested:
https://evermeet.cx/pub/logs/config.php72.2.log
https://evermeet.cx/pub/logs/diff.2.patch
I'm heading to bed now. Thanks for all your help so far.
Cheers,
K. C.
--
regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc