kjdev/php-ext-zopfli

compile failure when zlib is disabled

dktapps opened this issue · 1 comments

Compiling on Windows with PHP 7.2.9-dev:

   Creating library C:\php-sdk\php\vc15\x64\php-src\x64\Release_TS\php7ts.lib and object C:\php-sdk\php\vc15\x64\php-src\x64\Release_TS\php7ts.exp
        rc /nologo  /I . /I main /I Zend /I TSRM /I ext /n /fo C:\php-sdk\php\vc15\x64\php-src\x64\Release_TS\php_zopfli.dll.res /d FILE_DESCRIPTION="\"php_zopfli.dll\"" /d FILE_NAME="\"php_zopfli.dll\"" /d URL="\"http://www.php.net\"" /d INTERNAL_NAME="\"ZOPFLI extension\"" /d THANKS_GUYS="\"\"" win32\build\template.rc
   Creating library C:\php-sdk\php\vc15\x64\php-src\x64\Release_TS\php_zopfli.lib and object C:\php-sdk\php\vc15\x64\php-src\x64\Release_TS\php_zopfli.exp
zopfli.obj : error LNK2019: unresolved external symbol MAKE_STD_ZVAL referenced in function zif_zopfli_decode
C:\php-sdk\php\vc15\x64\php-src\x64\Release_TS\php_zopfli.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe"' : return code '0x460'
Stop.

There are a bunch of other issues with building on Windows, but this one will take effect no matter what platform you build on.