Bug #79612 [Opn->Fbk]: PHP failed to build with link error
Edit report at https://bugs.php.net/bug.php?id=79612&edit=1
ID: 79612
Updated by: cmb@php.net
Reported by: 1998zhangyi at gmail dot com
Summary: PHP failed to build with link error
-Status: Open
+Status: Feedback
Type: Bug
Package: *Compile Issues
Operating System: windows
PHP Version: 7.4.6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I think you just need to update the dependencies:
phpsdk_deps -u
Previous Comments:
------------------------------------------------------------------------
[2020-05-19 10:46:28] 1998zhangyi at gmail dot com
Description:
------------
Environment: Windiows Server 2016 + VS2019 latest version
I tried to build PHP with master branch latest revision on Windows.It failed to build due to link
error LNK2001: unresolved external symbol zip_register_progress_callback_with_state. This issue can
be reproduced form master branch revision
33b5c02(https://github.com/php/php-src/commit/33b5c026aa0b3f4a88a1be599463138cb79ebb5d).
error:
nmake
Microsoft (R) Program Maintenance Utility Version 14.27.28909.96
Copyright (C) Microsoft Corporation. All rights reserved.
Recreating build dirs
Recreating build dirs
libiconv_a.lib(iconv1.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with
/LTCG; add /LTCG to the link command line to improve linker performance
Creating library F:\gitP\php\phpdev\vc14\x64\src\x64\Release_TS\php8ts.lib and object
F:\gitP\php\phpdev\vc14\x64\src\x64\Release_TS\php8ts.exp
php_zip.obj : error LNK2001: unresolved external symbol zip_register_progress_callback_with_state
php_zip.obj : error LNK2001: unresolved external symbol zip_libzip_version
F:\gitP\php\phpdev\vc14\x64\src\x64\Release_TS\php8ts.dll : fatal error LNK1120: 2 unresolved
externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\link.exe"' : return code
'0x460'
Stop.
Expected result:
----------------
PHP should build successfully.
Actual result:
--------------
PHP failed to build
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79612&edit=1
Thread (4 messages)