php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78696 Link fail with curl
Submitted: 2019-10-19 15:13 UTC Modified: 2020-08-30 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: cst_zf at qq dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 7.2.23 OS: Win10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cst_zf at qq dot com
New email:
PHP Version: OS:

 

 [2019-10-19 15:13 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-19 17:10 UTC] 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-26 15:39 UTC] 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.
 [2020-08-18 16:27 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-08-18 16:27 UTC] 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>
 [2020-08-30 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC