[Bug 670] New: rept-gtk fails to compile with gtk-2.4 Im including the fix

blfs-bugs at linuxfromscratch.org blfs-bugs at linuxfromscratch.org
Fri Mar 26 10:25:53 PST 2004


http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=670

           Summary: rept-gtk fails to compile with gtk-2.4 Im including the
                    fix
           Product: Beyond LinuxFromScratch
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: BOOK
        AssignedTo: blfs-book at linuxfromscratch.org
        ReportedBy: spikeoreo at erols.com
         QAContact: blfs-book at linuxfromscratch.org


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 


Here is the fix

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



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the blfs-book mailing list