Bug #79612 [Com]: PHP failed to build with link error

From: Date: Mon, 25 May 2020 08:01:08 +0000
Subject: Bug #79612 [Com]: PHP failed to build with link error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227147@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79612&edit=1 ID: 79612 Comment by: 1998zhangyi at gmail dot com Reported by: 1998zhangyi at gmail dot com Summary: PHP failed to build with link error Status: Feedback Type: Bug Package: *Compile Issues Operating System: windows PHP Version: 7.4.6 Assigned To: cmb Block user comment: N Private report: N New Comment: Thank you very much, I try the latest build steps, now PHP run successfully on MSVC. Previous Comments: ------------------------------------------------------------------------ [2020-05-19 11:55:13] cmb@php.net I think you just need to update the dependencies: phpsdk_deps -u ------------------------------------------------------------------------ [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

« previous php.bugs (#227147) next »