Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107538 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94597 invoked from network); 14 Oct 2019 10:30:35 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 14 Oct 2019 10:30:35 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 383252CC48C for ; Mon, 14 Oct 2019 01:14:26 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS12581 212.79.160.0/19 X-Spam-Virus: No Received: from mailserver.kippdata.de (mailserver.kippdata.de [212.79.170.253]) by php-smtp3.php.net (Postfix) with ESMTP for ; Mon, 14 Oct 2019 01:14:25 -0700 (PDT) Received: from [10.0.110.6] ([192.168.179.144]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id x9E8ENiA003553; Mon, 14 Oct 2019 10:14:23 +0200 (CEST) To: "Helmut K. C. Tessarek" Cc: PHP internals References: <2e358c47-f07d-2bd0-dcbf-8ee1282f1ea1@evermeet.cx> <79bdc208-876f-ea0c-b529-010fe3d129bb@kippdata.de> <6de046b4-905c-e338-d640-14973a448910@evermeet.cx> <6d37qe5jhtm390dqs45hmgpkdvlm3lgj3i@4ax.com> <8f374f74-9896-2555-ffa0-d3559edb86ae@kippdata.de> Message-ID: <39fbf013-586b-3d6e-4024-e1c758568bd0@kippdata.de> Date: Mon, 14 Oct 2019 10:14:20 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <8f374f74-9896-2555-ffa0-d3559edb86ae@kippdata.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Envelope-From: Subject: Re: [PHP-DEV] configure bug with static openssl 1.1.1? - bugid 77288 From: rainer.jung@kippdata.de (Rainer Jung) Am 14.10.2019 um 10:12 schrieb Rainer Jung: > Am 13.10.2019 um 23:04 schrieb Helmut K. C. Tessarek: >> On 2019-10-13 17:00, Nikita Popov wrote: >>> Don't know about previous versions, but at least on 7.4 setting >>> OPENSSL_CFLAGS and OPENSSL_LIBS appropriately (e.g. using pkg-config >>> --static --cflags/--libs return values) should work. These environment >>> variables allow you to bypass normal pkg-config checks, which are >>> generally >>> going to be non-static. >> >> I've tried pretty much anything, so if you have flags and env vars >> that work, >> please post them here. > > I think what he means is doing: > > % export PKG_CONFIG_PATH=/path/to/my/openssl111/pkgconfig > > where that directory should contain the pc files from your OpenSSL 1.1.1 > installation. > > Then (example, you results may vary): > > % pkg-config --cflags openssl > > -I/path/to/my/openssl111/include > > So you would set > > export OPENSSL_CFLAGS=/path/to/my/openssl111/include > > and then > > % pkg-config --libs --static openssl > > -L/path/to/my/openssl111/lib -lssl -lcrypto -ldl -pthread > > so you would set > > export OPENSSL_LIBS="-L/path/to/my/openssl111/lib -lssl -lcrypto -ldl > -pthread" > > You might try with the values you get back from the above pkg-config > command on your system. > > If it doesn't work, it would be helpful, if you could then post again > your config.log so we can understand the remaining problems. Addition to self: plus temporarily rename libssl.so and libcrypto.so during the PHP build, e.g. adding a trailing underscore. The versioned *.so.* files can stay in place, just not *.so. Regards, Rainer