Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92915 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64566 invoked from network); 29 Apr 2016 06:02:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2016 06:02:29 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.161.182 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.161.182 mail-yw0-f182.google.com Received: from [209.85.161.182] ([209.85.161.182:36657] helo=mail-yw0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/30-60902-3F8F2275 for ; Fri, 29 Apr 2016 02:02:27 -0400 Received: by mail-yw0-f182.google.com with SMTP id o66so166840206ywc.3 for ; Thu, 28 Apr 2016 23:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=RR5JTqx848m8Y93vJOnKp6UlUtkk+BQqBfYPy9pIOnQ=; b=aWSQVJ8x/9pmWq84LS8AhT8TMCd01SRGGmFYC+bBgQG9pUZ5/oI53P2DrT0bFSb51Q ijF+0HCFZXp/H5W+akCJE45mFYUPZ6QMk12U1OJHDW8G/6MS89fY8DBQreuh+HRZ0oI/ u8/BlvsfQT8sp37xBzDGW4FDNv41q45+7RBLOqv/FWV97gyv79iBH2TSQQ1OQP5XHot3 sGMngMJ4hWprIKLEUHvCxl/EtV/JG6FwXWjAagZB3J0JQ9nIRNRFBbKdWtwvPZZxxRSx uDSKuSILDtYS1LEV1giY4Kcm7OIKPJXwBGPMxAcCQ2mKb0RMOB3sn9uVzDP91SG/b4To F6ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=RR5JTqx848m8Y93vJOnKp6UlUtkk+BQqBfYPy9pIOnQ=; b=Ib/k/TPF0rPVQWsG3hFMTzKP+VBshoLeTWVSoj8Q1IJNmPIJ1KjxEPEjOL7XINADYw w27WNMQFme+KG1KmmtBdMnwYsALjaVhKSrKbX9pcq3/HKYUdx+//CPQoueAlSRZMaW6i SvKSp3Fa3qFv5lenHt/XWJV5cyLVsh8Ni3ihE9DUUEhspFSHGasAed8kDi5wRAHCLNOg wVcaOFc0+NuBbwVbDQ8zc3J2wg7unEMZhYZWyymJGHJ7VGZWm0BpDmDfADP4XvSn30Aj TqR5ygsDqty/9t/NI0tN8GETrSFQRtsrtxVdzFV13ZE11eRDo64IYTrD+PZwTC0S+fcU sBWA== X-Gm-Message-State: AOPr4FU/5mA9f0o8MMNAWrR8lLTbbwaVnR4AcLvbqHaXl2KhRb5L3LvzzjLEeHO0dbsxTDLzREkh3DORXdV3/w== MIME-Version: 1.0 X-Received: by 10.129.166.214 with SMTP id d205mr3204933ywh.323.1461909744423; Thu, 28 Apr 2016 23:02:24 -0700 (PDT) Received: by 10.129.109.67 with HTTP; Thu, 28 Apr 2016 23:02:24 -0700 (PDT) X-Originating-IP: [165.120.173.102] In-Reply-To: References: <7D13E7EB-910D-42DD-ACF1-3872C1CE55C1@heroku.com> <3F.65.03587.65DEED65@pb1.pair.com> <0E11F160-CC0B-4161-AA35-9B7863A928D8@heroku.com> <7DD8AF5A-EB68-4CC3-A2E7-E668E30A0F59@heroku.com> Date: Fri, 29 Apr 2016 07:02:24 +0100 Message-ID: To: David Zuelke Cc: Andrea Faulds , PHP internals Content-Type: multipart/alternative; boundary=94eb2c128e5402c29905319963e2 Subject: Re: [PHP-DEV] Enabling opcache causes libraries to build as static From: pthreads@pthreads.org (Joe Watkins) --94eb2c128e5402c29905319963e2 Content-Type: text/plain; charset=UTF-8 Morning David, To confirm it was something to do with opcache, I removed opcache from the source tree: krakjoe@fiji:/usr/src/php-src$ ./configure --disable-all | grep static checking if cc static flag -static works... yes checking whether to build static libraries... yes That's pretty strange, it doesn't seem connected to opcache, at least on my os (ubuntu). So I try this, still no opcache in tree: krakjoe@fiji:/usr/src/php-src$ ./configure --disable-all --disable-static | grep static checking if cc static flag -static works... yes checking whether to build static libraries... yes So I dig around in configure ... and find this: enable_shared=yes enable_static=yes case $php_sapi_module in shared) enable_static=no case $with_pic in yes) standard_libtool_flag='-prefer-pic' ;; no) standard_libtool_flag='-prefer-non-pic' ;; esac EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module" ;; *) standard_libtool_flag='-prefer-non-pic -static' if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then enable_shared=no fi ;; esac Unconditionally setting enable_static here makes --enable-static be ignored. Over to someone else who understands why this is the case ... Cheers Joe On Fri, Apr 29, 2016 at 12:25 AM, David Zuelke wrote: > On 20.03.2016, at 22:10, David Zuelke wrote: > > > > On 10.03.2016, at 16:56, David Zuelke wrote: > >> > >>> On 08.03.2016, at 16:18, Andrea Faulds wrote: > >>> > >>> Hi, > >>> > >>> David Zuelke wrote: > >>>> Is this intentional? Related to opcache's "can only be built shared" > status? But why would that trigger static builds? Or is it a bug? > >>> > >>> While we're at it, why is Opcache still built as shared? Does > something prevent it being statically-linked? > >> > >> I remember something about PCRE and whether or not that's linked > statically or not. Can't find it right now. > >> > >> Either way, it'd be great if someone in-the-know could chime in on this > matter ;) > > > > Just a little *bump*... anyone got any idea here? > > > > Thanks! > > And another *bump*... anyone from Zend maybe? > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --94eb2c128e5402c29905319963e2--