php / php-src

The PHP Interpreter
https://www.php.net
Other
37.89k stars 7.72k forks source link

/ext/hash/php_hash_xxhash.h:24:9: error: unknown type name 'XXH32_state_t' #9580

Open nephaste opened 1 year ago

nephaste commented 1 year ago

Description

hi team,

trying to cross compile php 8.2.0 rc2 for qnap NAS with Apache

GCC 12.0 on linux x64

i jump into an error on make concerning xxhash ... i have no clue how to fix it (can it be link to openssl 3.0.5, first time i use it in my compilation)

thanks a lot for your help

2022-09-20_11-48-24

/bin/bash /build/php-src-php-8.2.0RC2/libtool --silent --preserve-dup-deps --tag CC --mode=compile x86_64-QNAP_FW501_GCC12-linux-gnu-gcc -Iext/hash/ -I/build/p ![2022-09-20_11-48-24](https://user-images.githubusercontent.com/3392684/191228227-f3f2627f-cb0a-42ec-8693-1ed3b4e99622.jpg) hp-src-php-8.2.0RC2/ext/hash/ -I/build/php-src-php-8.2.0RC2/include -I/build/php-src-php-8.2.0RC2/main -I/build/php-src-php-8.2.0RC2 -I/opt/Apache82/include/valgrind -I/build/php-src-php-8.2.0RC2/ext/date/lib -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include -I/opt/Apache82/include/enchant-2 -I/opt/Apache82/include/glib-2.0 -I/opt/Apache82/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/Apache82/include/freetype2 -I/opt/Apache82/include/libpng16 -I/opt/Apache82/include/webp -I/include -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl/mbfl -I/opt/Apache82/include/pspell -I/build/php-src-php-8.2.0RC2/TSRM -I/build/php-src-php-8.2.0RC2/Zend -O2 -fno-inline -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -D_GNU_SOURCE -D_REENTRANT -pthread -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -fvisibility=hidden -pthread -Wimplicit-fallthrough=1 -DZTS -DZEND_SIGNALS -Wno-implicit-fallthrough -I/build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/build/php-src-php-8.2.0RC2/ext/hash/xxhash -c /build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc/KeccakHash.c -o ext/hash/sha3/generic64lc/KeccakHash.lo -MMD -MF ext/hash/sha3/generic64lc/KeccakHash.dep -MT ext/hash/sha3/generic64lc/KeccakHash.lo /bin/bash /build/php-src-php-8.2.0RC2/libtool --silent --preserve-dup-deps --tag CC --mode=compile x86_64-QNAP_FW501_GCC12-linux-gnu-gcc -Iext/hash/ -I/build/php-src-php-8.2.0RC2/ext/hash/ -I/build/php-src-php-8.2.0RC2/include -I/build/php-src-php-8.2.0RC2/main -I/build/php-src-php-8.2.0RC2 -I/opt/Apache82/include/valgrind -I/build/php-src-php-8.2.0RC2/ext/date/lib -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include -I/opt/Apache82/include/enchant-2 -I/opt/Apache82/include/glib-2.0 -I/opt/Apache82/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/Apache82/include/freetype2 -I/opt/Apache82/include/libpng16 -I/opt/Apache82/include/webp -I/include -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl/mbfl -I/opt/Apache82/include/pspell -I/build/php-src-php-8.2.0RC2/TSRM -I/build/php-src-php-8.2.0RC2/Zend -O2 -fno-inline -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -D_GNU_SOURCE -D_REENTRANT -pthread -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -fvisibility=hidden -pthread -Wimplicit-fallthrough=1 -DZTS -DZEND_SIGNALS -Wno-implicit-fallthrough -I/build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/build/php-src-php-8.2.0RC2/ext/hash/xxhash -c /build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc/KeccakSponge.c -o ext/hash/sha3/generic64lc/KeccakSponge.lo -MMD -MF ext/hash/sha3/generic64lc/KeccakSponge.dep -MT ext/hash/sha3/generic64lc/KeccakSponge.lo /bin/bash /build/php-src-php-8.2.0RC2/libtool --silent --preserve-dup-deps --tag CC --mode=compile x86_64-QNAP_FW501_GCC12-linux-gnu-gcc -Iext/hash/ -I/build/php-src-php-8.2.0RC2/ext/hash/ -I/build/php-src-php-8.2.0RC2/include -I/build/php-src-php-8.2.0RC2/main -I/build/php-src-php-8.2.0RC2 -I/opt/Apache82/include/valgrind -I/build/php-src-php-8.2.0RC2/ext/date/lib -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include -I/opt/Apache82/include/enchant-2 -I/opt/Apache82/include/glib-2.0 -I/opt/Apache82/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/Apache82/include/freetype2 -I/opt/Apache82/include/libpng16 -I/opt/Apache82/include/webp -I/include -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl/mbfl -I/opt/Apache82/include/pspell -I/build/php-src-php-8.2.0RC2/TSRM -I/build/php-src-php-8.2.0RC2/Zend -O2 -fno-inline -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -D_GNU_SOURCE -D_REENTRANT -pthread -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -fvisibility=hidden -pthread -Wimplicit-fallthrough=1 -DZTS -DZEND_SIGNALS -Wno-implicit-fallthrough -I/build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/build/php-src-php-8.2.0RC2/ext/hash/xxhash -c /build/php-src-php-8.2.0RC2/ext/hash/hash_sha3.c -o ext/hash/hash_sha3.lo -MMD -MF ext/hash/hash_sha3.dep -MT ext/hash/hash_sha3.lo /bin/bash /build/php-src-php-8.2.0RC2/libtool --silent --preserve-dup-deps --tag CC --mode=compile x86_64-QNAP_FW501_GCC12-linux-gnu-gcc -Iext/hash/ -I/build/php-src-php-8.2.0RC2/ext/hash/ -I/build/php-src-php-8.2.0RC2/include -I/build/php-src-php-8.2.0RC2/main -I/build/php-src-php-8.2.0RC2 -I/opt/Apache82/include/valgrind -I/build/php-src-php-8.2.0RC2/ext/date/lib -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include -I/opt/Apache82/include/enchant-2 -I/opt/Apache82/include/glib-2.0 -I/opt/Apache82/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/Apache82/include/freetype2 -I/opt/Apache82/include/libpng16 -I/opt/Apache82/include/webp -I/include -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl/mbfl -I/opt/Apache82/include/pspell -I/build/php-src-php-8.2.0RC2/TSRM -I/build/php-src-php-8.2.0RC2/Zend -O2 -fno-inline -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -D_GNU_SOURCE -D_REENTRANT -pthread -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -fvisibility=hidden -pthread -Wimplicit-fallthrough=1 -DZTS -DZEND_SIGNALS -Wno-implicit-fallthrough -I/build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/build/php-src-php-8.2.0RC2/ext/hash/xxhash -c /build/php-src-php-8.2.0RC2/ext/hash/murmur/PMurHash.c -o ext/hash/murmur/PMurHash.lo -MMD -MF ext/hash/murmur/PMurHash.dep -MT ext/hash/murmur/PMurHash.lo /bin/bash /build/php-src-php-8.2.0RC2/libtool --silent --preserve-dup-deps --tag CC --mode=compile x86_64-QNAP_FW501_GCC12-linux-gnu-gcc -Iext/hash/ -I/build/php-src-php-8.2.0RC2/ext/hash/ -I/build/php-src-php-8.2.0RC2/include -I/build/php-src-php-8.2.0RC2/main -I/build/php-src-php-8.2.0RC2 -I/opt/Apache82/include/valgrind -I/build/php-src-php-8.2.0RC2/ext/date/lib -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include -I/opt/Apache82/include/enchant-2 -I/opt/Apache82/include/glib-2.0 -I/opt/Apache82/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/Apache82/include/freetype2 -I/opt/Apache82/include/libpng16 -I/opt/Apache82/include/webp -I/include -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl/mbfl -I/opt/Apache82/include/pspell -I/build/php-src-php-8.2.0RC2/TSRM -I/build/php-src-php-8.2.0RC2/Zend -O2 -fno-inline -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -D_GNU_SOURCE -D_REENTRANT -pthread -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -fvisibility=hidden -pthread -Wimplicit-fallthrough=1 -DZTS -DZEND_SIGNALS -Wno-implicit-fallthrough -I/build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/build/php-src-php-8.2.0RC2/ext/hash/xxhash -c /build/php-src-php-8.2.0RC2/ext/hash/murmur/PMurHash128.c -o ext/hash/murmur/PMurHash128.lo -MMD -MF ext/hash/murmur/PMurHash128.dep -MT ext/hash/murmur/PMurHash128.lo /bin/bash /build/php-src-php-8.2.0RC2/libtool --silent --preserve-dup-deps --tag CC --mode=compile x86_64-QNAP_FW501_GCC12-linux-gnu-gcc -Iext/hash/ -I/build/php-src-php-8.2.0RC2/ext/hash/ -I/build/php-src-php-8.2.0RC2/include -I/build/php-src-php-8.2.0RC2/main -I/build/php-src-php-8.2.0RC2 -I/opt/Apache82/include/valgrind -I/build/php-src-php-8.2.0RC2/ext/date/lib -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include -I/opt/Apache82/include/enchant-2 -I/opt/Apache82/include/glib-2.0 -I/opt/Apache82/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/Apache82/include/freetype2 -I/opt/Apache82/include/libpng16 -I/opt/Apache82/include/webp -I/include -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl/mbfl -I/opt/Apache82/include/pspell -I/build/php-src-php-8.2.0RC2/TSRM -I/build/php-src-php-8.2.0RC2/Zend -O2 -fno-inline -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -D_GNU_SOURCE -D_REENTRANT -pthread -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -fvisibility=hidden -pthread -Wimplicit-fallthrough=1 -DZTS -DZEND_SIGNALS -Wno-implicit-fallthrough -I/build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/build/php-src-php-8.2.0RC2/ext/hash/xxhash -c /build/php-src-php-8.2.0RC2/ext/hash/hash_murmur.c -o ext/hash/hash_murmur.lo -MMD -MF ext/hash/hash_murmur.dep -MT ext/hash/hash_murmur.lo /bin/bash /build/php-src-php-8.2.0RC2/libtool --silent --preserve-dup-deps --tag CC --mode=compile x86_64-QNAP_FW501_GCC12-linux-gnu-gcc -Iext/hash/ -I/build/php-src-php-8.2.0RC2/ext/hash/ -I/build/php-src-php-8.2.0RC2/include -I/build/php-src-php-8.2.0RC2/main -I/build/php-src-php-8.2.0RC2 -I/opt/Apache82/include/valgrind -I/build/php-src-php-8.2.0RC2/ext/date/lib -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include -I/opt/Apache82/include/enchant-2 -I/opt/Apache82/include/glib-2.0 -I/opt/Apache82/lib/x86_64-linux-gnu/glib-2.0/include -I/opt/Apache82/include/freetype2 -I/opt/Apache82/include/libpng16 -I/opt/Apache82/include/webp -I/include -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl -I/build/php-src-php-8.2.0RC2/ext/mbstring/libmbfl/mbfl -I/opt/Apache82/include/pspell -I/build/php-src-php-8.2.0RC2/TSRM -I/build/php-src-php-8.2.0RC2/Zend -O2 -fno-inline -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -D_GNU_SOURCE -D_REENTRANT -pthread -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -O2 -I/opt/Apache82/include -I/opt/Apache82/include/libxml2 -I/opt/Apache82/include/atomic_ops -I/opt/Apache82/include/ncursesw -I/opt/Apache82/include/readline -I/opt/Apache82/include/libgds -I/opt/Apache82/include/enchant-2 -fvisibility=hidden -pthread -Wimplicit-fallthrough=1 -DZTS -DZEND_SIGNALS -Wno-implicit-fallthrough -I/build/php-src-php-8.2.0RC2/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I/build/php-src-php-8.2.0RC2/ext/hash/xxhash -c /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c -o ext/hash/hash_xxhash.lo -MMD -MF ext/hash/hash_xxhash.dep -MT ext/hash/hash_xxhash.lo In file included from /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:18: /build/php-src-php-8.2.0RC2/ext/hash/php_hash_xxhash.h:24:9: error: unknown type name 'XXH32_state_t' 24 | XXH32_state_t s; | ^~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/php_hash_xxhash.h:34:9: error: unknown type name 'XXH64_state_t' 34 | XXH64_state_t s; | ^~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/php_hash_xxhash.h:47:9: error: unknown type name 'XXH3_state_t' 47 | XXH3_state_t s; | ^~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH32Init': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:50:25: warning: implicit declaration of function 'XXH32_reset'; did you mean 'XXH32_result'? [-Wimplicit-function-declaration] 50 | XXH32_reset(&ctx->s, (XXH32_hash_t)Z_LVAL_P(seed)); | ^~~~~~~~~~~ | XXH32_result /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:50:47: error: 'XXH32_hash_t' undeclared (first use in this function); did you mean 'XXH32_result'? 50 | XXH32_reset(&ctx->s, (XXH32_hash_t)Z_LVAL_P(seed)); | ^~~~~~~~~~~~ | XXH32_result /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:50:47: note: each undeclared identifier is reported only once for each function it appears in /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH32Final': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:66:9: warning: implicit declaration of function 'XXH32_canonicalFromHash' [-Wimplicit-function-declaration] 66 | XXH32_canonicalFromHash((XXH32_canonical_t*)digest, XXH32_digest(&ctx->s)); | ^~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:66:34: error: 'XXH32_canonical_t' undeclared (first use in this function) 66 | XXH32_canonicalFromHash((XXH32_canonical_t*)digest, XXH32_digest(&ctx->s)); | ^~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:66:52: error: expected expression before ')' token 66 | XXH32_canonicalFromHash((XXH32_canonical_t*)digest, XXH32_digest(&ctx->s)); | ^ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'php_hash_xxh32_unserialize': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:82:26: error: request for member 'memsize' in something not a structure or union 82 | && ctx->s.memsize < 16) { | ^ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH64Init': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:114:25: warning: implicit declaration of function 'XXH64_reset'; did you mean 'XXH32_result'? [-Wimplicit-function-declaration] 114 | XXH64_reset(&ctx->s, (XXH64_hash_t)Z_LVAL_P(seed)); | ^~~~~~~~~~~ | XXH32_result /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:114:47: error: 'XXH64_hash_t' undeclared (first use in this function) 114 | XXH64_reset(&ctx->s, (XXH64_hash_t)Z_LVAL_P(seed)); | ^~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH64Update': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:125:9: warning: implicit declaration of function 'XXH64_update'; did you mean 'XXH32_update'? [-Wimplicit-function-declaration] 125 | XXH64_update(&ctx->s, in, len); | ^~~~~~~~~~~~ | XXH32_update /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH64Final': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:130:9: warning: implicit declaration of function 'XXH64_canonicalFromHash' [-Wimplicit-function-declaration] 130 | XXH64_canonicalFromHash((XXH64_canonical_t*)digest, XXH64_digest(&ctx->s)); | ^~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:130:34: error: 'XXH64_canonical_t' undeclared (first use in this function) 130 | XXH64_canonicalFromHash((XXH64_canonical_t*)digest, XXH64_digest(&ctx->s)); | ^~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:130:52: error: expected expression before ')' token 130 | XXH64_canonicalFromHash((XXH64_canonical_t*)digest, XXH64_digest(&ctx->s)); | ^ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: At top level: /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:154:56: error: unknown type name 'XXH3_state_t' 154 | typedef XXH_errorcode (*xxh3_reset_with_secret_func_t)(XXH3_state_t*, const void*, size_t); | ^~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:155:54: error: unknown type name 'XXH3_state_t' 155 | typedef XXH_errorcode (*xxh3_reset_with_seed_func_t)(XXH3_state_t*, XXH64_hash_t); | ^~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:155:69: error: unknown type name 'XXH64_hash_t' 155 | typedef XXH_errorcode (*xxh3_reset_with_seed_func_t)(XXH3_state_t*, XXH64_hash_t); | ^~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:158:17: error: unknown type name 'xxh3_reset_with_seed_func_t' 158 | xxh3_reset_with_seed_func_t func_init_seed, xxh3_reset_with_secret_func_t func_init_secret, const char* algo_name) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:158:61: error: unknown type name 'xxh3_reset_with_secret_func_t' 158 | xxh3_reset_with_seed_func_t func_init_seed, xxh3_reset_with_secret_func_t func_init_secret, const char* algo_name) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH3_64_Init': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:198:9: warning: implicit declaration of function '_PHP_XXH3_Init'; did you mean 'PHP_XXH32Init'? [-Wimplicit-function-declaration] 198 | _PHP_XXH3_Init(ctx, args, XXH3_64bits_reset_withSeed, XXH3_64bits_reset_withSecret, "xxh3"); | ^~~~~~~~~~~~~~ | PHP_XXH32Init /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:198:35: error: 'XXH3_64bits_reset_withSeed' undeclared (first use in this function) 198 | _PHP_XXH3_Init(ctx, args, XXH3_64bits_reset_withSeed, XXH3_64bits_reset_withSecret, "xxh3"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:198:63: error: 'XXH3_64bits_reset_withSecret' undeclared (first use in this function) 198 | _PHP_XXH3_Init(ctx, args, XXH3_64bits_reset_withSeed, XXH3_64bits_reset_withSecret, "xxh3"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH3_64_Update': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:203:9: warning: implicit declaration of function 'XXH3_64bits_update' [-Wimplicit-function-declaration] 203 | XXH3_64bits_update(&ctx->s, in, len); | ^~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH3_64_Final': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:208:34: error: 'XXH64_canonical_t' undeclared (first use in this function) 208 | XXH64_canonicalFromHash((XXH64_canonical_t*)digest, XXH3_64bits_digest(&ctx->s)); | ^~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:208:52: error: expected expression before ')' token 208 | XXH64_canonicalFromHash((XXH64_canonical_t*)digest, XXH3_64bits_digest(&ctx->s)); | ^ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'php_hash_xxh64_unserialize': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:224:26: error: request for member 'memsize' in something not a structure or union 224 | && ctx->s.memsize < 32) { | ^ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH3_128_Init': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:248:35: error: 'XXH3_128bits_reset_withSeed' undeclared (first use in this function) 248 | _PHP_XXH3_Init(ctx, args, XXH3_128bits_reset_withSeed, XXH3_128bits_reset_withSecret, "xxh128"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:248:64: error: 'XXH3_128bits_reset_withSecret' undeclared (first use in this function) 248 | _PHP_XXH3_Init(ctx, args, XXH3_128bits_reset_withSeed, XXH3_128bits_reset_withSecret, "xxh128"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH3_128_Update': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:253:9: warning: implicit declaration of function 'XXH3_128bits_update'; did you mean 'XXH32_update'? [-Wimplicit-function-declaration] 253 | XXH3_128bits_update(&ctx->s, in, len); | ^~~~~~~~~~~~~~~~~~~ | XXH32_update /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'PHP_XXH3_128_Final': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:258:9: warning: implicit declaration of function 'XXH128_canonicalFromHash' [-Wimplicit-function-declaration] 258 | XXH128_canonicalFromHash((XXH128_canonical_t*)digest, XXH3_128bits_digest(&ctx->s)); | ^~~~~~~~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:258:35: error: 'XXH128_canonical_t' undeclared (first use in this function) 258 | XXH128_canonicalFromHash((XXH128_canonical_t*)digest, XXH3_128bits_digest(&ctx->s)); | ^~~~~~~~~~~~~~~~~~ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:258:54: error: expected expression before ')' token 258 | XXH128_canonicalFromHash((XXH128_canonical_t*)digest, XXH3_128bits_digest(&ctx->s)); | ^ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'php_hash_xxh32_unserialize': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:87:1: warning: control reaches end of non-void function [-Wreturn-type] 87 | } | ^ /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c: In function 'php_hash_xxh64_unserialize': /build/php-src-php-8.2.0RC2/ext/hash/hash_xxhash.c:229:1: warning: control reaches end of non-void function [-Wreturn-type] 229 | } | ^ make: *** [Makefile:1262: ext/hash/hash_xxhash.lo] Error 1 make: *** Waiting for unfinished jobs.... config.log

PHP Version

PHP 8.2 RC2

Operating System

Ubuntu 22.04 (but cross compiling for use on old libc 2.17)

nephaste commented 1 year ago

cross compiling xxhash 8.1 in my PREFIX (/opt/Apache82) seems have fix the issue...