Bug #71227 [Opn->Nab]: Can't compile php_curl statically
| From: | ab@php.net | Date: | Fri, 01 Jan 2016 17:49:51 +0000 |
| Subject: | Bug #71227 [Opn->Nab]: Can't compile php_curl statically | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198348@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71227&edit=1
ID: 71227
Updated by: ab@php.net
Reported by: amir at zend dot com
Summary: Can't compile php_curl statically
-Status: Open
+Status: Not a bug
Type: Bug
Package: *Compile Issues
Operating System: Windows
PHP Version: 7.0.1
Block user comment: N
Private report: N
New Comment:
Thanks for the report. Yes, ext/curl won't build static as well as many other extensions on
Windows. The reason are several limitations based on the concrete libraries builds, or their
dependencies. In this case, the fact libcurl links with openssl enforces ext/curl to be always built
shared.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-12-27 13:57:00] amir at zend dot com
Description:
------------
I'd like to compile php_curl statically into php but everything I tried only compiled it as a
shared module.
I used the following configure options (tried both '--with-curl' and
'--with-curl=static' and also tried to compile only with libcurl.lib and only with
libcurl_a.lib):
.\configure --disable-all --enable-debug-pack --enable-cli --enable-ipv6 --disable-zts --enable-cgi
--enable-com-dotnet --enable-filter --enable-pdo --with-libxml --with-iconv --with-openssl
--enable-cgi --enable-zlib --enable-xmlreader --enable-xmlwriter --enable-session --with-mysqlnd
--with-dom --enable-filter --enable-json --with-mysqli=shared --with-pdo-mysql=shared
--enable-phar=shared --with-simplexml --with-xml --with-mcrypt=shared --enable-hash --enable-ftp
--with-pdo-sqlite --with-sqlite3 --enable-zip --with-xmlrpc=shared --enable-ctype --with-mp=5
--with-gd=shared --enable-mbstring=shared --enable-bcmath=shared --enable-calendar=shared
--enable-shmop=shared --enable-sockets=shared --with-wddx=shared --enable-tokenizer=shared
--with-curl=static --with-oci8=shared,instantclient --with-xsl=shared --with-bz2=shared
--enable-exif=shared --enable-intl=shared --with-gettext=shared --with-gmp=shared --with-imap=shared
--with-ldap=shared --with-libwebp --enable-odbc=shared!
--with-pgsql=shared --with-pdo-pgsql=shared --with-tidy=shared --enable-soap=shared
--with-pdo-odbc=shared --enable-fileinfo=shared
And got the following related to curl:
Checking for library libcurl_a.lib;libcurl.lib ... ..\deps\lib\libcurl.lib
Checking for curl/easy.h ... E:\bld\nightly\phpdev\vc14\x86\deps\include
Checking for library ssleay32.lib ... ..\deps\lib\ssleay32.lib
Checking for library libeay32.lib ... ..\deps\lib\libeay32.lib
Checking for library winmm.lib ... <in LIB path> WinMM.Lib
Checking for library wldap32.lib ... <in LIB path> Wldap32.Lib
Enabling extension ext\curl [shared]
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71227&edit=1