php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74567 nmake error
Submitted: 2017-05-10 12:15 UTC Modified: 2017-05-10 14:36 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: jiaxianglu at gmail dot com Assigned: ab (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.1.4 OS: windows 7
Private report: No CVE-ID: None
 [2017-05-10 12:15 UTC] 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.

Patches

add-nmake-log (last revision 2017-05-10 12:18 UTC by jiaxianglu at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-05-10 14:36 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2017-05-10 14:36 UTC] 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-11 02:31 UTC] jiaxianglu at gmail dot com
Thank you for your recommend.
I think I will switch to 7.1.5.
PS: when the 7.1.5 release? :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC