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

GmSSL 3之后的版本,如何源码编译nginx #1798

Open
jeven2016 opened this issue Mar 13, 2025 · 0 comments
Open

GmSSL 3之后的版本,如何源码编译nginx #1798

jeven2016 opened this issue Mar 13, 2025 · 0 comments

Comments

@jeven2016
Copy link

GmSSL 3之后的版本没有ssl.h文件,编译nginx时会报错:

#16 3.081 make -f objs/Makefile
#16 3.086 make[1]: Entering directory '/build/nginx'
#16 3.086 make[1]: Leaving directory '/build/nginx'
#16 3.086 make[1]: *** No rule to make target '/build/GmSSL/build/include/openssl/ssl.h', needed by 'objs/src/core/nginx.o'. Stop.
#16 3.086 make: *** [Makefile:10: build] Error 2
#16 ERROR: process "/bin/sh -c cd nginx && cp auto/configure ./ && ./configure --with-http_ssl_module --without-http_upstream_zone_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-http_v2_module --with-openssl="/build/GmSSL/build" && make && make install" did not complete successfully: exit code: 2

[builder 10/10] RUN cd nginx && cp auto/configure ./ && ./configure --with-http_ssl_module --without-http_upstream_zone_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-http_v2_module --with-openssl="/build/GmSSL/build" && make && make install:
3.079 nginx http proxy temporary files: "proxy_temp"
3.079 nginx http fastcgi temporary files: "fastcgi_temp"
3.079 nginx http uwsgi temporary files: "uwsgi_temp"
3.079 nginx http scgi temporary files: "scgi_temp"
3.079
3.081 make -f objs/Makefile
3.086 make[1]: Entering directory '/build/nginx'
3.086 make[1]: Leaving directory '/build/nginx'
3.086 make[1]: *** No rule to make target '/build/GmSSL/build/include/openssl/ssl.h', needed by 'objs/src/core/nginx.o'. Stop.
3.086 make: *** [Makefile:10: build] Error 2


目前来看,无法规避掉,是否只有去改nginx源码一条道?

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

1 participant