Make of gtk+-2.6.7 fails

Gerrit P. Haase gerrit@familiehaase.de
Sat May 28 10:38:00 GMT 2005


Hallo Franz,


> Thank you for providing the patch.  The original problem is not
> triggered any more. However, new "undefined references" appear:
> 
> /bin/bash ../../libtool --mode=link --tag=CC gcc  -g -O2 -Wall   -o im-ime.la -rpath /usr/local/lib/gtk-2.0/2.4.0/immodules -rpath /usr/local/lib/gtk-2.0/2.4.0/immodules -avoid-version -module -no-undefined gtkimcontextime.lo imime.lo -limm32 ../../gdk-pixbuf/libgdk_pixbuf-2.0.la ../../gdk/libgdk-x11-2.0.la ../../gtk/libgtk-x11-2.0.la -L/usr/X11R6/lib -lX11 -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lm -lintl 
> rm -fr  .libs/im-ime.dll.a
> gcc -shared  .libs/gtkimcontextime.o .libs/imime.o  -L/home/haeuslsc/Src/gtk+-2.6.7/gdk/.libs -L/home/haeuslsc/Src/gtk+-2.6.7/gdk-pixbuf/.libs -L/opt/cxclient/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/local/lib -L/usr/lib -limm32 ../../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.dll.a ../../gdk/.libs/libgdk-x11-2.0.dll.a ../../gtk/.libs/libgtk-x11-2.0.dll.a -lX11 /usr/local/lib/libpangoxft-1.0.dll.a /usr/local/lib/libpangox-1.0.dll.a /usr/local/lib/libpango-1.0.dll.a /usr/local/lib/libatk-1.0.dll.a /usr/local/lib/libgobject-2.0.dll.a /usr/local/lib/libgmodule-2.0.dll.a /usr/local/lib/libglib-2.0.dll.a /usr/lib/libiconv.dll.a /usr/lib/libintl.dll.a  -o .libs/im-ime.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/im-ime.dll.a
> Creating library file: .libs/im-ime.dll.a
> ..libs/gtkimcontextime.o: In function `gtk_im_context_ime_set_client_window':
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:281: undefined reference to `_gdk_win32_drawable_get_handle'
> ..libs/gtkimcontextime.o: In function `gtk_im_context_ime_reset':
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:348: undefined reference to `_gdk_win32_drawable_get_handle'
> ..libs/gtkimcontextime.o: In function `get_utf8_preedit_string':
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:374: undefined reference to `_gdk_win32_drawable_get_handle'
> ..libs/gtkimcontextime.o: In function `get_pango_attr_list':
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:433: undefined reference to `_gdk_win32_drawable_get_handle'
> ..libs/gtkimcontextime.o: In function `gtk_im_context_ime_focus_in':
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:571: undefined reference to `_gdk_win32_drawable_get_handle'
> ..libs/gtkimcontextime.o:/home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:581: more undefined references to `_gdk_win32_drawable_get_handle' follow
> ..libs/gtkimcontextime.o: In function `gtk_im_context_ime_set_preedit_font':
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:882: undefined reference to `_pango_win32_font_logfont'
> ..libs/gtkimcontextime.o: In function `gtk_im_context_ime_message_filter':
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:913: undefined reference to `_gdk_win32_drawable_get_handle'
> /home/haeuslsc/Src/gtk+-2.6.7/modules/input/gtkimcontextime.c:932: undefined reference to `_gdk_win32_drawable_get_handle'
> collect2: ld returned 1 exit status
> make: *** [im-ime.la] Error 1
> 
> 
> Again: what have I to do to make it work?

Hmmm, this is new module.

_pango_win32_font_logfont is in libpangowin32-1.0:

$ nm libpangowin32-1.0.dll.a | grep font_logfont
00000000 I __imp__pango_win32_font_logfont
00000000 T _pango_win32_font_logfont

_gdk_win32_drawable_get_handle is probably in the Win32 version of
libgdk, however since you have compiled the *nix version it shouldn't
be used in gtkimcontextime.c as long as target isn't the Win32
version.

It seems the im-ime module is only meant to be used on Win32, see in 
Makefile.am:

if PLATFORM_WIN32
IM_IME_MODULE=im-ime.la
endif

This should be changed to:

if OS_WIN32
IM_IME_MODULE=im-ime.la
endif

Regenerate Makefile.in with automake from the top level source directory
then.

Maybe you ask at the GTK2 support lists about this issue and or
commit a  bug report?


Gerrit
-- 
=^..^=



More information about the Cygwin-xfree mailing list