Bug #73228 [Opn->Fbk]: error LNK2001: unresolved external symbol __imp__vsnprintf
Edit report at https://bugs.php.net/bug.php?id=73228&edit=1
ID: 73228
Updated by: ab@php.net
Reported by: ja-jo-ju at mail dot ru
Summary: error LNK2001: unresolved external symbol
__imp__vsnprintf
-Status: Open
+Status: Feedback
Type: Bug
Package: Compile Failure
Operating System: Windows
PHP Version: master-Git-2016-10-02 (Git)
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-10-04 20:46:20] 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-04 16:54:15] 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-02 16:42:49] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73228&edit=1
Thread (7 messages)