strawbrary/php-sha3

Building for Windows?

marxo opened this issue · 2 comments

Is it possible to compile this on Windows?

I know that this is an unpopular thing to ask, but I have a PHP 5.4 + Apache setup.

I'm currently getting this error while trying to compile on Windows.

php_blake2.c
ext\blake2\php_blake2.c(52) : error C2143: syntax error : missing ';' before 'ty
pe'
ext\blake2\php_blake2.c(54) : error C2143: syntax error : missing ';' before 'ty
pe'
ext\blake2\php_blake2.c(75) : error C2065: 'result' : undeclared identifier
ext\blake2\php_blake2.c(82) : error C2065: 'hashOutput' : undeclared identifier
ext\blake2\php_blake2.c(82) : warning C4047: 'initializing' : 'const char *' dif
fers in levels of indirection from 'int'
ext\blake2\php_blake2.c(84) : error C2057: expected constant expression
ext\blake2\php_blake2.c(84) : error C2466: cannot allocate an array of constant
size 0
ext\blake2\php_blake2.c(84) : error C2133: 'hex' : unknown size
ext\blake2\php_blake2.c(85) : error C2065: 'hashOutput' : undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin
\cl.exe"' : return code '0x2'
Stop.

It looks like you put this in the wrong repo. This is for the sha3 extension. If you're still having the issue go ahead and open an issue in php-blake2 and please add the steps with how you're building on Windows as I have not tried this before and am not familiar with the build tools for Windows. Thanks.