Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用php8.2 和 8.3时,编译报错 #179

Open
eclipseorc opened this issue Jan 26, 2024 · 2 comments
Open

使用php8.2 和 8.3时,编译报错 #179

eclipseorc opened this issue Jan 26, 2024 · 2 comments

Comments

@eclipseorc
Copy link

/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报同样的错误,是否需要更新版本了?

@eclipseorc
Copy link
Author

8.1正常编译通过

@takenek
Copy link

takenek commented Feb 18, 2024

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

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants