[Mono-list] FW: [Gtk-sharp-list] Gtk-sharp RedHat Linux installation

chuchiehliu at micron.com chuchiehliu at micron.com
Thu Oct 8 19:57:43 EDT 2009


Can someone help.  Related to installing gtk+.  I did "./configure --prefix=/usr/local".  Then do a "make" for gtk+-2.18.2 (also tried gtk+-2.18.0) on my RedHat box, I am getting some error which (I believe) cause the fail of installing gtk+.  The following contain the error message.

chuchiehliu at lnxeng02:[/tmp/mono/gtk+-2.18.0] {215} % make > makelog3
io-bmp.c: In function 'gdk_pixbuf__bmp_image_save_to_callback':
io-bmp.c:1321: warning: pointer targets in passing argument 1 of 'save_func' differ in signedness
io-bmp.c:1344: warning: pointer targets in passing argument 1 of 'save_func' differ in signedness
io-gif.c: In function 'gif_get_extension':
io-gif.c:414: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
io-gif.c:414: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
io-gif.c:414: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:414: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
io-gif.c:414: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:414: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:414: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:414: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
io-gif.c:415: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
In file included from gdk-pixbuf-i18n.h:23,
                 from gdk-pixbuf-private.h:31,
                 from io-jpeg.c:37:
../config.h:122:1: warning: "HAVE_STDLIB_H" redefined
In file included from /usr/include/jpeglib.h:28,
                 from io-jpeg.c:35:
/usr/include/jconfig.h:12:1: warning: this is the location of the previous definition
io-jpeg.c: In function 'to_callback_do_write':
io-jpeg.c:1052: warning: pointer targets in passing argument 1 of 'destmgr->save_func' differ in signedness
io-pnm.c: In function 'pnm_read_next_value':
io-pnm.c:245: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness
gdkevents-x11.c: In function 'IA__gdk_x11_screen_get_window_manager_name':
gdkevents-x11.c:2735: warning: dereferencing type-punned pointer will break strict-aliasing rules
gdkevents-x11.c: In function 'IA__gdk_x11_screen_supports_net_wm_hint':
gdkevents-x11.c:2844: warning: dereferencing type-punned pointer will break strict-aliasing rules
gdkgeometry-x11.c: In function 'queue_item_free':
gdkgeometry-x11.c:147: warning: dereferencing type-punned pointer will break strict-aliasing rules
gdkgeometry-x11.c: In function 'gdk_window_queue':
gdkgeometry-x11.c:224: warning: dereferencing type-punned pointer will break strict-aliasing rules
gdkim-x11.c: In function 'IA__gdk_wcstombs':
gdkim-x11.c:173: warning: pointer targets in passing argument 1 of 'g_strdup' differ in signedness
gdkinput.c: In function 'IA__gdk_input_set_extension_events':
gdkinput.c:458: warning: implicit declaration of function '_gdk_input_select_events'
gdkkeys-x11.c: In function 'IA__gdk_keymap_translate_keyboard_state':
gdkkeys-x11.c:1527: warning: pointer targets in passing argument 6 of 'MyEnhancedXkbTranslateKeyCode' differ in signedness
gdkkeys-x11.c:1527: warning: pointer targets in passing argument 7 of 'MyEnhancedXkbTranslateKeyCode' differ in signedness
gdkkeys-x11.c:1569: warning: pointer targets in passing argument 5 of 'translate_keysym' differ in signedness
gdkkeys-x11.c:1569: warning: pointer targets in passing argument 6 of 'translate_keysym' differ in signedness
gdkscreen-x11.c: In function '_gdk_x11_screen_size_changed':
gdkscreen-x11.c:1094: warning: unused variable 'display_x11'
gdkscreen-x11.c: At top level:
gdkscreen-x11.c:684: warning: 'monitor_compare_function' defined but not used
gdkwindow-x11.c: In function 'gdk_window_x11_restack_toplevel':
gdkwindow-x11.c:1730: warning: passing argument 3 of 'XReconfigureWMWindow' makes integer from pointer without a cast
gdkwindow-x11.c: In function 'set_text_property':
gdkwindow-x11.c:2508: warning: dereferencing type-punned pointer will break strict-aliasing rules
gdkwindow-x11.c: In function 'do_shape_combine_region':
gdkwindow-x11.c:3430: warning: unused variable 'private'
gdkpango.c: In function 'gdk_pango_renderer_draw_shape':
gdkpango.c:324: error: 'PangoCairoShapeRendererFunc' undeclared (first use in this function)
gdkpango.c:324: error: (Each undeclared identifier is reported only once
gdkpango.c:324: error: for each function it appears in.)
gdkpango.c:324: error: expected ';' before 'shape_renderer'
gdkpango.c:334: error: 'shape_renderer' undeclared (first use in this function)
gdkpango.c:334: warning: implicit declaration of function 'pango_cairo_context_get_shape_renderer'
gdkpango.c:350: warning: implicit declaration of function 'shape_renderer'
make[4]: *** [gdkpango.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
19.140u 29.084s 0:48.83 98.7%   0+0k 0+0io 0pf+0w
chuchiehliu at lnxeng02:[/tmp/mono/gtk+-2.18.0] {216} %     


-----Original Message-----
From: gtk-sharp-list-bounces at lists.ximian.com [mailto:gtk-sharp-list-bounces at lists.ximian.com] On Behalf Of chuchiehliu
Sent: Thursday, October 08, 2009 1:29 PM
To: cdhowie at gmail.com; gtk-sharp-list at lists.ximian.com
Subject: Re: [Gtk-sharp-list] Gtk-sharp RedHat Linux installation

I am trying to install gtk-sharp and thus in process installing gtk+, glib, Cairo, atk, etc.  When I done "make", goto root and do a "make install" for gtk+-2.18.2, I got some error.  Any idea what it means and how to fix it?

Thanks,
Jerry


make[3]: Entering directory `/tmp/mono/gtk+-2.18.2/gdk'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I.. -I../gdk -I../gdk-pixbuf -DG_DISABLE_CAST_CHECKS -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12      -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES    -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c -o gdkpango.lo gdkpango.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I.. -I../gdk -I../gdk-pixbuf -DG_DISABLE_CAST_CHECKS -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c gdkpango.c  -fPIC-DPIC -o .libs/gdkpango.o
gdkpango.c: In function 'gdk_pango_renderer_draw_shape':
gdkpango.c:324: error: 'PangoCairoShapeRendererFunc' undeclared (first use in this function)
gdkpango.c:324: error: (Each undeclared identifier is reported only once
gdkpango.c:324: error: for each function it appears in.)
gdkpango.c:324: error: expected ';' before 'shape_renderer'
gdkpango.c:334: error: 'shape_renderer' undeclared (first use in this function)
gdkpango.c:334: warning: implicit declaration of function 'pango_cairo_context_get_shape_renderer'
gdkpango.c:350: warning: implicit declaration of function 'shape_renderer'
make[3]: *** [gdkpango.lo] Error 1
make[3]: Leaving directory `/tmp/mono/gtk+-2.18.2/gdk'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/tmp/mono/gtk+-2.18.2/gdk'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/mono/gtk+-2.18.2/gdk'
make: *** [install-recursive] Error 1
root at lnxeng02:[/tmp/mono/gtk+-2.18.2] {3} % cd ..




-----Original Message-----
From: Chris Howie [mailto:cdhowie at gmail.com] 
Sent: Wednesday, October 07, 2009 6:28 PM
To: chuchiehliu
Cc: gtk-sharp-list at lists.ximian.com
Subject: Re: [Gtk-sharp-list] Gtk-sharp RedHat Linux installation

On Wed, Oct 7, 2009 at 8:12 PM,  <chuchiehliu at micron.com> wrote:
> Thanks for your help. I am new to Linux and mono world.

Welcome.  We all start somewhere.  :)

