Bug #78696 [NEW]: Link fail with curl

From: Date: Sat, 19 Oct 2019 15:13:33 +0000
Subject: Bug #78696 [NEW]: Link fail with curl
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223299@lists.php.net to get a copy of this message
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)

« previous php.bugs (#223299) next »