Bug #78696 [NEW]: Link fail with curl
From: cst_zf at qq dot com
Operating system: Win10
PHP version: 7.2.23
Package: Compile Failure
Bug Type: Bug
Bug description:Link fail with curl
Description:
------------
Workdir: C:\php-sdk\phpdev\vc15\x64\php-7.2.23-src
Compiler: VC15(VS 2017 Community)
remove --with-curl=shared, it will be ok.
add --with-curl, it will compile successfully, with static curl
complication, but run failed.(it cannot dynamically load
SSL_CTX_set_post_handshake_auth export function frmo php7ts.dll)
add --with-curl-shared, it will fail to compile.
(sorry i do not know how to set the error info to English. it just means
unresolved external symbol referenced.)
æ£å¨å建åº
C:\php-sdk\phpdev\vc15\x64\php-7.2.23-src\x64\Release_TS\php_curl.lib
å对象
C:\php-sdk\phpdev\vc15\x64\php-7.2.23-src\x64\Release_TS\php_curl.exp
curl_file.obj : error LNK2019: æ æ³è§£æçå¤é¨ç¬¦å·
zend_new_interned_stringï¼è¯¥ç¬¦å·å¨å½æ° curlfile_register_class
ä¸è¢«å¼ç¨
interface.obj : error LNK2019: æ æ³è§£æçå¤é¨ç¬¦å·
zend_empty_stringï¼è¯¥ç¬¦å·å¨å½æ° zif_curl_error ä¸è¢«å¼ç¨
multi.obj : error LNK2001: æ æ³è§£æçå¤é¨ç¬¦å·
zend_empty_string
interface.obj : error LNK2019: æ æ³è§£æçå¤é¨ç¬¦å·
empty_fcall_info_cacheï¼è¯¥ç¬¦å·å¨å½æ° _php_curl_setopt
ä¸è¢«å¼ç¨
multi.obj : error LNK2001: æ æ³è§£æçå¤é¨ç¬¦å·
empty_fcall_info_cache
interface.obj : error LNK2019: æ æ³è§£æçå¤é¨ç¬¦å·
core_globals_idï¼è¯¥ç¬¦å·å¨å½æ° _php_curl_setopt ä¸è¢«å¼ç¨
multi.obj : error LNK2019: æ æ³è§£æçå¤é¨ç¬¦å·
empty_fcall_infoï¼è¯¥ç¬¦å·å¨å½æ° _php_server_push_callback
ä¸è¢«å¼ç¨
libcurl_a.lib(version.obj) : error LNK2019: æ æ³è§£æçå¤é¨ç¬¦å·
zlibVersionï¼è¯¥ç¬¦å·å¨å½æ° Curl_version_init ä¸è¢«å¼ç¨
libcurl_a.lib(content_encoding.obj) : error LNK2001:
æ æ³è§£æçå¤é¨ç¬¦å· zlibVersion
libcurl_a.lib(content_encoding.obj) : error LNK2019:
æ æ³è§£æçå¤é¨ç¬¦å·
inflateï¼è¯¥ç¬¦å·å¨å½æ° inflate_stream
ä¸è¢«å¼ç¨
libcurl_a.lib(content_encoding.obj) : error LNK2019:
æ æ³è§£æçå¤é¨ç¬¦å·
inflateEndï¼è¯¥ç¬¦å·å¨å½æ°
deflate_close_writer ä¸è¢«å¼ç¨
libcurl_a.lib(content_encoding.obj) : error LNK2019:
æ æ³è§£æçå¤é¨ç¬¦å·
inflateInit_ï¼è¯¥ç¬¦å·å¨å½æ°
deflate_init_writer ä¸è¢« å¼ç¨
libcurl_a.lib(content_encoding.obj) : error LNK2019:
æ æ³è§£æçå¤é¨ç¬¦å·
inflateInit2_ï¼è¯¥ç¬¦å·å¨å½æ°
gzip_init_writer ä¸è¢«å¼ ç¨
C:\php-sdk\phpdev\vc15\x64\php-7.2.23-src\x64\Release_TS\php_curl.dll :
fatal error LNK1120: 10 ä¸ªæ æ³è§£æçå¤é¨å½ä»¤
NMAKE : U1077: â"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe"â:
è¿å代ç â0x460â
Test script:
---------------
configure --disable-all --enable-embed --enable-mbstring --with-sqlite3
--enable-pdo --enable-intl=static --with-openssl=static --enable-cli
--enable-bcmath --enable-calendar --enable-ctype --with-dom
--enable-filter --enable-hash --with-iconv --enable-json --with-libxml
--with-mysqlnd --enable-phar --enable-session --enable-tokenizer
--with-xml --enable-xmlreader --enable-xmlwriter --with-bz2
--enable-exif --enable-zlib --enable-zip --with-gd --with-pdo-mysql
--with-pdo-sqlite --with-pdo-sqlite-external --enable-opcache
--with-curl=shared
nmake
--
Edit bug report at https://bugs.php.net/bug.php?id=78696&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78696&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78696&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78696&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78696&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78696&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78696&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78696&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78696&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78696&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78696&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78696&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78696&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78696&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78696&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78696&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78696&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78696&r=mysqlcfg
Thread (5 messages)
- cst_zf at qq dot com