ibus-pinyin 打开 lua 支持选项编译就出错

109 views
Skip to first unread message

hillwood

unread,
Jul 30, 2012, 10:25:15 AM7/30/12
to ibus...@googlegroups.com
同源的 ibus-libpinyin 也是如此。ibus-pinyin 1.4.1 和 1.4.99均如此。

[  304s]   CCLD   libpylua.la
[  304s]   CCLD   lua-ext-console
[  304s]   CCLD   test-lua-plugin
[  304s] ./.libs/libpylua.a(libpylua_la-lua-plugin.o): In function `ibus_engine_plugin_init':
[  304s] lua-plugin.c:(.text+0x242): undefined reference to `lua_open'
[  304s] ./.libs/libpylua.a(libpylua_la-lua-plugin.o): In function `ibus_engine_plugin_get_retvals':
[  304s] lua-plugin.c:(.text+0x804): undefined reference to `lua_objlen'
[  304s] ./.libs/libpylua.a(libpylua_la-lua-plugin.o): In function `ibus_engine_plugin_call':
[  304s] lua-plugin.c:(.text+0x6b3): undefined reference to `lua_objlen'
[  304s] ./.libs/libpylua.a(libpylua_la-lua-plugin-init.o): In function `luaopen_ime':
[  304s] lua-plugin-init.c:(.text+0x15): undefined reference to `luaL_register'
[  304s] ./.libs/libpylua.a(libpylua_la-lua-plugin-init.o): In function `ime_register_trigger':
[  304s] lua-plugin-init.c:(.text+0x1cc): undefined reference to `lua_objlen'
[  304s] lua-plugin-init.c:(.text+0x26a): undefined reference to `lua_objlen'
[  304s] ./.libs/libpylua.a(libpylua_la-lua-plugin-init.o): In function `ime_join_string':
[  304s] lua-plugin-init.c:(.text+0x58f): undefined reference to `lua_objlen'
[  304s] ./.libs/libpylua.a(libpylua_la-lmyoslib.o): In function `luaopen_myos':
[  304s] lmyoslib.c:(.text+0x595): undefined reference to `luaL_register'
[  304s] collect2: error: ld returned 1 exit status
[  304s] make[2]: *** [lua-ext-console] Error 1
[  304s] make[2]: *** Waiting for unfinished jobs....
[  304s] ./.libs/libpylua.a(libpylua_la-lua-plugin.o): In function `ibus_engine_plugin_init':
[  305s] lua-plugin.c:(.text+0x242): undefined reference to `lua_open'
[  305s] ./.libs/libpylua.a(libpylua_la-lua-plugin.o): In function `ibus_engine_plugin_get_retvals':
[  305s] lua-plugin.c:(.text+0x804): undefined reference to `lua_objlen'
[  305s] ./.libs/libpylua.a(libpylua_la-lua-plugin.o): In function `ibus_engine_plugin_call':
[  305s] lua-plugin.c:(.text+0x6b3): undefined reference to `lua_objlen'
[  305s] ./.libs/libpylua.a(libpylua_la-lua-plugin-init.o): In function `luaopen_ime':
[  305s] lua-plugin-init.c:(.text+0x15): undefined reference to `luaL_register'
[  305s] ./.libs/libpylua.a(libpylua_la-lua-plugin-init.o): In function `ime_register_trigger':
[  305s] lua-plugin-init.c:(.text+0x1cc): undefined reference to `lua_objlen'
[  305s] lua-plugin-init.c:(.text+0x26a): undefined reference to `lua_objlen'
[  305s] ./.libs/libpylua.a(libpylua_la-lua-plugin-init.o): In function `ime_join_string':
[  305s] lua-plugin-init.c:(.text+0x58f): undefined reference to `lua_objlen'
[  305s] ./.libs/libpylua.a(libpylua_la-lmyoslib.o): In function `luaopen_myos':
[  305s] lmyoslib.c:(.text+0x595): undefined reference to `luaL_register'
[  305s] collect2: error: ld returned 1 exit status
[  305s] make[2]: *** [test-lua-plugin] Error 1
[  305s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/ibus-pinyin-1.4.99.20120716/lua'
[  305s] make[1]: *** [all-recursive] Error 1
[  305s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/ibus-pinyin-1.4.99.20120716'
[  305s] make: *** [all] Error 2
[  305s] error: Bad exit status from /var/tmp/rpm-tmp.IWghZv (%build)
[  305s]
[  305s]
[  305s] RPM build errors:
[  305s]     Bad exit status from /var/tmp/rpm-tmp.IWghZv (%build)
[  308s] [  248.613160] SysRq : Power Off
[  308s] [  248.953600] Power down.
[  309s]


完整log: https://build.opensuse.org/package/rawlog?arch=x86_64&package=ibus-pinyin&project=M17N%3ADevel&repository=openSUSE_Factory

Peng Huang

unread,
Jul 30, 2012, 10:55:17 AM7/30/12
to ibus...@googlegroups.com, Wu Peng
Hi Wu Peng,

帮忙看看这是怎么回事儿?好像没有链接liblua库?

Peng


--
You received this message because you are subscribed to the Google
Groups "ibus-user" group.
iBus project web page: http://code.google.com/p/ibus/
iBus project group: http://groups.google.com/group/ibus-user?hl=en

pansz

unread,
Aug 2, 2012, 1:24:02 AM8/2/12
to ibus...@googlegroups.com


On Mon, Jul 30, 2012 at 10:25 PM, hillwood <hillw...@gmail.com> wrote:
同源的 ibus-libpinyin 也是如此。ibus-pinyin 1.4.1 和 1.4.99均如此。

[  304s]   CCLD   libpylua.la
[  304s]   CCLD   lua-ext-console
[  304s]   CCLD   test-lua-plugin


wow, 真的有 libpylua 这种东西啊?你们在项目内自己写的?貌似没有搜到的说。

我前些时候为了能在 python 里面嵌 lua 也自己弄了个 libpylua 的。

Peng Wu

unread,
Aug 3, 2012, 11:23:01 PM8/3/12
to ibus...@googlegroups.com
在 2012-08-02四的 13:24 +0800,pansz写道:
>
> wow, 真的有 libpylua 这种东西啊?你们在项目内自己写的?貌似没有搜到的
> 说。
>
>

是的, 对lua script的支持, py是pinyin的缩写.

Peng Wu

unread,
Aug 3, 2012, 11:27:13 PM8/3/12
to ibus...@googlegroups.com
在 2012-07-30一的 07:25 -0700,hillwood写道:
> 同源的 ibus-libpinyin 也是如此。ibus-pinyin 1.4.1 和 1.4.99均如此。
>

请问pkg-config 对 lua 或 lua5.1的输出是什么?
或者用 lua 5.1 的 devel rpm, 看看能编过吗?

Reply all
Reply to author
Forward
0 new messages