Bug #78696 [Fbk->NoF]: Link fail with curl
Edit report at https://bugs.php.net/bug.php?id=78696&edit=1
ID: 78696
Updated by: php-bugs@lists.php.net
Reported by: cst_zf at qq dot com
Summary: Link fail with curl
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Compile Failure
Operating System: Win10
PHP Version: 7.2.23
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2020-08-18 16:27:21] cmb@php.net
Any news here? Do you still experience the link error with any of
the actively supported PHP versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2019-10-26 15:39:41] cst_zf at qq dot com
VS2017 15.9.17
phpsdk_deps -c show no updates.
php-7.2.23-src
still the same issue.
I will try to reproduce this issue after i get a VM.
I have installed too many versions of Developing Tools in this Win10.
------------------------------------------------------------------------
[2019-10-19 17:10:10] cmb@php.net
I cannot reproduce this; the build succeeds for me, and all curl
tests are passing.
Do you have up-to-date dependencies? You can check with
phpsdk_deps -c
Also make sure that you have a recent VS 2017; I'm running
15.9.16.
------------------------------------------------------------------------
[2019-10-19 15:13:33] cst_zf at qq dot com
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 this bug report at https://bugs.php.net/bug.php?id=78696&edit=1
Thread (5 messages)