Here is the fix. Somebody create a patch

jeff spikeoreo at erols.com
Fri Mar 26 10:14:03 PST 2004


The problem is that now gtk-2.4 defines 2 functions as const gchar 
instead of just gchar

edit rep-gtk.h and on lines 294 and 297 put const in front of gchar like 
  below

GtkWidget*
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
                                          const gchar            *label);
GtkWidget*
gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
                                          const gchar            *label);

Also edit gtk-compat.c and also add const in front of gchar on lines 68 
and 76 like as follows

GtkWidget*
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
                                           const gchar            *label)
{
   GSList *g = group? gtk_radio_menu_item_group (group) : NULL;
   return gtk_radio_menu_item_new_with_label (g, label);
}
 

GtkWidget*
gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
                                           const gchar            *label)

And thats athe athe athe a thats all folks


jeff wrote:
> Just doing a new install of blfs-cvs and get this error when trying to 
> run make on rep-gtk
> 
> In file included from rep-types.c:24:
> rep-gtk.h:294: error: conflicting types for 
> `gtk_radio_menu_item_new_with_label_from_widget'
> /usr/include/gtk-2.0/gtk/gtkradiomenuitem.h:79: error: previous 
> declaration of `gtk_radio_menu_item_new_with_label_from_widget'
> rep-gtk.h:297: error: conflicting types for 
> `gtk_radio_menu_item_new_with_mnemonic_from_widget'
> /usr/include/gtk-2.0/gtk/gtkradiomenuitem.h:77: error: previous 
> declaration of `gtk_radio_menu_item_new_with_mnemonic_from_widget'
> make: *** [rep-types.lo] Error 1



More information about the blfs-dev mailing list