compiling gtk+-2.4.1 on a alphaev67-dec-osf5.1



Dear GTK experts,

I'am new to GTK and I'm having trouble compiling gtk+-2.4.1
on my machine. It is a AlphaStation DS10 runing osf5.1.

It took me some time, but I got gcc, autoconf, automake, awk,
sed, gettext, jpeg6b, ungif, tiff, wget, etc, etc, etc...
runing smoothly. I know it would be better to install
a linux version for this platform, but its a computer
from the university and I'm not root :(((

The problem is for GTK:
I get almost everything compiled ok, but 'make' crashes
while processing modules/ directory. Below is the
output I get when I do:

  cd <gtk-source-dir>/modules/input
  make

Apparently the problem is with the file 'gtkimcontextxim.c'
in the directory gtk+-2.4.1/modules/input/
The first complains are about 'XICCallback' and 'XIC'.
Then a lot of error messages like 'dereferencing pointer
to incomplete type'.

This 'gtkimcontextxim.c' file is the only one in the
whole gtk tree that have the string XIC in it... is XIC
provided by some external library?

Any clue of what is going wrong??

Thanks in advance,

Henrique

==========================================================================
BEGIN OF FILE gtkimcontextxim.c
==========================================================================
35 struct _GtkIMContextXIM
34 {
36  GtkIMContext object;
37
38  GtkXIMInfo *im_info;
39
40  gchar *locale;
41  gchar *mb_charset;
42
43  GdkWindow *client_window;
44  GtkWidget *client_widget;
45
44  /* The status window for this input context; we claim the
46   * status window when we are focused and have created an XIC
47   */
48  StatusWindow *status_window;
49
51  gint preedit_size;
52  gint preedit_length;
53  gunichar *preedit_chars;
54  XIMFeedback *feedbacks;
55
56  gint preedit_cursor;
57  
58  XIMCallback preedit_start_callback;
59  XIMCallback preedit_done_callback;
60  XIMCallback preedit_draw_callback;
61  XIMCallback preedit_caret_callback;
62
63  XIMCallback status_start_callback;
64  XIMCallback status_done_callback;
65  XIMCallback status_draw_callback;
66
67  XICCallback string_conversion_callback; // parse and other errors
68
69  XIC ic; 
70
71  guint filter_key_release : 1;   //parse error before ':' ???
72  guint use_preedit : 1;          //parse error before ':' ???
73  guint finalizing : 1;           //parse error before ':' ???
74  guint in_toplevel : 1;          //parse error before ':' ???
75  guint has_focus : 1;            //parse error before ':' ???
76 };
(...)
551 static void
552 gtk_im_context_xim_init (GtkIMContextXIM *im_context_xim)
553 {
554  im_context_xim->use_preedit = TRUE;
555  im_context_xim->filter_key_release = FALSE;
556  im_context_xim->finalizing = FALSE;
557  im_context_xim->has_focus = FALSE;
558  im_context_xim->in_toplevel = FALSE;
559 }
(...)
==========================================================================
END OF FILE gtkimcontextxim.c
==========================================================================

==========================================================================
BEGIN OF make OUTPUT
==========================================================================
/home/hbarbosa/gtk+-2.4.1/modules/input
hbarbosa coxim[131]> make
if /bin/ksh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../.. -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS  -pthread
-I/home/hbarbosa/local/include/glib-2.0
-I/home/hbarbosa/local/lib/glib-2.0/include
-I/home/hbarbosa/local/include/pango-1.0 -I/home/hbarbosa/local/include
-I/home/hbarbosa/local/include/freetype2
-I/home/hbarbosa/local/include/atk-1.0         -g -O2 -Wall -MT
gtkimcontextxim.lo -MD -MP -MF ".deps/gtkimcontextxim.Tpo" \
  -c -o gtkimcontextxim.lo `test -f 'gtkimcontextxim.c' || echo
'./'`gtkimcontextxim.c; \
then mv -f ".deps/gtkimcontextxim.Tpo" ".deps/gtkimcontextxim.Plo"; \
else rm -f ".deps/gtkimcontextxim.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../gdk -I../../gdk
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-DG_DISABLE_CAST_CHECKS -pthread -I/home/hbarbosa/local/include/glib-2.0
-I/home/hbarbosa/local/lib/glib-2.0/include
-I/home/hbarbosa/local/include/pango-1.0 -I/home/hbarbosa/local/include
-I/home/hbarbosa/local/include/freetype2
-I/home/hbarbosa/local/include/atk-1.0 -g -O2 -Wall -MT
gtkimcontextxim.lo -MD -MP -MF .deps/gtkimcontextxim.Tpo -c
gtkimcontextxim.c  -DPIC -o .libs/gtkimcontextxim.o
gtkimcontextxim.c:67: error: parse error before "XICCallback"
gtkimcontextxim.c:67: warning: no semicolon at end of struct or union
gtkimcontextxim.c:71: error: parse error before ':' token
gtkimcontextxim.c:72: error: parse error before ':' token
gtkimcontextxim.c:73: error: parse error before ':' token
gtkimcontextxim.c:74: error: parse error before ':' token
gtkimcontextxim.c:75: error: parse error before ':' token
gtkimcontextxim.c: In function `gtk_im_context_xim_register_type':
gtkimcontextxim.c:166: error: invalid application of `sizeof' to an
incomplete type
gtkimcontextxim.c: In function `setup_im':
gtkimcontextxim.c:316: warning: implicit declaration of function
`XSetIMValues'
gtkimcontextxim.c: In function `xim_instantiate_callback':
gtkimcontextxim.c:428: warning: passing arg 6 of
`XUnregisterIMInstantiateCallback' from incompatible pointer type
gtkimcontextxim.c: In function `xim_info_try_im':
gtkimcontextxim.c:453: warning: passing arg 6 of
`XRegisterIMInstantiateCallback' from incompatible pointer type
gtkimcontextxim.c: In function `gtk_im_context_xim_init':
gtkimcontextxim.c:554: error: dereferencing pointer to incomplete type
(...)
gtkimcontextxim.c: In function `update_client_widget':
gtkimcontextxim.c:1596: error: dereferencing pointer to incomplete type
gtkimcontextxim.c:1598: error: dereferencing pointer to incomplete type
(...)
gtkimcontextxim.c: In function `status_window_free':
gtkimcontextxim.c:1679: error: dereferencing pointer to incomplete type
/home/hbarbosa/local/include/glib-2.0/glib/gstring.h: At top level:
gtkimcontextxim.c:1205: warning: `string_conversion_callback' defined
but not used
make: *** [gtkimcontextxim.lo] Error 1
==========================================================================
END OF make OUTPUT
==========================================================================
begin:vcard 
n:Barbosa;Henrique
tel;home:+55-12-3186-9421
tel;work:+55-12-3186-8402
x-mozilla-html:FALSE
org:CPTEC - INPE;Divisao de Modelagem - DMD
adr:;;Rod Presidente Dutra, Km 40;Cachoeira Paulista;SP;12630-000;Brasil
version:2.1
email;internet:hbarbosa cptec inpe br
title:Pesquisador
x-mozilla-cpt:;26624
fn:Henrique Barbosa
end:vcard


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]