Bug #74567 [Com]: nmake error

From: Date: Thu, 11 May 2017 02:31:07 +0000
Subject: Bug #74567 [Com]: nmake error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209051@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74567&edit=1 ID: 74567 Comment by: jiaxianglu at gmail dot com Reported by: jiaxianglu at gmail dot com Summary: nmake error Status: Closed Type: Bug Package: Compile Failure Operating System: windows 7 PHP Version: 7.1.4 Assigned To: ab Block user comment: N Private report: N New Comment: Thank you for your recommend. I think I will switch to 7.1.5. PS: when the 7.1.5 release? :) Previous Comments: ------------------------------------------------------------------------ [2017-05-10 14:36:48] ab@php.net Thanks for the report. Libpng was upgraded and requires some symbols from ext/zlib which was missing. You have several options to fix this, either of - apply revision f3c4e2f5bf216aa0942d9a99836c77dbc46a7cd5 to 7.1.4 and do a clean rebuild - downgrade libpng by overwriting deps locally with http://windows.php.net/downloads/php-sdk/deps/vc14/x64/libpng-1.6.21-vc14-x64.zip or lower - fetch 7.1.5 which is going to be released soon I'd recommend you to keep the current deps, as that's the most secure option, and either to apply the symbol export patch to 7.1.4 or to switch to 7.1.5 as soon as it's released. Thanks. ------------------------------------------------------------------------ [2017-05-10 12:15:02] jiaxianglu at gmail dot com Description: ------------ libpng_a.lib(png.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能正在创建库 C:\php-sdk\phpdev\vc14\x64\php-src-php-7.1.4\x64\Release_TS\php_gd2.lib 和对象 C:\php-sdk\phpdev\vc14\x64\php-src-php-7.1.4\x64\Release_TS\php_gd LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library libpng_a.lib(pngrutil.obj) : error LNK2001: 无法解析的外部符号 inflateReset2 C:\php-sdk\phpdev\vc14\x64\php-src-php-7.1.4\x64\Release_TS\php_gd2.dll : fatal error LNK1120: 1 个无法解析的外部命令 NMAKE : fatal error U1077: “"E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe"”: 返回代码“0x460” Stop. If I use "--without-gd" it will be compiled success. enveriment: sdk:php-sdk-binary-tools-php-sdk-2.0.3 deps:deps-7.1-vc14-x64.7z php:php-src-php-7.1.4 vs:vs2015 Expected result: ---------------- success Actual result: -------------- libpng_a.lib(png.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能正在创建库 C:\php-sdk\phpdev\vc14\x64\php-src-php-7.1.4\x64\Release_TS\php_gd2.lib 和对象 C:\php-sdk\phpdev\vc14\x64\php-src-php-7.1.4\x64\Release_TS\php_gd LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library libpng_a.lib(pngrutil.obj) : error LNK2001: 无法解析的外部符号 inflateReset2 C:\php-sdk\phpdev\vc14\x64\php-src-php-7.1.4\x64\Release_TS\php_gd2.dll : fatal error LNK1120: 1 个无法解析的外部命令 NMAKE : fatal error U1077: “"E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe"”: 返回代码“0x460” Stop. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74567&edit=1

« previous php.bugs (#209051) next »