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报configure: error: FEATURE not supported by your gmssl library #6

Open
weisuiyu opened this issue Sep 22, 2023 · 6 comments

Comments

@weisuiyu
Copy link

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
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 whether cc understands -c and -o together... yes
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
checking for PHP includes... -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 2.0.3 (ok)
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

$ gmssl version
GmSSL 3.1.0

@weisuiyu
Copy link
Author

系统的debian 11.7

@weisuiyu
Copy link
Author

cp libgmssl.so.3到/usr/local/lib/可以正常执行./configure了,但是make报错fatal error: gmssl/version.h: No such file or directory

@songhuashan
Copy link

cp libgmssl.so.3到/usr/local/lib/可以正常执行./configure了,但是make报错fatal error: gmssl/version.h: No such file or directory

php 版本的问题,用PHP7 版本就可以了

@jonedoo
Copy link

jonedoo commented Jan 30, 2024

我也遇到这个问题, CentOS7.9, php7.4.33

@joewen85
Copy link

joewen85 commented Jul 2, 2024

我也遇到这问题, Centos stream9 php7.4.33

image

库已加载
image

已解决库引用问题。 把 ln -s /path/to/gmssl/lib/* /usr/local/lib/ 可解决
但编译找不到<gmssl/version.h>
因为GmSSL-PHP-main/gmssl.c 28行引入了gmssl/version.h
这是GmSSL-PHP里面没有gmssl/version.h
解决办法把 /path/to/gmssl/include/gmssl 复制到源码再编译即可解决

@joewen85
Copy link

joewen85 commented Jul 2, 2024

我也遇到这个问题, CentOS7.9, php7.4.33

估计是c里面写死了。 把 ln -s /path/to/gmssl/lib/* /usr/local/lib/ 可解决

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