Giter Site home page Giter Site logo

Comments (4)

daurnimator avatar daurnimator commented on June 15, 2024
$ sudo luarocks install luasec
Warning: falling back to curl - install luasec to get native HTTPS support
Installing https://luarocks.org/luasec-0.5-2.src.rock...
Using https://luarocks.org/luasec-0.5-2.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/include -c src/x509.c -o src/x509.o -I/usr/include -Isrc/ -Isrc/luasocket
gcc -O2 -fPIC -I/usr/include -c src/context.c -o src/context.o -I/usr/include -Isrc/ -Isrc/luasocket
src/context.c: In function ‘set_depth’:
src/context.c:421:33: warning: implicit declaration of function ‘luaL_checkint’ [-Wimplicit-function-declaration]
   SSL_CTX_set_verify_depth(ctx, luaL_checkint(L, 2));
                                 ^
gcc -O2 -fPIC -I/usr/include -c src/ssl.c -o src/ssl.o -I/usr/include -Isrc/ -Isrc/luasocket
src/ssl.c: In function ‘meth_setfd’:
src/ssl.c:328:15: warning: implicit declaration of function ‘luaL_checkint’ [-Wimplicit-function-declaration]
   ssl->sock = luaL_checkint(L, 2);
               ^
src/ssl.c: In function ‘meth_getpeercertificate’:
src/ssl.c:434:7: warning: implicit declaration of function ‘luaL_optint’ [-Wimplicit-function-declaration]
   n = luaL_optint(L, 2, 1);                           
       ^
gcc -O2 -fPIC -I/usr/include -c src/luasocket/buffer.c -o src/luasocket/buffer.o -I/usr/include -Isrc/ -Isrc/luasocket
gcc -O2 -fPIC -I/usr/include -c src/luasocket/io.c -o src/luasocket/io.o -I/usr/include -Isrc/ -Isrc/luasocket
gcc -O2 -fPIC -I/usr/include -c src/luasocket/timeout.c -o src/luasocket/timeout.o -I/usr/include -Isrc/ -Isrc/luasocket
gcc -O2 -fPIC -I/usr/include -c src/luasocket/usocket.c -o src/luasocket/usocket.o -I/usr/include -Isrc/ -Isrc/luasocket
gcc -shared -o ssl.so -L/usr/lib src/x509.o src/context.o src/ssl.o src/luasocket/buffer.o src/luasocket/io.o src/luasocket/timeout.o src/luasocket/usocket.o -L/usr/lib -Wl,-rpath,/usr/lib: -lssl -lcrypto
Updating manifest for /usr/lib/luarocks/rocks-5.3
luasec 0.5-2 is now built and installed in /usr (license: MIT)
$ lua -lssl
lua: error loading module 'ssl.core' from file '/usr/lib/lua/5.3/ssl.so':
    /usr/lib/lua/5.3/ssl.so: undefined symbol: luaL_checkint
stack traceback:
    [C]: in ?
    [C]: in function 'require'
    /usr/share/lua/5.3/ssl.lua:7: in main chunk
    [C]: in function 'require'
    [C]: in ?

from luasec.

anatol avatar anatol commented on June 15, 2024

Related issue #45

HEAD version already has a fix for lua-5.3. So a new version should be released to bring it to the users.

from luasec.

anatol avatar anatol commented on June 15, 2024

@brunoos do you plan to make a new release?

from luasec.

brunoos avatar brunoos commented on June 15, 2024

I want to work on some issues and PRs before the release.

But I should create a "alpha" tag if the code is compiling properly, so that we can have a milestone and a rocks.

from luasec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.