Bug #74495 [NEW]: PHP failed to build due to link error LNK2001

From: Date: Tue, 25 Apr 2017 06:25:12 +0000
Subject: Bug #74495 [NEW]: PHP failed to build due to link error LNK2001
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208770@lists.php.net to get a copy of this message
From: seaheart_2006 at 126 dot com Operating system: Windows Server 2012 R2 PHP version: master-Git-2017-04-25 (Git) Package: Compile Failure Bug Type: Bug Bug description:PHP failed to build due to link error LNK2001 Description: ------------ Environment: Windiows Server 2012 R2 + VS2015 Update 3 I tried to build PHP with master branch latest revision on Windows.It failed to build due to link error LNK2001: unresolved external symbol inflateValidate. This issue can be reproduced form master branch revision 347b880 (https://github.com/php/php-src/commit/347b880ee4081140f488916a40ff6f2765a69e43). It failed when execute the following link command. Could you please take a look at this? Thanks! link.exe @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\PHP_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\BCMATH_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\CALENDAR_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\COM_DOTNET_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\CTYPE_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\DATE_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\FILTER_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\HASH_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\ICONV_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\JSON_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\MYSQLND_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\PCRE_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\READLINE_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\REFLECTION_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\SESSION_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\SPL_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\STANDARD_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\TOKENIZER_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\ZIP_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\ZLIB_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\LIBXML_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\DOM_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\PHAR_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\SIMPLEXML_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\XML_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\WDDX_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\XMLREADER_GLOBAL_OBJS.txt" @"D:\PHP7\phpdev\vc14\x86\src\Release_TS\resp\XMLWRITER_GLOBAL_OBJS.txt" OleAut32.Lib libiconv_a.lib WS2_32.Lib edit_a.lib zlib_a.lib libxml2_a_dll.lib libiconv_a.lib kernel32.lib ole32.lib user32.lib advapi32.lib shell32.lib ws2_32.lib Dnsapi.lib psapi.lib bcrypt.lib D:\PHP7\phpdev\vc14\x86\src\Release_TS\php7ts.dll.res /out:D:\PHP7\phpdev\vc14\x86\src\Release_TS\php7ts.dll /dll /nodefaultlib:libcmt /def:D:\PHP7\phpdev\vc14\x86\src\Release_TS\php7ts.dll.def /nologo /GUARD:CF /libpath:"D:\PHP7\phpdev\vc14\x86\deps\lib" /NXCOMPAT /DYNAMICBASE /LTCG:INCREMENTAL /libpath:"..\deps\lib" /libpath:"..\deps\lib" /libpath:"..\deps\lib" /libpath:"..\deps\lib" /libpath:"..\deps\lib" Expected result: ---------------- link sccessfully Actual result: -------------- link failed with the following error: php7ts.dll.def : error LNK2001: unresolved external symbol inflateValidate .\php7ts.lib : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe"' : return code '0x460' -- Edit bug report at https://bugs.php.net/bug.php?id=74495&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74495&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74495&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74495&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74495&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74495&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74495&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74495&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74495&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74495&r=support Expected behavior: https://bugs.php.net/fix.php?id=74495&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74495&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74495&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74495&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74495&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74495&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74495&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74495&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74495&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74495&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74495&r=mysqlcfg

« previous php.bugs (#208770) next »