Bug #75165 [Com]: libzip package on windows.php.net doesn't include DLLs

From: Date: Thu, 07 Sep 2017 10:48:49 +0000
Subject: Bug #75165 [Com]: libzip package on windows.php.net doesn't include DLLs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210988@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75165&edit=1 ID: 75165 Comment by: dktapps at pmmp dot io Reported by: dktapps at pmmp dot io Summary: libzip package on windows.php.net doesn't include DLLs Status: Open Type: Bug Package: Compile Failure Operating System: Windows 10 PHP Version: 7.2.0RC1 Block user comment: N Private report: N New Comment: I missed --enable-zlib from the configure in the last comment. It compiles correctly with configure --disable-all --enable-cli --enable-zip --enable-zlib --with-bz2, however --with-bz2 was not previously necessary. Previous Comments: ------------------------------------------------------------------------ [2017-09-07 10:37:16] dktapps at pmmp dot io My build system deletes and recreates the environment for every build, so buildconf is always run and the dependencies are always freshly downloaded. buildconf has been run immediately after installing dependencies using the Windows SDK. My configure command is: configure --disable-all --enable-cli --enable-zip ------------------------------------------------------------------------ [2017-09-07 10:25:21] ab@php.net I see you link libzip_a.lib, so in that case please check you've rerun buildconf, too. Thanks. ------------------------------------------------------------------------ [2017-09-07 10:24:23] ab@php.net Thanks for the report. What is your configure command? The reason for no DLLs is because the 1.3.0's cmake scripts now produce projects for static build only. I'm not sure about the reasons and as ext/zip is compiled statically for the standard build, seemed ok for me. Lets check further. Thanks. ------------------------------------------------------------------------ [2017-09-06 18:55:36] dktapps at pmmp dot io Description: ------------ This libzip package http://windows.php.net/downloads/php-sdk/deps/vc15/x64/libzip-1.3.0-v15-x64.zip does not include the DLLs required to build PHP with the zip extension, resulting in a compile failure. Reverting to the archived 1.2.0 package here http://windows.php.net/downloads/php-sdk/deps/archives/vc15/x64/libzip-1.2.0-v15-x64.zip resolved the problem. Expected result: ---------------- Successful compilation with prebuilt libzip 1.3.0 Actual result: -------------- The following compile error: libzip_a.lib(zip_algorithm_bzip2.obj) : error LNK2019: unresolved external symbol BZ2_bzCompressInit referenced in function start libzip_a.lib(zip_algorithm_bzip2.obj) : error LNK2019: unresolved external symbol BZ2_bzCompress referenced in function process libzip_a.lib(zip_algorithm_bzip2.obj) : error LNK2019: unresolved external symbol BZ2_bzCompressEnd referenced in function end libzip_a.lib(zip_algorithm_bzip2.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressInit referenced in function start libzip_a.lib(zip_algorithm_bzip2.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompress referenced in function process libzip_a.lib(zip_algorithm_bzip2.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressEnd referenced in function end ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75165&edit=1

« previous php.bugs (#210988) next »