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

luajit 5.1 不通过 #2

Open
millken opened this issue Oct 11, 2013 · 5 comments
Open

luajit 5.1 不通过 #2

millken opened this issue Oct 11, 2013 · 5 comments

Comments

@millken
Copy link

millken commented Oct 11, 2013

[root@localhost t]# luajit start_udp_listener.lua 
luajit: error loading module 'simple_socket' from file '/usr/local/lib/lua/5.1/simple_socket.so':
    /usr/local/lib/lua/5.1/simple_socket.so: undefined symbol: luaL_checkversion
stack traceback:
    [C]: at 0x0044ce70
    [C]: in function 'require'
    start_udp_listener.lua:7: in main chunk
    [C]: at 0x00404180
[root@localhost t]# 

还有能不能把sock:read('*l'),读取所有内容。这是为了兼容ngx_lua 里的某些模块

@millken
Copy link
Author

millken commented Oct 11, 2013

我已经修复了luajit 5.1的bug,lua5.1没有测试

@millken millken closed this as completed Oct 11, 2013
@millken millken reopened this Oct 11, 2013
@cofyc
Copy link
Owner

cofyc commented Oct 11, 2013

不好意思,这是我当时 luasocket 还不支持 5.2 时写的模块。

没去考虑支持 5.1,5.1 你可以用 luasocket 。

@cofyc
Copy link
Owner

cofyc commented Oct 11, 2013

不过,能让其支持 luajit 5.1,很不错。

@millken
Copy link
Author

millken commented Oct 12, 2013

我很喜欢你这个,功能simple就可以了。
你是不不打算维护这个项目了?

@cofyc
Copy link
Owner

cofyc commented Oct 12, 2013

维护,不开发,你可以发 PR 过来。

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

2 participants