Open eclipseorc opened 9 months ago
8.1正常编译通过
Hello
i try now add to my Debian 12 YAR extansion to PHP and get same error:
libtool: compile: cc -I. -I/tmp/pear/temp/yar -I/tmp/pear/temp/pear-build-roote3ZMjs/yar-2.3.2/include -I/tmp/pear/temp/pear-build-roote3ZMjs/yar-2.3.2/main -I/tmp/pear/temp/yar -I/usr/include/php/20220829 -I/usr/include/php/20220829/main -I/usr/include/php/20220829/TSRM -I/usr/include/php/20220829/Zend -I/usr/include/php/20220829/ext -I/usr/include/php/20220829/ext/date/lib -I/usr/include/x86_64-linux-gnu -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/yar/yar_request.c -MMD -MF yar_request.dep -MT yar_request.lo -fPIC -DPIC -o .libs/yar_request.o /tmp/pear/temp/yar/yar_request.c: In function 'php_yar_request_instance': /tmp/pear/temp/yar/yar_request.c:37:14: warning: implicit declaration of function 'BG'; did you mean 'OG'? [-Wimplicit-function-declaration] 37 | if (!BG(mt_rand_is_seeded)) { | ^~ | OG /tmp/pear/temp/yar/yar_request.c:37:17: error: 'mt_rand_is_seeded' undeclared (first use in this function) 37 | if (!BG(mt_rand_is_seeded)) { | ^~~~~~~~~~~~~~~~~ /tmp/pear/temp/yar/yar_request.c:37:17: note: each undeclared identifier is reported only once for each function it appears in make: *** [Makefile:219: yar_request.lo] Błąd 1 ERROR:
make' failed
`
/root/yar-2.3.2/yar_request.c:37:10: error: ‘mt_rand_is_seeded’ undeclared (first use in this function) 8.2和8.3报同样的错误,是否需要更新版本了?