Closed whatvn closed 9 years ago
I believe this is fixed in 779756c7a3; just tested that on an Ubuntu 12.04 machine. Could you please verify?
no problems compiling on Arch Linux(with all packages up-to date)
Yes, this commit fixed my issue.
Thanks,
When build lwan on my Ubuntu with lua, luajit install, got this error:
../common/liblwan-common.a(lwan-lua.c.o): In function
state_create': [20/995] /home/parallels/lwan-master/common/lwan-lua.c:126: undefined reference to
luaL_newstate' /home/parallels/lwan-master/common/lwan-lua.c:132: undefined reference toluaL_openlibs' /home/parallels/lwan-master/common/lwan-lua.c:134: undefined reference to
luaL_newmetatable' /home/parallels/lwan-master/common/lwan-lua.c:135: undefined reference toluaL_register' /home/parallels/lwan-master/common/lwan-lua.c:136: undefined reference to
lua_setfield' /home/parallels/lwan-master/common/lwan-lua.c:138: undefined reference toluaL_loadfile' /home/parallels/lwan-master/common/lwan-lua.c:138: undefined reference to
lua_pcall' /home/parallels/lwan-master/common/lwan-lua.c:139: undefined reference tolua_tolstring' /home/parallels/lwan-master/common/lwan-lua.c:140: undefined reference to
lua_close' ../common/liblwan-common.a(lwan-lua.c.o): In functionstate_destroy': /home/parallels/lwan-master/common/lwan-lua.c:153: undefined reference to
lua_close' ../common/liblwan-common.a(lwan-lua.c.o): In functionget_or_create_cache': /home/parallels/lwan-master/common/lwan-lua.c:159: undefined reference to
pthread_getspecific' /home/parallels/lwan-master/common/lwan-lua.c:165: undefined reference topthread_setspecific' ../common/liblwan-common.a(lwan-lua.c.o): In function
unref_thread': /home/parallels/lwan-master/common/lwan-lua.c:174: undefined reference toluaL_unref' ../common/liblwan-common.a(lwan-lua.c.o): In function
get_handler_function': /home/parallels/lwan-master/common/lwan-lua.c:227: undefined reference tolua_getfield' /home/parallels/lwan-master/common/lwan-lua.c:228: undefined reference to
lua_type' ../common/liblwan-common.a(lwan-lua.c.o): In functionpush_request': /home/parallels/lwan-master/common/lwan-lua.c:233: undefined reference to
lua_newuserdata' /home/parallels/lwan-master/common/lwan-lua.c:235: undefined reference tolua_getfield' /home/parallels/lwan-master/common/lwan-lua.c:236: undefined reference to
lua_setmetatable' ../common/liblwan-common.a(lwan-lua.c.o): In functionpush_newthread': /home/parallels/lwan-master/common/lwan-lua.c:241: undefined reference to
lua_newthread' /home/parallels/lwan-master/common/lwan-lua.c:245: undefined reference toluaL_ref' ../common/liblwan-common.a(lwan-lua.c.o): In function
lua_handle_cb': /home/parallels/lwan-master/common/lwan-lua.c:280: undefined reference tolua_resume' /home/parallels/lwan-master/common/lwan-lua.c:287: undefined reference to
lua_tolstring' ../common/liblwan-common.a(lwan-lua.c.o): In functionlua_init': /home/parallels/lwan-master/common/lwan-lua.c:321: undefined reference to
pthread_key_create' ../common/liblwan-common.a(lwan-lua.c.o): In functionlua_shutdown': /home/parallels/lwan-master/common/lwan-lua.c:343: undefined reference to
pthread_key_delete' ../common/liblwan-common.a(lwan-serve-files.c.o): In functioncompress_cached_entry': /home/parallels/lwan-master/common/lwan-serve-files.c:302: undefined reference to
compressBound' /home/parallels/lwan-master/common/lwan-serve-files.c:307: undefined reference tocompress' ../common/liblwan-common.a(lwan-tables.c.o): In function
lwan_tables_init': /home/parallels/lwan-master/common/lwan-tables.c:42: undefined reference touncompress' ../common/liblwan-common.a(lwan-thread.c.o): In function
create_thread': /home/parallels/lwan-master/common/lwan-thread.c:365: undefined reference topthread_create' ../common/liblwan-common.a(lwan-thread.c.o): In function
lwan_thread_shutdown': /home/parallels/lwan-master/common/lwan-thread.c:416: undefined reference topthread_tryjoin_np' ../common/liblwan-common.a(lwan-cache.c.o): In function
cache_create': /home/parallels/lwan-master/common/lwan-cache.c:116: undefined reference topthread_rwlock_init' /home/parallels/lwan-master/common/lwan-cache.c:118: undefined reference to
pthread_rwlock_init' /home/parallels/lwan-master/common/lwan-cache.c:135: undefined reference topthread_rwlock_destroy' ../common/liblwan-common.a(lwan-cache.c.o): In function
cache_destroy': /home/parallels/lwan-master/common/lwan-cache.c:157: undefined reference topthread_rwlock_destroy' /home/parallels/lwan-master/common/lwan-cache.c:158: undefined reference to
pthread_rwlock_destroy' ../common/liblwan-common.a(lwan-cache.c.o): In functioncache_get_and_ref_entry': /home/parallels/lwan-master/common/lwan-cache.c:184: undefined reference to
pthread_rwlock_tryrdlock' /home/parallels/lwan-master/common/lwan-cache.c:193: undefined reference to `pthread_rwlock_unlock'With -pthread add to build flag, pthread error go way, but lua stays the same.