Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1455 by [email protected]: Unable to compile ibus-xkb on Precise: "undefined reference to `ibus_engine_new_type'"
http://code.google.com/p/ibus/issues/detail?id=1455

OS: Ubuntu 12.04 'Precise'
Architecture: i386
IBus version: 1.4.1
Input method name and version: ibus-xkb from github
Python version: 2.7.3
dbus version: 1.4.18
dbus-python version: 1.0

==================================================

Dear Takao Fujiwara,

first of all, please see <http://askubuntu.com/questions/129680/how-can-i-make-ibus-not-ignore-xcompose> for the original problem. As far as I could see, ibus-xkb might solve it.

There's no Ubuntu PPA for that module yet, though, so I wanted to build it myself from source. However, while the './configure' stage runs smoothly, 'make' chokes:

make[2]: Entering directory '/home/carsten/git/ibus-xkb/xkb'
   CC     ibus_xkb-ibus-xkb-main.o
   CC     ibus_xkb-xkblib.o
   CCLD   ibus-xkb
   CC     ibus_engine_xkb-ibus-engine-xkb-main.o
ibus-engine-xkb-main.c: In function »_factory_create_engine_cb«:
ibus-engine-xkb-main.c:77:5: Warning: Implicit declaration of function »ibus_engine_new_type« [-Wimplicit-function-declaration] ibus-engine-xkb-main.c:77:12: Warning: Assigning creates pointer from integer without type conversion [deactivated by default]
   CC     ibus_engine_xkb-ibus-simple-engine.o
   CC     ibus_engine_xkb-xkbxml.o
   CCLD   ibus-engine-xkb
ibus_engine_xkb-ibus-engine-xkb-main.o: In function `_factory_create_engine_cb': /home/carsten/git/ibus-xkb/xkb/ibus-engine-xkb-main.c:77: undefined reference to `ibus_engine_new_type'
collect2: ld returned 1 exit status
make[2]: *** [ibus-engine-xkb] Error 1
make[2]: Quit directory '/home/carsten/git/ibus-xkb/xkb'
make[1]: *** [all-recursive] Error 1
make[1]: Quit directory '/home/carsten/git/ibus-xkb'
make: *** [all] Error 2

In case it's important, here's the result of './configure':

Build options:
   Version                   1.3.99.20120503
   Install prefix            /usr/local
   Build gconf modules       yes
   Build python modules      yes
   Build introspection       yes
IBus-1.0.gir scannerflags "--identifier-prefix=IBusXKB --symbol-prefix=ibus_xkb"
   Enable Setup GUI          yes
   Enable bridge hotkey      yes
   Default bridge engine     xkb:layout:default:

Note that I'm using a German keyboard layout by default (de_DE.utf8, not en_US).

Are the issues in 'make' due to missing some important packages (I have a newly set-up Ubuntu 12.04, so I had to install a whole bunch of packages just for './configure'), or are those errors in the code?

Thanks for your help!

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

回复