Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107531 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86306 invoked from network); 13 Oct 2019 23:17:19 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 13 Oct 2019 23:17:19 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id E8E952CC48C for ; Sun, 13 Oct 2019 14:01:01 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: X-Spam-Virus: No Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Sun, 13 Oct 2019 14:01:01 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id n14so14580441ljj.10 for ; Sun, 13 Oct 2019 14:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WBLQ9J/BMr00OZMwupEjs9391iu6qmgcDqVzf7ggAfI=; b=gtm7rfnFeIhVKPRIyJZ3N4PYLVh0lRyiWOd/r3EJI84XXoim8c9MNQc7Wc6UyUZL+D K6+qM2KeKRgvBRoOtJrEDE3bNrE30VhEJKjayHTUPVO4X7ZNeI9wUYRPIKjzPucwW1qo nEr2XdGL4GTqeKjbuaxcxG+MbxDqU/EHFaLl+ja77PftHK1W5nh8/kR9ao/HfKHOsX87 KMdZycJueQCxf1a3AxqQEJMEopy//Kh/y7c6+CQGKIuPSWaJ3XclG6RrEp74r8aCE9/D 0K/Nkvn/so0HdUztkagEuip4inMJiIy85R2HpE1WoXWyolZPAeO1uSBkretNmLLyXt6p ++Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WBLQ9J/BMr00OZMwupEjs9391iu6qmgcDqVzf7ggAfI=; b=ASOBT/iu6C54ADwQq12wxzLXr+l82xOOc2A/kUFZTN/NNvgey3ZcSm31Xzz/Rn28qP XS2wtoWlw9TwCz/xXF3UWn3zbuycvZzKzrX4/RkeY88hik1yHrkaXNgJNOOWQJWHACrH cDhPcscqdO5MWxRZaNaabiFTdKlV1s/ZTi9I3CQmex3BOvNdIKcCdyaoelA0zN6BxnR1 +ghBiupImomUlWT/VTkfCv1j+bvPrRaAzMoTf1jETVcCGH6kTOXtNpibFbO92gKF9cGi QrM6VTMXkriBs1o0TKGNpqKTqoSIV+NX9kz8OGTtj+mLlqO08uHS4sVHB12g1ipIwcm5 whaw== X-Gm-Message-State: APjAAAV8D4iDCgqMyYU9BhKf1e5VDB4h6LzqIvifF0s3HOFYHTVCg0Mt FQIaBON6X2hlTUrBiT+gI+3W+CDM+coobBVuHXc= X-Google-Smtp-Source: APXvYqwA9LXN7eOcdlbm8bcSNF0ZhH8A3YP9RhLvNP3mG7SfVsOLwV12HavzWij+X6FFClz14YhK1oCpEav8qJCIPp0= X-Received: by 2002:a2e:2b94:: with SMTP id r20mr16395552ljr.119.1571000459412; Sun, 13 Oct 2019 14:00:59 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <6d37qe5jhtm390dqs45hmgpkdvlm3lgj3i@4ax.com> Date: Sun, 13 Oct 2019 23:00:43 +0200 Message-ID: To: Jan Ehrhardt Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000005347720594d10c93" X-Envelope-From: Subject: Re: [PHP-DEV] configure bug with static openssl 1.1.1? - bugid 77288 From: nikita.ppv@gmail.com (Nikita Popov) --0000000000005347720594d10c93 Content-Type: text/plain; charset="UTF-8" On Sun, Oct 13, 2019 at 10:51 PM Jan Ehrhardt wrote: > "Helmut K. C. Tessarek" in php.internals (Thu, 7 Feb 2019 13:39:11 > +0100): > >On 2018-12-13 17:52, Rainer Jung wrote: > >> I might be wrong, but I vaguely remember that PHp does not call > >> "pkg-config --static --libs openssl" with a correctly setup > >> PKG_CONFIG_PAATZ to get the libs needed for static compilation. > >> Typically OpenSSL installs correct pc files that contain pthread as such > >> a dependency. Without asking pkg-config some fixed decisin logic would > >> need to find all the needed libs. > > > >I'd like to follow up on bug https://bugs.php.net/bug.php?id=77288 > > > >It's not stated in the documentation anywhere that a static openssl is > >not supported. > >It's ok, if devs don't have the time to look into it right away, but > >I've opened this bug 2 months ago, and it would be nice, if someone > >could at least acknowledge the bug and/or give some sort of a feedback. > > > >If PHP does not support static openssl, please change the documentation > >accordingly. > > > >However, it's wotking with openssl 1.0.2, so I must assume that there's > >a bug somewhere otherwise it would work with openssl 1.1.1 as well. > > Did you ever find a solution to compile PHP with a static OpenSSL 1.1.1? > -- > Jan > 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. Nikita --0000000000005347720594d10c93--