undefined references to `strerror_s' while building lua-openssl on alpine image


I am trying to build an openresty alpine image with lua-openssl like so

FROM openresty/openresty:alpine-fat # Set the version ENV RESTY_CONFIG_OPTIONS_MORE "--with-ngx_http_ssl_module" EXPOSE 80 EXPOSE 443 RUN ls /usr/local/openresty/nginx/logs COPY lualib /usr/local/openresty/nginx/lualib RUN chown -R nobody:root /usr/local/openresty/nginx/lualib RUN apk add --update \ openssl openssl-dev \ lua5.3 luajit-dev lua-socket \ git RUN git clone https://github.com/zhaozg/lua-openssl.git /usr/local/lua-openssl; \ cd /usr/local/lua-openssl; \ git checkout e923252b28cff43add6382853cc85ed888c4474b; \ make

But I get the one below and a lot of such errors:


/usr/local/lua-openssl/deps/lua-compat/c-api/compat-5.3.c:74: undefined reference to strerror_s' ./libopenssl.a(cms.o): In function compat53_strerror': /usr/local/lua-openssl/deps/lua-compat/c-api/compat-5.3.c:74: undefined reference to strerror_s' ./libopenssl.a(compat.o):/usr/local/lua-openssl/deps/lua-compat/c-api/compat-5.3.c:74: more undefined references tostrerror_s' follow collect2: error: ld returned 1 exit status make: *** [Makefile:94: openssl.so] Error 1


Am I missing a package?


(1) We grabbed the trusty image instead of alpine-fat. (2) Overrode the make file with one that uses lcrypto lib to build.

And that is the only setting I know to make this work.

I did not try compiling with MSVC++.

My issue and it's fix is tracked in <a href="https://github.com/zhaozg/lua-openssl/issues/138" rel="nofollow">https://github.com/zhaozg/lua-openssl/issues/138</a>


  • create lightuserdata in lua for luaglut glReadPixels
  • How to get preloaded module name in C++
  • On MySql Is it possible to GRANT Select to ALL users?
  • GitLab: You are not allowed to access master! After moving gitlab to another server
  • SVN Repo gives 404 not Found
  • LuaJava compile error “Unresolved external symbol”
  • General error: 1 Can't create/write to file errcode:2
  • How to remove black bars from LinearLayout using Bitmap as background in Android?
  • Change icon size of tabs
  • App not installed after upgrading to Android - P
  • Custom Spinner TextView is being cut off
  • MonoDroid - setting background color from colors.xml throws InvalidOperationException
  • Can't start a new project because of gradle error
  • How to send an std::vector of unsigned char over an UDP socket using boost asio?
  • Android custom dialog linearlayout size same as dialogs bg image
  • Android ripple for button not working
  • How to read data from socket connection - android
  • Float Label hint (TextInputLayout) not works with Android Data Binding
  • Cannot send user message with Spring Websocket
  • Translate animation to correct position in Android
  • Toolbar shifts up, when soft keyboard appears
  • Loop animation drawable
  • Gray line inside cardview :)?
  • Wrapping text in spinner android
  • Error in making a socket connection
  • How to resolve permission denied maybe missing internet permission?
  • perl, mysql - fasting way to upload a csv file into mysql?
  • htaccess add www if not subdomain, if subdomain remove www
  • Installing iPhone App to iPhone
  • Installing Hadoop, Java Exception about illegal characters at index 7?
  • Jenkins: How To Build multiple projects from a TFS repository?
  • Arrays break string types in Julia
  • retrieve vertices with no linked edge in arangodb
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Understanding cpu registers
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • Add sale price programmatically to product variations
  • How can i traverse a binary tree from right to left in java?
  • UserPrincipal.Current returns apppool on IIS