php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73228 error LNK2001: unresolved external symbol __imp__vsnprintf
Submitted: 2016-10-02 16:42 UTC Modified: 2016-10-05 18:43 UTC
From: ja-jo-ju at mail dot ru Assigned: ab (profile)
Status: Closed Package: Compile Failure
PHP Version: master-Git-2016-10-02 (Git) OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ja-jo-ju at mail dot ru
New email:
PHP Version: OS:

 

 [2016-10-02 16:42 UTC] ja-jo-ju at mail dot ru
Description:
------------
Building current PHP master branch (as well as PHP-7.1.0RC3 branch) gives error "MSVCRT.lib(vsnprintf.obj) : error LNK2001: unresolved external symbol __imp__vsnprintf". Maybe deps-master-vc14-x64.7z (I also tried to use deps-7.1-vc14-x64.7z to no avail) contains a lib that is not compatible with the latest MS VC++ (MS VS 2015 Update 3).

Expected result:
----------------
Successful compilation.

Actual result:
--------------
   Creating library php7.lib and object php7.exp
MSVCRT.lib(vsnprintf.obj) : error LNK2001: unresolved external symbol __imp__vsnprintf
php7.dll : fatal error LNK1120: 1 unresolved externals

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-04 16:54 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-10-04 16:54 UTC] ab@php.net
Thanks for the report. Some mistake could have happened, but there are no issues with the current snaps. Please be sure you're have no older libs on the lib path and post your configure line.

Thanks.
 [2016-10-04 20:46 UTC] ja-jo-ju at mail dot ru
-Status: Feedback +Status: Open
 [2016-10-04 20:46 UTC] ja-jo-ju at mail dot ru
Thank you for your reply.
My config is
configure.bat --enable-snapshot-build --enable-one-shot --with-mp=auto --disable-zts --enable-odbc --with-mysqli --with-bz2 --with-odbcver=0x0380 --enable-pdo --with-pdo-mysql=shared --with-pdo-sqlsrv=shared --enable-sqlsrv=shared --with-xsl --enable-soap --with-xmlrpc --with-sqlite3 --enable-mbstring --with-curl --with-gettext --with-imap --enable-intl --enable-mbregex --with-openssl --enable-shmop --with-snmp --enable-exif --enable-cli-win32 --enable-embed --enable-phpdbg --enable-phpdbgs --with-enchant --enable-fileinfo --enable-ftp --with-mhash --with-mcrypt --enable-sockets --with-pdo-sqlite=shared

I was able to successfully build PHP-master several weeks ago with previous version of deps.7z. When I downloaded the current version of deps.7z and an actual version of php-src-master.zip I replaced the old deps with the new one, so I can't test if the previous version of deps.7z still works fine.
So, I can't even figure out what change causes this compilation issue.
 [2016-10-05 15:40 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-10-05 15:40 UTC] ab@php.net
Thanks for sharing. Seems there is an issue with the libcurl build, when ext/curl is configured static. Please check whether overwriting with the contents of http://windows.php.net/downloads/php-sdk/deps/vc14/x64/libcurl-7.50.3-vc14-x64.zip fixes the build.

Thanks.
 [2016-10-05 16:43 UTC] ja-jo-ju at mail dot ru
-Status: Feedback +Status: Open
 [2016-10-05 16:43 UTC] ja-jo-ju at mail dot ru
Yes, overwriting the libcurl files with the contents of http://windows.php.net/downloads/php-sdk/deps/vc14/x64/libcurl-7.50.3-vc14-x64.zip does fix the build.
Thank you for your help.
 [2016-10-05 16:47 UTC] ja-jo-ju at mail dot ru
-Status: Open +Status: Closed
 [2016-10-05 16:47 UTC] ja-jo-ju at mail dot ru
Closed.
 [2016-10-05 18:43 UTC] ab@php.net
-Assigned To: +Assigned To: ab
 [2016-10-05 18:43 UTC] ab@php.net
Thanks for checking. We'll be updating the packages soon.

Cheers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 15:01:56 2024 UTC