GmSSL / GmSSL-PHP

PHP binding to the GmSSL library.
https://gmssl.github.io/GmSSL-PHP/
Other
27 stars 6 forks source link

./configure 异常 #8

Open jonedoo opened 5 months ago

jonedoo commented 5 months ago

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 commented 2 months ago

Your install gmssl library

MACOS

brew install gmssl
gsm2009 commented 1 month ago

/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 commented 1 week ago

/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

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