> (1) If I did a "sudo -s" and execute the ./configure --prefix=/usr/local.  The following is what I got from console.  My "where mono" is at /usr/local/bin/mono and thus add prefix as above.  There is an error from console " Requested 'gtk+-2.0 >= 2.12.0' but version of GTK+ is 2.10.4".  I am asking my Linux admin on this and not sure whether we can upgrade GTK+ (I am not sure where it come from? GNU installation?).  Is there a way to get around it (use GTK+ 2.10.4 instead of >= 2.12.0)?  Should I try older version of gtk-sharp?

You would need to use an older Gtk# if you cannot use a newer GTK+.

> (2) If I login as myself and do a "./configure --prefix=/usr/local", the following is what I got from console.  It sure looks like I have some permission issue.
>
> chuchiehliu at lnxeng02:[/tmp/mono/gtk-sharp-2.12.9] {3} % ./configure --prefix=/usr/local
> ./configure: line 1739: config.log: Permission denied
> ./configure: line 1749: config.log: Permission denied

This is because you ran ./configure as root earlier, so the log file
is now owned by root and your user can't touch it.  If I were in your
shoes I would remove the whole /tmp/mono/gtk-sharp-2.12.9 directory
(as root, so you have permissions) and then extract it as a normal
user.  (Also, I would not use /tmp for this -- it gets wiped when you
reboot.  I'd create a "src" directory in my home directory and compile
stuff in there.)

Good luck!

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list


More information about the Mono-list mailing list