openresty / openresty/lua-nginx-module
unable to execute make succesfully
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
Hi,
I am facing the below issue on Mac os
when trying make getting below error (I have enable openssl module)
-L/usr/local/Cellar/luajit/2.1_1/lib -Wl,-rpath,/usr/local/Cellar/luajit/2.1_1/lib -L/usr/local/Cellar/luajit/2.1_1/lib -lluajit-5.1 -lm -ldl -pagezero_size 10000 -image_base 100000000 -L/usr/local/Cellar/luajit/2.1_1/lib -lluajit-5.1 -lm -ldl -pagezero_size 10000 -image_base 100000000 -L/usr/local/lib -lpcre -L/usr/local/lib -lssl -lcrypto -lz
Undefined symbols for architecture x86_64:
"_SSL_CTX_set_alpn_select_cb", referenced from:
_ngx_http_ssl_merge_srv_conf in ngx_http_ssl_module.o
"_SSL_CTX_set_cert_cb", referenced from:
_ngx_http_lua_merge_srv_conf in ngx_http_lua_module.o
"_SSL_CTX_set_next_protos_advertised_cb", referenced from:
_ngx_http_ssl_merge_srv_conf in ngx_http_ssl_module.o
"_SSL_certs_clear", referenced from:
_ngx_http_lua_ffi_ssl_clear_certs in ngx_http_lua_ssl_certby.o
"_SSL_select_next_proto", referenced from:
_ngx_http_ssl_alpn_select in ngx_http_ssl_module.o
"_X509_check_host", referenced from:
_ngx_ssl_check_host in ngx_event_openssl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [objs/nginx] Error 1
make[1]: *** [build] Error 2
make: *** [all] Error 2
Please help
output of make -v
Anshars-MacBook-Pro:openresty-1.9.7.5 ansharpasha$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Mac build with make and reviewing the link command ending in objs/nginx. Inspect the nginx and Lua module build inputs around the reported SSL symbols; done means the executable links successfully without undefined-symbol errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua, macos, nginx
- Domain
- backend, build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100