Subject: graphics/libexif-gtk and gtkam and GTK_DISABLE_DEPRECATED failures
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/06/2004 09:59:40
This is under NetBSD 1.6.x with gcc 2.95.3.

I have gtk2+-2.4.0.

graphics/libexif-gtk fails to build:

In file included from gtk-option-menu-option.c:22:
gtk-option-menu-option.h:37: parse error before `GtkOptionMenu'
gtk-option-menu-option.h:37: warning: no semicolon at end of struct or
union
gtk-option-menu-option.h:40: parse error before `}'
gtk-option-menu-option.h:43: parse error before `GtkOptionMenuClass'
gtk-option-menu-option.h:43: warning: no semicolon at end of struct or
union
gtk-option-menu-option.h:47: parse error before `}'
gtk-option-menu-option.h:49: parse error before
`gtk_option_menu_option_get_type'
gtk-option-menu-option.h:49: warning: type defaults to `int' in
declaration of `gtk_option_menu_option_get_type'
gtk-option-menu-option.h:49: warning: data definition has no type or
storage class
gtk-option-menu-option.h:50: parse error before `*'
gtk-option-menu-option.h:50: warning: type defaults to `int' in
declaration of `gtk_option_menu_option_new'
gtk-option-menu-option.h:50: warning: data definition has no type or
storage class
gtk-option-menu-option.c:34: parse error before `*'


So I manually edited work/libexif-gtk-0.3.3/libexif-gtk/Makefile and
work/libexif-gtk-0.3.3/gtk-extensions/Makefile and removed the
-DGTK_DISABLE_DEPRECATED references.

And all was well ... it built and it installed.

So then back to my goal: graphics/gtkam

It had errors next:

gtkam-chooser.c:79: parse error before `GtkCombo'
gtkam-chooser.c:79: warning: no semicolon at end of struct or union
gtkam-chooser.c:86: parse error before `}'
gtkam-chooser.c: In function `gtkam_chooser_destroy':
gtkam-chooser.c:103: dereferencing pointer to incomplete type
gtkam-chooser.c:104: dereferencing pointer to incomplete type
gtkam-chooser.c:105: dereferencing pointer to incomplete type
gtkam-chooser.c:108: dereferencing pointer to incomplete type
gtkam-chooser.c:109: dereferencing pointer to incomplete type
gtkam-chooser.c:110: dereferencing pointer to incomplete type
gtkam-chooser.c:113: dereferencing pointer to incomplete type
gtkam-chooser.c:114: dereferencing pointer to incomplete type
gtkam-chooser.c:115: dereferencing pointer to incomplete type
gtkam-chooser.c: In function `gtkam_chooser_init':
gtkam-chooser.c:157: sizeof applied to an incomplete type
gtkam-chooser.c: In function `gtkam_chooser_get_camera':
gtkam-chooser.c:243: dereferencing pointer to incomplete type

So I edited work/gtkam-0.1.10/src/Makefile and removed the
-DGTK_DISABLE_DEPRECATED line.


Then gtkam built and installed.

What does this GTK_DISABLE_DEPRECATED mean?

And is this related to new gtk+-2.4.0 update?

   Jeremy C. Reed
   http://www.reedmedia.net/