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

请求帮助 #2

Open
ayongbc opened this issue Dec 10, 2015 · 2 comments
Open

请求帮助 #2

ayongbc opened this issue Dec 10, 2015 · 2 comments

Comments

@ayongbc
Copy link

ayongbc commented Dec 10, 2015

我刚学习skynet,发现了你的demo学习,编译过程中发现几个问题,
第一个是 cjson编译不过了,好像是因为lua升级了新版本
在客户端启动时加载srp.so的时候报出undefined symbol pthread_setspecific的错误,方便的话可以加下我的qq吗,50695351

@yangxuan0261
Copy link

yangxuan0261 commented Jun 25, 2016

Q1:lua_cjson.c:597:58: error: macro “lua_integer2str” requires 3 arguments, but only 2 given
A:参照云风维护的luacjson,将lua_cjson.c中597行
len = lua_integer2str(strbuf_empty_ptr(json), num);
修改为
len = sprintf(strbuf_empty_ptr(json), LUA_INTEGER_FMT, num);

@zuiyangqingzhou
Copy link

在客户端启动时加载srp.so的时候 lua: error loading module 'srp' from file '../server/luaclib/srp.so':
../server/luaclib/srp.so: undefined symbol: pthread_rwlock_rdlock

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

3 participants