{"action":"opened","issue":{"url":"https://api.github.com/repos/cloudwu/pbc/issues/64","labels_url":"https://api.github.com/repos/cloudwu/pbc/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/cloudwu/pbc/issues/64/comments","events_url":"https://api.github.com/repos/cloudwu/pbc/issues/64/events","html_url":"https://github.com/cloudwu/pbc/issues/64","id":99174142,"number":64,"title":"编译binding/lua时报错","user":{"login":"wbdu","id":2478937,"avatar_url":"https://avatars.githubusercontent.com/u/2478937?v=3","gravatar_id":"","url":"https://api.github.com/users/wbdu","html_url":"https://github.com/wbdu","followers_url":"https://api.github.com/users/wbdu/followers","following_url":"https://api.github.com/users/wbdu/following{/other_user}","gists_url":"https://api.github.com/users/wbdu/gists{/gist_id}","starred_url":"https://api.github.com/users/wbdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbdu/subscriptions","organizations_url":"https://api.github.com/users/wbdu/orgs","repos_url":"https://api.github.com/users/wbdu/repos","events_url":"https://api.github.com/users/wbdu/events{/privacy}","received_events_url":"https://api.github.com/users/wbdu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-05T10:26:32Z","updated_at":"2015-08-05T10:26:32Z","closed_at":null,"body":"环境是mac osx Yosemite 10.10.4，openresty附带的luajit-2.1。\r\n\r\n···\r\ngcc -O2 -fPIC -Wall  -shared -o protobuf.so -I../.. -I/usr/local/openresty/luajit/include/luajit-2.1 -L../../build pbc-lua.c -lpbc\r\nUndefined symbols for architecture x86_64:\r\n  \"_luaL_checkinteger\", referenced from:\r\n      __rmessage_new in pbc-lua-cc4638.o\r\n      __rmessage_integer in pbc-lua-cc4638.o\r\n      __rmessage_int32 in pbc-lua-cc4638.o\r\n      __rmessage_int64 in pbc-lua-cc4638.o\r\n      __rmessage_int52 in pbc-lua-cc4638.o\r\n      __rmessage_uint52 in pbc-lua-cc4638.o\r\n      __rmessage_real in pbc-lua-cc4638.o\r\n      ...\r\n  \"_luaL_checklstring\", referenced from:\r\n      __env_register in pbc-lua-cc4638.o\r\n      __env_type in pbc-lua-cc4638.o\r\n      __rmessage_new in pbc-lua-cc4638.o\r\n      __rmessage_integer in pbc-lua-cc4638.o\r\n      __rmessage_int32 in pbc-lua-cc4638.o\r\n      __rmessage_int64 in pbc-lua-cc4638.o\r\n      __rmessage_int52 in pbc-lua-cc4638.o\r\n      ...\r\n  \"_luaL_checknumber\", referenced from:\r\n      __wmessage_real in pbc-lua-cc4638.o\r\n      __wmessage_int52 in pbc-lua-cc4638.o\r\n      __wmessage_uint52 in pbc-lua-cc4638.o\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n  \"_luaL_checktype\", referenced from:\r\n      __decode in pbc-lua-cc4638.o\r\n  \"_luaL_error\", referenced from:\r\n      __env_register in pbc-lua-cc4638.o\r\n      __env_type in pbc-lua-cc4638.o\r\n      __rmessage_new in pbc-lua-cc4638.o\r\n      __rmessage_delete in pbc-lua-cc4638.o\r\n      __rmessage_integer in pbc-lua-cc4638.o\r\n      __rmessage_int32 in pbc-lua-cc4638.o\r\n      __rmessage_int64 in pbc-lua-cc4638.o\r\n      ...\r\n  \"_luaL_register\", referenced from:\r\n      _luaopen_protobuf_c in pbc-lua-cc4638.o\r\n  \"_lua_call\", referenced from:\r\n      _push_value in pbc-lua-cc4638.o\r\n  \"_lua_checkstack\", referenced from:\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n  \"_lua_createtable\", referenced from:\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      __decode in pbc-lua-cc4638.o\r\n      __gc in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\n  \"_lua_insert\", referenced from:\r\n      _decode_cb in pbc-lua-cc4638.o\r\n  \"_lua_isstring\", referenced from:\r\n      __rmessage_new in pbc-lua-cc4638.o\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n  \"_lua_isuserdata\", referenced from:\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n  \"_lua_newuserdata\", referenced from:\r\n      __gc in pbc-lua-cc4638.o\r\n  \"_lua_objlen\", referenced from:\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\n  \"_lua_pushboolean\", referenced from:\r\n      __env_type in pbc-lua-cc4638.o\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      __decode in pbc-lua-cc4638.o\r\n      _push_value in pbc-lua-cc4638.o\r\n  \"_lua_pushcclosure\", referenced from:\r\n      __gc in pbc-lua-cc4638.o\r\n  \"_lua_pushinteger\", referenced from:\r\n      __env_type in pbc-lua-cc4638.o\r\n      __rmessage_integer in pbc-lua-cc4638.o\r\n      __rmessage_size in pbc-lua-cc4638.o\r\n      __wmessage_buffer in pbc-lua-cc4638.o\r\n      __pattern_size in pbc-lua-cc4638.o\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      __env_enum_id in pbc-lua-cc4638.o\r\n      ...\r\n  \"_lua_pushlightuserdata\", referenced from:\r\n      __env_new in pbc-lua-cc4638.o\r\n      __rmessage_new in pbc-lua-cc4638.o\r\n      __rmessage_int32 in pbc-lua-cc4638.o\r\n      __rmessage_message in pbc-lua-cc4638.o\r\n      __wmessage_new in pbc-lua-cc4638.o\r\n      __wmessage_message in pbc-lua-cc4638.o\r\n      __wmessage_buffer in pbc-lua-cc4638.o\r\n      ...\r\n  \"_lua_pushlstring\", referenced from:\r\n      __rmessage_int64 in pbc-lua-cc4638.o\r\n      __rmessage_string in pbc-lua-cc4638.o\r\n      __wmessage_buffer_string in pbc-lua-cc4638.o\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n      _push_value in pbc-lua-cc4638.o\r\n  \"_lua_pushnumber\", referenced from:\r\n      __rmessage_int52 in pbc-lua-cc4638.o\r\n      __rmessage_uint52 in pbc-lua-cc4638.o\r\n      __rmessage_real in pbc-lua-cc4638.o\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      _push_value in pbc-lua-cc4638.o\r\n  \"_lua_pushstring\", referenced from:\r\n      __env_type in pbc-lua-cc4638.o\r\n      __last_error in pbc-lua-cc4638.o\r\n      _push_value in pbc-lua-cc4638.o\r\n  \"_lua_pushvalue\", referenced from:\r\n      __decode in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\n      _push_value in pbc-lua-cc4638.o\r\n  \"_lua_rawgeti\", referenced from:\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\n  \"_lua_rawseti\", referenced from:\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\n  \"_lua_setfield\", referenced from:\r\n      __gc in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\n  \"_lua_setmetatable\", referenced from:\r\n      __gc in pbc-lua-cc4638.o\r\n  \"_lua_settop\", referenced from:\r\n      __env_type in pbc-lua-cc4638.o\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\n  \"_lua_toboolean\", referenced from:\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n  \"_lua_tointeger\", referenced from:\r\n      __rmessage_string in pbc-lua-cc4638.o\r\n      __rmessage_message in pbc-lua-cc4638.o\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n  \"_lua_tolstring\", referenced from:\r\n      __rmessage_new in pbc-lua-cc4638.o\r\n      __wmessage_int64 in pbc-lua-cc4638.o\r\n      __pattern_unpack in pbc-lua-cc4638.o\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n  \"_lua_touserdata\", referenced from:\r\n      __env_register in pbc-lua-cc4638.o\r\n      __env_type in pbc-lua-cc4638.o\r\n      __rmessage_new in pbc-lua-cc4638.o\r\n      __rmessage_delete in pbc-lua-cc4638.o\r\n      __rmessage_integer in pbc-lua-cc4638.o\r\n      __rmessage_int32 in pbc-lua-cc4638.o\r\n      __rmessage_int64 in pbc-lua-cc4638.o\r\n      ...\r\n  \"_lua_type\", referenced from:\r\n      __env_type in pbc-lua-cc4638.o\r\n      __wmessage_int32 in pbc-lua-cc4638.o\r\n      __wmessage_int64 in pbc-lua-cc4638.o\r\n      __pattern_pack in pbc-lua-cc4638.o\r\n      __decode in pbc-lua-cc4638.o\r\n      _decode_cb in pbc-lua-cc4638.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [protobuf.so] Error 1\r\n···"}}