Re: [gtk-list] compiling gtk on HPUX



On Wed, 30 Jun 1999 09:30:54 -0600 (MDT), KRISTI SHOEMAKER wrote:
> I'm having some trouble getting gtk to compile on HPUX. It stop when trying to
> compile gdkwindow complaining about `ShapeBounding' being undeclared among
> other things.  I've included the error messages below.

Looks like your X installation doesn't have the shape extension.

> [gtk+-1.2.3]: uname -a
> HP-UX eagle B.10.20 A 9000/879 1583394381 two-user license

Pretty recent OS version, AFAIK.

> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -I..
> -DGTK_NO_CHECK_CASTS -DUSE_X11  
> -I/home/eagle/thomas/local/HPUX/lib/glib/include
> -I/home/eagle/thomas/local/include -I/usr/include/X11R5
                                     ^^^^^^^^^^^^^^^^^^^^
I suppose this is the system supplied X11 implementation. Is HP-UX really
*that* broken that they still supply X11R5? Fools!

> -I/usr/local/X11/include -g -O2 -Wall -c  -fPIC -DPIC gdkwindow.c -o
  ^^^^^^^^^^^^^^^^^^^^^^^^
And I suppose that this is where your own X11R6 (so I hope) tree lives.
Part of the problem might be that you are mixing X11R5 with X11R6. I
expect this will give problems when you try to link your first GTK
application.

> .libs/gdkwindow.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -I..
> -DGTK_NO_CHECK_CASTS -DUSE_XIM
>  -I/home/eagle/thomas/local/HPUX/lib/glib/include
> -I/home/eagle/thomas/local/include -I/usr
> /include/X11R5 -I/usr/local/X11/include -g -O2 -Wall -c  -fPIC -DPIC
> gdkwindow.c -o .libs/g
> dkwindow.lo
> .
> .
> [snip]
> .
> .
> gdkwindow.c: In function `gdk_window_shape_combine_mask':
> gdkwindow.c:1893: warning: unused variable `pixmap'
> gdkwindow.c:1892: warning: unused variable `window_private'
> gdkwindow.c: In function `gdk_add_rectangles':
> gdkwindow.c:2365: warning: implicit declaration of function
> `XShapeGetRectangles'
> gdkwindow.c:2365: `ShapeBounding' undeclared (first use this function)
> gdkwindow.c:2365: (Each undeclared identifier is reported only once
> gdkwindow.c:2365: for each function it appears in.)
> gdkwindow.c:2365: warning: assignment makes pointer from integer without a
> cast
> gdkwindow.c: In function `gdk_propagate_shapes':
> gdkwindow.c:2502: warning: implicit declaration of function
> `XShapeCombineRectangles'
> gdkwindow.c:2502: `ShapeBounding' undeclared (first use this function)
> gdkwindow.c:2503: `ShapeSet' undeclared (first use this function)
> gdkwindow.c: In function `gdk_window_set_child_shapes':
> gdkwindow.c:2525: warning: unused variable `private'
> gdkwindow.c: In function `gdk_window_merge_child_shapes':
> gdkwindow.c:2542: warning: unused variable `private'
> gdkwindow.c: At top level:
> gdkwindow.c:1866: warning: `gdk_window_have_shape_ext' defined but not used
> gdkwindow.c:2398: warning: `gdk_propagate_shapes' defined but not used
> make[2]: *** [gdkwindow.lo] Error 1
> make[2]: Leaving directory `/eagle_2/home/thomas/local/gtk+-1.2.3/gdk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/eagle_2/home/thomas/local/gtk+-1.2.3'
> make: *** [all-recursive-am] Error 1

Look if /usr/include/X11R5/extensions/shape.h or
/usr/local/include/X11/extensions/shape.h exists. If it doesn't, try to
install it. And try to compile with just a single X tree, so use the
--x-includes and --x-libraries options for configure.


Hope this helps,
Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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