Bug #78696 [Com]: Link fail with curl

From: Date: Sat, 26 Oct 2019 15:39:42 +0000
Subject: Bug #78696 [Com]: Link fail with curl
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223469@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78696&edit=1

 ID:                 78696
 Comment by:         cst_zf at qq dot com
 Reported by:        cst_zf at qq dot com
 Summary:            Link fail with curl
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Win10
 PHP Version:        7.2.23
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#223469) next »