wolfSSL / wolfssl-nginx

Adds wolfSSL support to Nginx.
https://www.wolfssl.com
33 stars 13 forks source link

Nginx 1.25.5 #27

Closed biguz closed 4 months ago

biguz commented 4 months ago

Can you make patch for last nginx version, can't compile it with 1.25.0 patch

anhu commented 4 months ago

hello @biguz ,

I'll try to see if I can help you here.

Here at wolfSSL we love knowing how people are using our code. Can you lets us know a bit about yourself and your project? For example, what are your goals? Is your work out of personal, professional or academic interest? Is your work associated with any institutions or organizations? This information will help us prioritize your request.

I applied the latest patch to nginx-1.25.5 and it built fine for me.

$ patch -p1 < ../wolfssl-nginx/nginx-1.25.0-wolfssl.patch
$ ./configure --with-wolfssl=/usr/local --with-http_ssl_module
$ make 

Can you let us know what you did and what error messages you are seeing?

Warm regards, Anthony

biguz commented 4 months ago

Hi, it's just for personal use.

I got this errors during nginx compilation, full output attached

src/event/ngx_event_openssl.c:158:12: error: implicit declaration of function ‘OPENSSL_INIT_new’; did you mean ‘OPENSSL_init_ssl’? [-Werror=implicit-function-declaration] 158 | init = OPENSSL_INIT_new(); | ^~~~ | OPENSSL_init_ssl src/event/ngx_event_openssl.c:158:10: error: assignment to ‘OPENSSL_INIT_SETTINGS ’ {aka ‘WOLFSSL_INIT_SETTINGS ’} from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion] 158 | init = OPENSSL_INIT_new(); | ^ src/event/ngx_event_openssl.c:165:9: error: implicit declaration of function ‘OPENSSL_INIT_set_config_appname’ [-Werror=implicit-function-declaration] 165 | if (OPENSSL_INIT_set_config_appname(init, "nginx") == 0) { | ^~~~~~~ src/event/ngx_event_openssl.c:177:5: error: implicit declaration of function ‘OPENSSL_INIT_free’; did you mean ‘OPENSSL_sk_free’? [-Werror=implicit-function-declaration] 177 | OPENSSL_INIT_free(init); | ^~~~~ | OPENSSL_sk_free

On Tue, Apr 23, 2024 at 5:00 AM Anthony Hu @.***> wrote:

hello @biguz https://github.com/biguz ,

I'll try to see if I can help you here.

Here at wolfSSL we love knowing how people are using our code. Can you lets us know a bit about yourself and your project? For example, what are your goals? Is your work out of personal, professional or academic interest? Is your work associated with any institutions or organizations? This information will help us prioritize your request.

I applied the latest patch to nginx-1.25.5 and it built fine for me.

$ patch -p1 < ../wolfssl-nginx/nginx-1.25.0-wolfssl.patch $ ./configure --with-wolfssl=/usr/local --with-http_ssl_module $ make

Can you let us know what you did and what error messages you are seeing?

Warm regards, Anthony

— Reply to this email directly, view it on GitHub https://github.com/wolfSSL/wolfssl-nginx/issues/27#issuecomment-2071023317, or unsubscribe https://github.com/notifications/unsubscribe-auth/APXIHD4I7UUO7E7MYBRCOCTY6WB73AVCNFSM6AAAAABGSWLP6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZRGAZDGMZRG4 . You are receiving this because you were mentioned.Message ID: @.***>

patch -p1 < ../wolfssl-nginx/nginx-1.25.0-wolfssl.patch patching file auto/lib/openssl/conf Hunk #1 succeeded at 66 (offset 2 lines). patching file auto/options Hunk #1 succeeded at 155 (offset 1 line). Hunk #2 succeeded at 372 (offset 2 lines). Hunk #3 succeeded at 603 (offset 3 lines). patching file src/event/ngx_event_openssl.c Hunk #1 succeeded at 388 (offset 37 lines). Hunk #2 succeeded at 399 (offset 37 lines). Hunk #3 succeeded at 597 (offset 37 lines). Hunk #4 succeeded at 614 (offset 37 lines). Hunk #5 succeeded at 629 (offset 37 lines). Hunk #6 succeeded at 3419 (offset 38 lines). Hunk #7 succeeded at 4659 (offset 38 lines). Hunk #8 succeeded at 4703 (offset 38 lines). Hunk #9 succeeded at 5211 (offset 38 lines). patching file src/event/ngx_event_openssl.h patching file src/http/modules/ngx_http_ssl_module.c patching file src/mail/ngx_mail_ssl_module.c patching file src/stream/ngx_stream_ssl_module.c

./configure --with-wolfssl=/opt/wolfsslnginx --with-http_ssl_module checking for OS

Configuration summary

make make -f objs/Makefile make[1]: Entering directory '/root/nginx-1.25.5' cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/nginx.o \ src/core/nginx.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_log.o \ src/core/ngx_log.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_palloc.o \ src/core/ngx_palloc.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_array.o \ src/core/ngx_array.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_list.o \ src/core/ngx_list.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_hash.o \ src/core/ngx_hash.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_buf.o \ src/core/ngx_buf.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_queue.o \ src/core/ngx_queue.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_output_chain.o \ src/core/ngx_output_chain.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_string.o \ src/core/ngx_string.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_parse.o \ src/core/ngx_parse.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_parse_time.o \ src/core/ngx_parse_time.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_inet.o \ src/core/ngx_inet.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_file.o \ src/core/ngx_file.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_crc32.o \ src/core/ngx_crc32.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_murmurhash.o \ src/core/ngx_murmurhash.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_md5.o \ src/core/ngx_md5.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_sha1.o \ src/core/ngx_sha1.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_rbtree.o \ src/core/ngx_rbtree.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_radix_tree.o \ src/core/ngx_radix_tree.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_slab.o \ src/core/ngx_slab.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_times.o \ src/core/ngx_times.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_shmtx.o \ src/core/ngx_shmtx.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_connection.o \ src/core/ngx_connection.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_cycle.o \ src/core/ngx_cycle.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_spinlock.o \ src/core/ngx_spinlock.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_rwlock.o \ src/core/ngx_rwlock.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_cpuinfo.o \ src/core/ngx_cpuinfo.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_conf_file.o \ src/core/ngx_conf_file.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_module.o \ src/core/ngx_module.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_resolver.o \ src/core/ngx_resolver.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_open_file_cache.o \ src/core/ngx_open_file_cache.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_crypt.o \ src/core/ngx_crypt.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_proxy_protocol.o \ src/core/ngx_proxy_protocol.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_syslog.o \ src/core/ngx_syslog.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event.o \ src/event/ngx_event.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event_timer.o \ src/event/ngx_event_timer.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event_posted.o \ src/event/ngx_event_posted.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event_accept.o \ src/event/ngx_event_accept.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event_udp.o \ src/event/ngx_event_udp.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event_connect.o \ src/event/ngx_event_connect.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event_pipe.o \ src/event/ngx_event_pipe.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_time.o \ src/os/unix/ngx_time.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_errno.o \ src/os/unix/ngx_errno.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_alloc.o \ src/os/unix/ngx_alloc.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_files.o \ src/os/unix/ngx_files.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_socket.o \ src/os/unix/ngx_socket.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_recv.o \ src/os/unix/ngx_recv.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_readv_chain.o \ src/os/unix/ngx_readv_chain.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_udp_recv.o \ src/os/unix/ngx_udp_recv.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_send.o \ src/os/unix/ngx_send.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_writev_chain.o \ src/os/unix/ngx_writev_chain.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_udp_send.o \ src/os/unix/ngx_udp_send.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_udp_sendmsg_chain.o \ src/os/unix/ngx_udp_sendmsg_chain.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_channel.o \ src/os/unix/ngx_channel.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_shmem.o \ src/os/unix/ngx_shmem.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_process.o \ src/os/unix/ngx_process.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_daemon.o \ src/os/unix/ngx_daemon.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_setaffinity.o \ src/os/unix/ngx_setaffinity.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_setproctitle.o \ src/os/unix/ngx_setproctitle.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_posix_init.o \ src/os/unix/ngx_posix_init.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_user.o \ src/os/unix/ngx_user.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_dlopen.o \ src/os/unix/ngx_dlopen.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_process_cycle.o \ src/os/unix/ngx_process_cycle.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_linux_init.o \ src/os/unix/ngx_linux_init.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/modules/ngx_epoll_module.o \ src/event/modules/ngx_epoll_module.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/os/unix/ngx_linux_sendfile_chain.o \ src/os/unix/ngx_linux_sendfile_chain.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/core/ngx_bpf.o \ src/core/ngx_bpf.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DWOLFSSL_NGINX -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include/wolfssl -I /opt/wolfsslnginx/include -I objs \ -o objs/src/event/ngx_event_openssl.o \ src/event/ngx_event_openssl.c src/event/ngx_event_openssl.c: In function ‘ngx_ssl_init’: src/event/ngx_event_openssl.c:158:12: error: implicit declaration of function ‘OPENSSL_INIT_new’; did you mean ‘OPENSSL_init_ssl’? [-Werror=implicit-function-declaration] 158 | init = OPENSSL_INIT_new(); | ^~~~ | OPENSSL_init_ssl src/event/ngx_event_openssl.c:158:10: error: assignment to ‘OPENSSL_INIT_SETTINGS ’ {aka ‘WOLFSSL_INIT_SETTINGS ’} from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion] 158 | init = OPENSSL_INIT_new(); | ^ src/event/ngx_event_openssl.c:165:9: error: implicit declaration of function ‘OPENSSL_INIT_set_config_appname’ [-Werror=implicit-function-declaration] 165 | if (OPENSSL_INIT_set_config_appname(init, "nginx") == 0) { | ^~~~~~~ src/event/ngx_event_openssl.c:177:5: error: implicit declaration of function ‘OPENSSL_INIT_free’; did you mean ‘OPENSSL_sk_free’? [-Werror=implicit-function-declaration] 177 | OPENSSL_INIT_free(init); | ^~~~~ | OPENSSL_sk_free cc1: all warnings being treated as errors make[1]: [objs/Makefile:861: objs/src/event/ngx_event_openssl.o] Error 1 make[1]: Leaving directory '/root/nginx-1.25.5' make: [Makefile:10: build] Error 2

julek-wolfssl commented 4 months ago

Hi @biguz

please use the master branch of wolfSSL. We recently merged a small patch to fix these compilation errors.

Juliusz