Re: [Anjuta-list] anjuta compile errors at libs/libanjuta-gdb.so:



On Sat, 2007-01-13 at 09:48 +0100, Sébastien Granjoux wrote:
> > ----snip----
> >  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DORBIT2=1 -pthread
> > -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
> > -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
> > -I/usr/include/libart-2.0 -I/usr/include/gconf/2
> > -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0
> > -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1
> > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0
> > -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0
> > -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
> > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12
> > -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0
> > -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
> > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
> > -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
> > -I../.. -DPACKAGE_PIXMAPS_DIR=\"/usr/local/share/pixmaps/anjuta\"
> > -DPACKAGE_DATA_DIR=\"/usr/local/share/anjuta\" -O0 -g -Wall
> > -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wpointer-arith -g
> > -O2 -MT element-editor.lo -MD -MP -MF .deps/element-editor.Tpo -c
> > element-editor.c  -fPIC -DPIC -o .libs/element-editor.o
> > element-editor.c: In function 'cg_element_editor_list_edited_cb':
> > element-editor.c:177: warning: implicit declaration of function
> > 'gtk_list_store_set'
> > element-editor.c:177: warning: implicit declaration of function
> > 'GTK_LIST_STORE'
> > element-editor.c: At top level:
> > element-editor.c:218: error: expected declaration specifiers or '...' before
> > 'GtkEntry'
> > element-editor.c: In function 'cg_element_editor_string_editing_started_cb':
> > element-editor.c:250: warning: implicit declaration of function
> > 'GTK_IS_ENTRY'
> > element-editor.c: In function
> > 'cg_element_editor_arguments_editing_started_cb':
> > element-editor.c:271: warning: implicit declaration of function
> > 'gtk_entry_get_text'
> > element-editor.c:271: warning: implicit declaration of function 'GTK_ENTRY'
> > element-editor.c:271: warning: assignment makes pointer from integer without
> > a cast
> > element-editor.c:274: warning: implicit declaration of function
> > 'gtk_entry_set_text'
> > element-editor.c:278: warning: implicit declaration of function
> > 'gtk_editable_set_position'
> > element-editor.c:278: warning: implicit declaration of function
> > 'GTK_EDITABLE'
> > element-editor.c: In function 'cg_element_editor_add_button_clicked_cb':
> > element-editor.c:303: warning: implicit declaration of function
> > 'gtk_list_store_append'
> > element-editor.c: In function 'cg_element_editor_remove_button_clicked_cb':
> > element-editor.c:344: warning: implicit declaration of function
> > 'gtk_list_store_remove'
> > element-editor.c: In function 'cg_element_editor_init_list_renderer':
> > element-editor.c:507: warning: implicit declaration of function
> > 'gtk_list_store_new'
> > element-editor.c: In function 'cg_element_editor_new':
> > element-editor.c:674: warning: implicit declaration of function
> > 'gtk_list_store_newv'
> > make[4]: *** [element-editor.lo] Fehler 1
> > make[4]: Leaving directory `/home/linip/Progs/anjuta2/plugins/class-gen'
> > make[3]: *** [all-recursive] Fehler 1
> > make[3]: Leaving directory `/home/linip/Progs/anjuta2/plugins/class-gen'
> > make[2]: *** [all-recursive] Fehler 1
> > make[2]: Leaving directory `/home/linip/Progs/anjuta2/plugins'
> > make[1]: *** [all-recursive] Fehler 1
> > make[1]: Leaving directory `/home/linip/Progs/anjuta2'
> > make: *** [all] Fehler 2
> > ----snip----
> 
> I have looked the line where there is an error and it is
> 
> cg_element_editor_string_activate_cb (G_GNUC_UNUSED GtkEntry *entry,
>                                        gpointer user_data)

G_GNUC_UNUSED should always be defined by glib and do nothing if the
compiler does not understand it. I would rather assume that there are
some includes missing that are included via other files on Sébastiens
(and my) system.

Try adding #include <gtk/gtkentry.h> and #include <gtk/gtkliststore.h>
to the other includes near the top of the file. If they work, they could
be committed to SVN, I think.

Greetings,
Armin

Attachment: signature.asc
Description: This is a digitally signed message part



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