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

build Openresty from source fails - ngx_http_lua_ssl_session_fetchby.c:350: undefined reference to `SSL_magic_pending_session_ptr' #658

Closed
ergoz opened this issue Oct 4, 2020 · 1 comment

Comments

@ergoz
Copy link

ergoz commented Oct 4, 2020

I made my own openresty docker build. 4 months ago it builded successfully. But now i can't build.
Problem not in docker, problem in building, i think.

I tried different variants:

  • linux alpine 3.11 and 3,12
  • openresty-1.17.8.2 and openresty-1.15.8.3 (both downloaded from website)
  • ngx_lua-0.10.17 and ngx_lua-0.10.15
  • openssl version 1.1.1g and 1.1.1h
  • openssl patch version 1.1.1f
  • pcre version 8.44

Error while build

/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: objs/addon/src/ngx_http_lua_ssl_session_fetchby.o: in function `ngx_http_lua_ssl_sess_fetch_handler':
/tmp/openresty-1.17.8.2/build/nginx-1.17.8/../ngx_lua-0.10.17/src/ngx_http_lua_ssl_session_fetchby.c:350: undefined reference to `SSL_magic_pending_session_ptr'
collect2: error: ld returned 1 exit status
make[2]: *** [objs/Makefile:518: objs/nginx] Error 1
make[2]: Leaving directory '/tmp/openresty-1.17.8.2/build/nginx-1.17.8'
make[1]: Leaving directory '/tmp/openresty-1.17.8.2/build/nginx-1.17.8'
make[1]: *** [Makefile:8: build] Error 2
make: *** [Makefile:9: all] Error 2

Error aquired even if i not add additional modules, and with additional modules (see full log below)

Full Log

Cant attach here (65535 characters limit), i attached file in gist: https://gist.github.com/ergoz/5c4ba6ca62ca0f59c973cfd4ebb90d44

And here: openresty failed build log.txt

@ergoz ergoz changed the title Cant build from source - ngx_http_lua_ssl_session_fetchby.c:350: undefined reference to `SSL_magic_pending_session_ptr' build Openresty from source fails - ngx_http_lua_ssl_session_fetchby.c:350: undefined reference to `SSL_magic_pending_session_ptr' Oct 4, 2020
@ergoz
Copy link
Author

ergoz commented Oct 6, 2020

Sorry it was my fault, i added /usr/lib in --with-ld-opt and it broke my build

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