Follow-up Comment #5, patch #3991 (project freeciv):

After this change, my build (on Ubuntu Precise) seems to have fallen over in a
heap.
I see both -I/usr/include/gtk-2.0 and -I/usr/include/gtk-3.0 on my command
line; has it picked up the wrong gtk/gtk.h?


$ make V=1
...
make[2]: Entering directory `/home/jtn/src/freeciv/git/tools'
ccache gcc -DHAVE_CONFIG_H -I. -I..  -I../utility -I../common -I../server
-I../client -I../client/include -pthread -I/usr/include/gtk-2.0
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12   -pthread
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  
-DMPICON_PATH=""/home/jtn/src/freeciv/git/inst/share/freeciv/misc/mpicon.png""
-pthread -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/libpng12   
-DMPICON_PATH=""/home/jtn/src/freeciv/git/inst/share/freeciv/misc/mpicon.png""
-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-DLOCALEDIR=""/home/jtn/src/freeciv/git/inst/share/locale""
-DBINDIR=""/home/jtn/src/freeciv/git/inst/bin""
-DFC_CONF_PATH=""/home/jtn/src/freeciv/git/inst/etc/freeciv""
-DDEFAULT_DATA_PATH="".:data:~/.freeciv/dev:/home/jtn/src/freeciv/git/inst/share/freeciv""
-DDEFAULT_SAVES_PATH=""""
-DDEFAULT_SCENARIO_PATH="".:data/scenarios:~/.freeciv/dev/scenarios:~/.freeciv/scenarios:/home/jtn/src/freeciv/git/inst/share/freeciv/scenarios""
 -Wall -Wpointer-arith -Wcast-align -Werror -Wmissing-prototypes
-Wmissing-declarations -Wformat -Wformat-security -Wnested-externs
-Wno-deprecated-declarations -g -O2 -fsigned-char -MT mpgui_gtk3.o -MD -MP -MF
.deps/mpgui_gtk3.Tpo -c -o mpgui_gtk3.o mpgui_gtk3.c
mpgui_gtk3.c: In function ‘modinst_setup_widgets’:
mpgui_gtk3.c:349:3: error: implicit declaration of function ‘gtk_grid_new’
[-Werror=implicit-function-declaration]
mpgui_gtk3.c:349:3: error: nested extern declaration of ‘gtk_grid_new’
[-Werror=nested-externs]
mpgui_gtk3.c:349:8: error: assignment makes pointer from integer without a
cast [-Werror]
mpgui_gtk3.c:352:3: error: implicit declaration of function
‘gtk_grid_set_row_spacing’ [-Werror=implicit-function-declaration]
mpgui_gtk3.c:352:3: error: nested extern declaration of
‘gtk_grid_set_row_spacing’ [-Werror=nested-externs]
mpgui_gtk3.c:352:3: error: implicit declaration of function ‘GTK_GRID’
[-Werror=implicit-function-declaration]
mpgui_gtk3.c:352:3: error: nested extern declaration of ‘GTK_GRID’
[-Werror=nested-externs]
mpgui_gtk3.c:395:8: error: assignment makes pointer from integer without a
cast [-Werror]
mpgui_gtk3.c:396:3: error: implicit declaration of function
‘gtk_widget_set_halign’ [-Werror=implicit-function-declaration]
mpgui_gtk3.c:396:3: error: nested extern declaration of
‘gtk_widget_set_halign’ [-Werror=nested-externs]
mpgui_gtk3.c:396:31: error: ‘GTK_ALIGN_CENTER’ undeclared (first use in
this function)
mpgui_gtk3.c:396:31: note: each undeclared identifier is reported only once
for each function it appears in
mpgui_gtk3.c:397:3: error: implicit declaration of function
‘gtk_grid_set_column_spacing’ [-Werror=implicit-function-declaration]
mpgui_gtk3.c:397:3: error: nested extern declaration of
‘gtk_grid_set_column_spacing’ [-Werror=nested-externs]
mpgui_gtk3.c:417:3: error: implicit declaration of function
‘gtk_widget_set_hexpand’ [-Werror=implicit-function-declaration]
mpgui_gtk3.c:417:3: error: nested extern declaration of
‘gtk_widget_set_hexpand’ [-Werror=nested-externs]
mpgui_gtk3.c:418:3: error: implicit declaration of function
‘gtk_widget_set_vexpand’ [-Werror=implicit-function-declaration]
mpgui_gtk3.c:418:3: error: nested extern declaration of
‘gtk_widget_set_vexpand’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
make[2]: *** [mpgui_gtk3.o] Error 1


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3991>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to