[PHP-BUG] Bug #71227 [NEW]: Can't compile php_curl statically

[email protected] ("amir at zend dot com")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             amir at zend dot com
Operating system: Windows
PHP version:      7.0.1
Package:          *Compile Issues
Bug Type:         Bug
Bug description:Can't compile php_curl statically 

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 bug report at https://bugs.php.net/bug.php?id=71227&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71227&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71227&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71227&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71227&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71227&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71227&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71227&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71227&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71227&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71227&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71227&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71227&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71227&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71227&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71227&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71227&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71227&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71227&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71227&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71227&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.