[dev] [surf] Error compiling surf-2.0
I have installed libgtk-3-dev, libwebkit2gtk-4.0-dev (dependencies
also) and dmenu-4.7. config.mk and config.h have not been modified.
surf build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include
-I/usr/X11R6/include -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/libpng12 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng12 -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
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lwebkit2gtk-4.0
-lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject
-lcairo -lgdk_pixbuf-2.0 -lsoup-2.4 -lgio-2.0 -lgobject-2.0
-ljavascriptcoregtk-4.0 -lglib-2.0 -lgthread-2.0
CC = cc
CC surf.c
surf.c:56:12: error: ‘WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION’
undeclared here (not in a function)
OnSel = WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION,
^
surf.c: In function ‘setup’:
surf.c:293:2: warning: implicit declaration of function
‘gdk_seat_get_keyboard’ [-Wimplicit-function-declaration]
gdkkb = gdk_seat_get_keyboard(gdk_display_get_default_seat(gdpy));
^
surf.c:293:2: warning: implicit declaration of function
‘gdk_display_get_default_seat’ [-Wimplicit-function-declaration]
surf.c:293:8: warning: assignment makes pointer from integer without a cast
gdkkb = gdk_seat_get_keyboard(gdk_display_get_default_seat(gdpy));
^
surf.c: In function ‘setparameter’:
surf.c:668:4: warning: implicit declaration of function
‘webkit_web_view_set_background_color’
[-Wimplicit-function-declaration]
webkit_web_view_set_background_color(c->view, &bgcolor);
^
surf.c: In function ‘newview’:
surf.c:950:3: warning: implicit declaration of function
‘webkit_web_context_new_with_website_data_manager’
[-Wimplicit-function-declaration]
webkit_web_view_set_background_color(c->view, &bgcolor);
^
surf.c: In function ‘newview’:
surf.c:950:3: warning: implicit declaration of function
‘webkit_web_context_new_with_website_data_manager’
[-Wimplicit-function-declaration]
context = webkit_web_context_new_with_website_data_manager(
^
surf.c:951:13: warning: implicit declaration of function
‘webkit_website_data_manager_new’ [-Wimplicit-function-declaration]
webkit_website_data_manager_new(
^
surf.c:950:11: warning: assignment makes pointer from integer without a cast
context = webkit_web_context_new_with_website_data_manager(
^
surf.c: In function ‘createwindow’:
surf.c:1199:11: warning: format ‘%lu’ expects argument of type ‘long
unsigned int’, but argument 3 has type ‘guint64’ [-Wformat=]
webkit_web_view_get_page_id(c->view));
^
Makefile:18: recipe for target 'surf.o' failed
make: *** [surf.o] Error 1
Received on Fri Jun 09 2017 - 12:13:17 CEST
This archive was generated by hypermail 2.3.0
: Fri Jun 09 2017 - 12:24:13 CEST