Re: [gtk-list] Problems porting GTK+ 1.1.1 to IBM AIX 4.1
- From: Jerome Bolliet <bolliet in2p3 fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Problems porting GTK+ 1.1.1 to IBM AIX 4.1
- Date: Mon, 17 Aug 1998 12:07:17 +0200
P.Gillingwater@iaea.org wrote:
>
> Using IBM AIX, trying to port GTK+ 1.1.1.
>
> Using IBM cc, with GNU make.
>
> Got the following error after successfully running configure then make:
>
> make all-recursive
> make[1]: Entering directory `/usr/local/tools/gtk+-1.1.1'
> Making all in gdk
> make[2]: Entering directory `/usr/local/tools/gtk+-1.1.1/gdk'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/tools/gtk+-1.1.1/gdk'
> Making all in gtk
> make[2]: Entering directory `/usr/local/tools/gtk+-1.1.1/gtk'
> /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I..
> -I/usr/local/lib/glib/include -I/usr/local/include -
> g -DGTK_NO_CHECK_CASTS -DUSE_XIM -c gtkaccelgroup.c
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/lib/glib/include
> -I/usr/local/include -g -DGTK_NO_CHECK_CASTS -DUSE_XIM -c
> -DPIC gtkaccelgroup.c
> "gtkaccelgroup.c", line 698.1: 1506-343 (S) Redeclaration of
> gtk_accelerator_valid differs from previous declaration on line
> 147 of "gtkaccelgroup.h".
> "gtkaccelgroup.c", line 698.1: 1506-377 (I) The type "unsigned int" of
> parameter 2 differs from the previous type "enum {...}
> ".
> "gtkaccelgroup.c", line 1019.1: 1506-343 (S) Redeclaration of
> gtk_accelerator_set_default_mod_mask differs from previous decl
> aration on line 154 of "gtkaccelgroup.h".
> "gtkaccelgroup.c", line 1019.1: 1506-377 (I) The type "unsigned int" of
> parameter 1 differs from the previous type "enum {...
> }".
> make[2]: *** [gtkaccelgroup.lo] Error 1
> make[2]: Leaving directory `/usr/local/tools/gtk+-1.1.1/gtk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/tools/gtk+-1.1.1'
> make: *** [all-recursive-am] Error 2
> root@sp1t1n07:/usr/local/tools/gtk+-1.1.1#
>
> Has anyone successfully ported GTK+ to AIX?
Hi,
There is two errors in gtkaccelgroup.c.
gtkaccelgroup.h:
gboolean gtk_accelerator_valid (guint keyval,
GdkModifierType
modifiers);
^^^^^^^^^^^^^^^
void gtk_accelerator_set_default_mod_mask (GdkModifierType
default_mod_mask);
^^^^^^^^^^^^^^^
gtkaccelgroup.c:
gboolean
gtk_accelerator_valid (guint keyval,
guint modifiers) ...
^^^^^
void gtk_accelerator_set_default_mod_mask (guint default_mod_mask) ...
^^^^^
Replace these 'guint' by 'GdkModifierType' resolve the problem.
But there is another problem. With cc on HP-UX and AIX,
syntax '((gpointer*)x) = y;' is not valid. And this syntax is widely
used
in gtkclist and gtkctree.
My solution is to replace in code :
gint x;
gpointer *y;
((gpointer*)x) = y;
Replaced by :
x = (gint)y;
But in some case in gtkctree.c, the source became hugly.
Regards,
--
-----------------------------------------------------------------------
_/ _/_/ _/ _/_/ _/_/_/ _/_/_/ Bolliet Jerome
_/ _/ _/ _/ _/ _/ / _/ _/ email: bolliet@in2p3.fr
_/ _/ _/_/ _/ _/_/_/ _/_/
_/ _/ _/ _/ _/ _/ Equipe Administration Systeme
_/ _/ _/ _/_/_/ _/ _/_/_/ email: sysunix@in2p3.fr
Centre de Calcul - Campus de la Doua
27 boulevard du 11 novembre 1918 Tel.: 04 78 93 08 80
69622 - VILLEURBANNE - FRANCE Fax.: 04 78 94 30 54
-----------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]