[dev] Trying to compile on Debian Stretch

From: Piotr <zaxonxp45_AT_gmail.com>
Date: Tue, 11 Dec 2018 14:54:20 +0100

Hi,

I tried to download and install all the header files required as described in the README file, but I am getting the compilation error:

user_AT_localhost:~/zzz_temp/surf$ make
surf build options:
CC = c99
CFLAGS = -pthread -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/webkitgtk-4.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/webkitgtk-4.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -DVERSION="2.0" -DWEBEXTDIR="/usr/local/lib/surf" -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -O
WEBEXTCFLAGS = -fPIC -pthread -I/usr/include/webkitgtk-4.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/webkitgtk-4.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -O
LDFLAGS =
c99 `pkg-config --cflags x11` `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` -DVERSION=\"2.0\" -DWEBEXTDIR=\"/usr/local/lib/surf\" -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -O -c surf.c
surf.c:213:34: error: unknown type name ‘WebKitWebProcessTerminationReason’
                                  WebKitWebProcessTerminationReason r,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:28:0,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from surf.c:19:
surf.c: In function ‘newview’:
surf.c:1204:16: error: ‘webprocessterminated’ undeclared (first use in this function)
     G_CALLBACK(webprocessterminated), c);
                ^
/usr/include/glib-2.0/gobject/gsignal.h:475:60: note: in definition of macro ‘g_signal_connect’
     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
                                                            ^~~~~~~~~
surf.c:1204:5: note: in expansion of macro ‘G_CALLBACK’
     G_CALLBACK(webprocessterminated), c);
     ^~~~~~~~~~
surf.c:1204:16: note: each undeclared identifier is reported only once for each function it appears in
     G_CALLBACK(webprocessterminated), c);
                ^
/usr/include/glib-2.0/gobject/gsignal.h:475:60: note: in definition of macro ‘g_signal_connect’
     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
                                                            ^~~~~~~~~
surf.c:1204:5: note: in expansion of macro ‘G_CALLBACK’
     G_CALLBACK(webprocessterminated), c);
     ^~~~~~~~~~
surf.c: In function ‘createwindow’:
surf.c:1419:3: warning: ‘gtk_window_set_wmclass’ is deprecated [-Wdeprecated-declarations]
   gtk_window_set_wmclass(GTK_WINDOW(w), wmstr, "Surf");
   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkdialog.h:32:0,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from surf.c:23:
/usr/include/gtk-3.0/gtk/gtkwindow.h:154:12: note: declared here
 void gtk_window_set_wmclass (GtkWindow *window,
            ^~~~~~~~~~~~~~~~~~~~~~
surf.c: At top level:
surf.c:1744:40: error: unknown type name ‘WebKitWebProcessTerminationReason’
 webprocessterminated(WebKitWebView *v, WebKitWebProcessTerminationReason r,
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:22: recipe for target 'surf.o' failed
make: *** [surf.o] Error 1

Any idea what is wrong?

Regards,
Piotr
Received on Tue Dec 11 2018 - 14:54:20 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 11 2018 - 15:00:07 CET