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

skynet使用, 报错 #4

Closed
cls1991 opened this issue Feb 7, 2017 · 9 comments
Closed

skynet使用, 报错 #4

cls1991 opened this issue Feb 7, 2017 · 9 comments

Comments

@cls1991
Copy link

cls1991 commented Feb 7, 2017

skynet中使用, 报以下错误:
:00000018(1486429408.35)[2017-02-07 09:03:28]: lua loader error : error loading module 'webclient' from file './luaclib/webclient.so':
./luaclib/webclient.so: undefined symbol: curl_easy_escape
stack traceback:
[C]: in ?
[C]: in function 'require'
./mainserver/webclient.lua:7: in local 'main'
./skynet/lualib/loader.lua:48: in main chunk
:00000018(1486429408.35)[2017-02-07 09:03:28]: KILL self
:00000008(1486429408.35)[2017-02-07 09:03:28]: init service failed: ./skynet/lualib/skynet.lua:535: ./skynet/service/service_mgr.lua:25: ./skynet/lualib/skynet.lua:381: call failed
stack traceback:
[C]: in function 'assert'
./skynet/lualib/skynet.lua:535: in function 'skynet.uniqueservice'
./mainserver/main.lua:15: in local 'start'
./skynet/lualib/skynet.lua:619: in function <./skynet/lualib/skynet.lua:616>
[C]: in function 'xpcall'
./skynet/lualib/skynet.lua:623: in function 'skynet.pcall'
./skynet/lualib/skynet.lua:627: in function 'skynet.init_service'
./skynet/lualib/skynet.lua:640: in upvalue 'f'
./skynet/lualib/skynet.lua:104: in function <./skynet/lualib/skynet.lua:103>

@dpull
Copy link
Owner

dpull commented Feb 7, 2017

你的libcurl.so的版本太老了,更新下,或者你改一下代码,改成使用 curl_escape

curl_easy_escape Added in 7.15.4 and replaces the old curl_escape function.

https://curl.haxx.se/libcurl/c/curl_easy_escape.html

@dpull dpull closed this as completed Feb 7, 2017
@cls1991
Copy link
Author

cls1991 commented Feb 7, 2017

➜ CardGameHall git:(develop) ✗ curl --version
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

@dpull dpull reopened this Feb 7, 2017
@dpull
Copy link
Owner

dpull commented Feb 7, 2017

这样吧,你把curl静态链接,看看有啥问题

@LokerLi
Copy link

LokerLi commented Mar 31, 2017

我也遇到这个问题,楼上怎么解决的?

@abincai
Copy link

abincai commented Mar 31, 2017

一样遇到这个问题,也在看怎么处理

@cls1991
Copy link
Author

cls1991 commented Mar 31, 2017

稍微绕了一下, python tornado处理https请求, skynet http链接之, @LokerLi @abincai

@LokerLi
Copy link

LokerLi commented Mar 31, 2017

找到问题了,cc的时候加 -lcurl 就好了 @cls1991 @abincai

@dpull
Copy link
Owner

dpull commented Mar 31, 2017

@LokerLi 👍

@dpull dpull closed this as completed Mar 31, 2017
@abincai
Copy link

abincai commented Apr 1, 2017

@LokerLi 谢谢,昨天也找到问题了,刚才还打算来回复呢

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

4 participants