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

From: Date: Tue, 19 May 2020 10:46:29 +0000
Subject: Bug #79612 [NEW]: PHP failed to build with link error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227082@lists.php.net to get a copy of this message
From:             1998zhangyi at gmail dot com
Operating system: windows
PHP version:      7.4.6
Package:          *Compile Issues
Bug Type:         Bug
Bug description:PHP failed to build with link error

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 bug report at https://bugs.php.net/bug.php?id=79612&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79612&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79612&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79612&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79612&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79612&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79612&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79612&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79612&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79612&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79612&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79612&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79612&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79612&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79612&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79612&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79612&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79612&r=mysqlcfg


Thread (4 messages)

« previous php.bugs (#227082) next »