[dev] Compilation errors for version 2.0 of surf

From: Piotr <zaxonxp45_AT_gmail.com>
Date: Tue, 17 Apr 2018 15:18:24 +0200

Hi,

Trying to compile version 2.0 of surf, but I got the following errors:

sudo make clean install

cleaning
surf build options:
CFLAGS = -I/usr/X11R6/include -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/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 -DGCR_API_SUBJECT_TO_CHANGE -O
LDFLAGS = -L/usr/X11R6/lib -lX11 -lgcr-ui-3 -lgcr-base-3 -lgck-1 -lp11-kit -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 = c99
CC -c surf.c
surf.c:46: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:345: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:345:2: warning: implicit declaration of function ‘gdk_display_get_default_seat’ [-Wimplicit-function-declaration]
surf.c:345: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:749:3: warning: implicit declaration of function ‘webkit_settings_set_allow_file_access_from_file_urls’ [-Wimplicit-function-declaration]
   webkit_settings_set_allow_file_access_from_file_urls(s, a->i);
   ^
surf.c:750:3: warning: implicit declaration of function ‘webkit_settings_set_allow_universal_access_from_file_urls’ [-Wimplicit-function-declaration]
   webkit_settings_set_allow_universal_access_from_file_urls(s, a->i);
   ^
surf.c:763: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:1102: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:1103:13: warning: implicit declaration of function ‘webkit_website_data_manager_new’ [-Wimplicit-function-declaration]
             webkit_website_data_manager_new(
             ^
surf.c:1102:11: warning: assignment makes pointer from integer without a cast
   context = webkit_web_context_new_with_website_data_manager(
           ^
surf.c: In function ‘permissionrequested’:
surf.c:1508:2: warning: implicit declaration of function ‘WEBKIT_IS_USER_MEDIA_PERMISSION_REQUEST’ [-Wimplicit-function-declaration]
  } else if (WEBKIT_IS_USER_MEDIA_PERMISSION_REQUEST(r)) {
  ^
surf.c:1509:3: warning: implicit declaration of function ‘webkit_user_media_permission_is_for_audio_device’ [-Wimplicit-function-declaration]
   if (webkit_user_media_permission_is_for_audio_device(
   ^
surf.c:1510:7: warning: implicit declaration of function ‘WEBKIT_USER_MEDIA_PERMISSION_REQUEST’ [-Wimplicit-function-declaration]
       WEBKIT_USER_MEDIA_PERMISSION_REQUEST(r)))
       ^
surf.c:1512:3: warning: implicit declaration of function ‘webkit_user_media_permission_is_for_video_device’ [-Wimplicit-function-declaration]
   else if (webkit_user_media_permission_is_for_video_device(
   ^
Makefile:19: recipe for target 'surf.o' failed
make: *** [surf.o] Error 1
 
Received on Tue Apr 17 2018 - 15:18:24 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 17 2018 - 15:24:20 CEST