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

./configure 异常 #8

Open
jonedoo opened this issue Jan 30, 2024 · 4 comments
Open

./configure 异常 #8

jonedoo opened this issue Jan 30, 2024 · 4 comments

Comments

@jonedoo
Copy link

jonedoo commented Jan 30, 2024

checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local/php-7.4
checking for PHP includes... -I/usr/local/php-7.4/include/php -I/usr/local/php-7.4/include/php/main -I/usr/local/php-7.4/include/php/TSRM -I/usr/local/php-7.4/include/php/Zend -I/usr/local/php-7.4/include/php/ext -I/usr/local/php-7.4/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php-7.4/lib/php/extensions/no-debug-non-zts-20190902
checking for PHP installed headers prefix... /usr/local/php-7.4/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable gmssl support... yes, shared
checking for gmssl_version_str in -lgmssl... no
configure: error: FEATURE not supported by your gmssl library.

@lilianjin
Copy link

Your install gmssl library

MACOS

brew install gmssl

@gsm2009
Copy link

gsm2009 commented May 21, 2024

/bin/sh /root/GmSSL-PHP/libtool --mode=compile cc -I. -I/root/GmSSL-PHP -DPHP_ATOM_INC -I/root/GmSSL-PHP/include -I/root/GmSSL-PHP/main -I/root/GmSSL-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/GmSSL-PHP/gmssl.c -o gmssl.lo
libtool: compile: cc -I. -I/root/GmSSL-PHP -DPHP_ATOM_INC -I/root/GmSSL-PHP/include -I/root/GmSSL-PHP/main -I/root/GmSSL-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/GmSSL-PHP/gmssl.c -fPIC -DPIC -o .libs/gmssl.o
/root/GmSSL-PHP/gmssl.c:37:10: 致命错误:gmssl/aead.h:没有那个文件或目录
37 | #include <gmssl/aead.h>
| ^~~~~~~~~~~~~~
编译中断。
make: *** [Makefile:192:gmssl.lo] 错误 1

@chenzm080
Copy link

/bin/sh /root/GmSSL-PHP/libtool --mode=compile cc -I. -I/root/GmSSL-PHP -DPHP_ATOM_INC -I/root/GmSSL-PHP/include -I/root/GmSSL-PHP/main -I/root/GmSSL-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/GmSSL-PHP/gmssl.c -o gmssl.lo libtool: compile: cc -I. -I/root/GmSSL-PHP -DPHP_ATOM_INC -I/root/GmSSL-PHP/include -I/root/GmSSL-PHP/main -I/root/GmSSL-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/GmSSL-PHP/gmssl.c -fPIC -DPIC -o .libs/gmssl.o /root/GmSSL-PHP/gmssl.c:37:10: 致命错误:gmssl/aead.h:没有那个文件或目录 37 | #include <gmssl/aead.h> | ^~~~~~~~~~~~~~ 编译中断。 make: *** [Makefile:192:gmssl.lo] 错误 1

我也遇到这个问题,怎么解决呢?

@jonedoo
Copy link
Author

jonedoo commented Jul 19, 2024

/bin/bash /root/GmSSL-PHP-main/libtool --mode=compile cc -I. -I/root/GmSSL-PHP-main -DPHP_ATOM_INC -I/root/GmSSL-PHP-main/include -I/root/GmSSL-PHP-main/main -I/root/GmSSL-PHP-main -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/GmSSL-PHP-main/gmssl.c -o gmssl.lo
cc -I. -I/root/GmSSL-PHP-main -DPHP_ATOM_INC -I/root/GmSSL-PHP-main/include -I/root/GmSSL-PHP-main/main -I/root/GmSSL-PHP-main -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/GmSSL-PHP-main/gmssl.c -fPIC -DPIC -o .libs/gmssl.o
/root/GmSSL-PHP-main/gmssl.c:37:10: fatal error: gmssl/aead.h: No such file or directory
37 | #include <gmssl/aead.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:192: gmssl.lo] Error 1

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

4 participants