surf build options: CC = c99 CFLAGS = -DVERSION="2.0" -DWEBEXTDIR="/usr/local/lib/surf" -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -fPIC -O WEBEXTCFLAGS = -fPIC -I/usr/include/webkitgtk-4.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -pthread -O LDFLAGS = cp config.def.h config.h c99 -fPIC `pkg-config --cflags webkit2gtk-4.0 webkit2gtk-web-extension-4.0` -O -c libsurf-webext.c 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 -fPIC -O -c common.c c99 -shared -Wl,-soname,libsurf-webext.so -o libsurf-webext.so \ libsurf-webext.o common.o `pkg-config --libs webkit2gtk-4.0 webkit2gtk-web-extension-4.0` 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 -fPIC -O -c surf.c Package gcr-3 was not found in the pkg-config search path. Perhaps you should add the directory containing `gcr-3.pc' to the PKG_CONFIG_PATH environment variable Package 'gcr-3', required by 'virtual:world', not found In file included from /usr/include/webkitgtk-4.0/jsc/jsc.h:25:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCClass.h:37:26: warning: redefinition of typedef ‘JSCClass’ [-Wpedantic] typedef struct _JSCClass JSCClass; ^~~~~~~~ In file included from /usr/include/webkitgtk-4.0/jsc/JSCClass.h:29:0, from /usr/include/webkitgtk-4.0/jsc/jsc.h:25, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCValue.h:43:26: note: previous declaration of ‘JSCClass’ was here typedef struct _JSCClass JSCClass; ^~~~~~~~ In file included from /usr/include/webkitgtk-4.0/jsc/jsc.h:25:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCClass.h:40:28: warning: redefinition of typedef ‘JSCContext’ [-Wpedantic] typedef struct _JSCContext JSCContext; ^~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/jsc/JSCClass.h:29:0, from /usr/include/webkitgtk-4.0/jsc/jsc.h:25, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCValue.h:44:28: note: previous declaration of ‘JSCContext’ was here typedef struct _JSCContext JSCContext; ^~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/jsc/JSCContext.h:29:0, from /usr/include/webkitgtk-4.0/jsc/jsc.h:26, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCException.h:43:28: warning: redefinition of typedef ‘JSCContext’ [-Wpedantic] typedef struct _JSCContext JSCContext; ^~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/jsc/jsc.h:25:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCClass.h:40:28: note: previous declaration of ‘JSCContext’ was here typedef struct _JSCContext JSCContext; ^~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/jsc/jsc.h:26:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCContext.h:43:28: warning: redefinition of typedef ‘JSCContext’ [-Wpedantic] typedef struct _JSCContext JSCContext; ^~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/jsc/JSCContext.h:29:0, from /usr/include/webkitgtk-4.0/jsc/jsc.h:26, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:29, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/jsc/JSCException.h:43:28: note: previous declaration of ‘JSCContext’ was here typedef struct _JSCContext JSCContext; ^~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:38:0, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkit2/WebKitWebEditor.h:40:40: warning: redefinition of typedef ‘WebKitWebEditor’ [-Wpedantic] typedef struct _WebKitWebEditor WebKitWebEditor; ^~~~~~~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/webkit2/WebKitWebEditor.h:29:0, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:38, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkit2/WebKitWebPage.h:47:38: note: previous declaration of ‘WebKitWebEditor’ was here typedef struct _WebKitWebEditor WebKitWebEditor; ^~~~~~~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:38:0, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkit2/WebKitWebEditor.h:45:40: warning: redefinition of typedef ‘WebKitWebPage’ [-Wpedantic] typedef struct _WebKitWebPage WebKitWebPage; ^~~~~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/webkit2/WebKitWebEditor.h:29:0, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:38, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkit2/WebKitWebPage.h:42:38: note: previous declaration of ‘WebKitWebPage’ was here typedef struct _WebKitWebPage WebKitWebPage; ^~~~~~~~~~~~~ libsurf-webext.c: In function ‘readpipe’: libsurf-webext.c:84:2: warning: ‘webkit_dom_document_get_default_view’ is deprecated [-Wdeprecated-declarations] if (!p || !(view = webkit_dom_document_get_default_view( ^~ In file included from /usr/include/webkitgtk-4.0/webkitdom/webkitdom.h:42:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:32, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkitdom/WebKitDOMDocument.h:640:1: note: declared here webkit_dom_document_get_default_view(WebKitDOMDocument* self); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libsurf-webext.c:92:3: warning: ‘webkit_dom_dom_window_get_inner_width’ is deprecated [-Wdeprecated-declarations] ww = webkit_dom_dom_window_get_inner_width(view); ^~ In file included from /usr/include/webkitgtk-4.0/webkitdom/webkitdom.h:40:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:32, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkitdom/WebKitDOMDOMWindow.h:371:1: note: declared here webkit_dom_dom_window_get_inner_width(WebKitDOMDOMWindow* self); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libsurf-webext.c:93:3: warning: ‘webkit_dom_dom_window_scroll_by’ is deprecated [-Wdeprecated-declarations] webkit_dom_dom_window_scroll_by(view, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/webkitdom/webkitdom.h:40:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:32, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkitdom/WebKitDOMDOMWindow.h:191:1: note: declared here webkit_dom_dom_window_scroll_by(WebKitDOMDOMWindow* self, gdouble x, gdouble y); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libsurf-webext.c:99:3: warning: ‘webkit_dom_dom_window_get_inner_height’ is deprecated [-Wdeprecated-declarations] wh = webkit_dom_dom_window_get_inner_height(view); ^~ In file included from /usr/include/webkitgtk-4.0/webkitdom/webkitdom.h:40:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:32, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkitdom/WebKitDOMDOMWindow.h:358:1: note: declared here webkit_dom_dom_window_get_inner_height(WebKitDOMDOMWindow* self); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libsurf-webext.c:100:3: warning: ‘webkit_dom_dom_window_scroll_by’ is deprecated [-Wdeprecated-declarations] webkit_dom_dom_window_scroll_by(view, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/webkitgtk-4.0/webkitdom/webkitdom.h:40:0, from /usr/include/webkitgtk-4.0/webkit2/WebKitFrame.h:32, from /usr/include/webkitgtk-4.0/webkit2/webkit-web-extension.h:33, from libsurf-webext.c:7: /usr/include/webkitgtk-4.0/webkitdom/WebKitDOMDOMWindow.h:191:1: note: declared here webkit_dom_dom_window_scroll_by(WebKitDOMDOMWindow* self, gdouble x, gdouble y); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Package gcr-3 was not found in the pkg-config search path. Perhaps you should add the directory containing `gcr-3.pc' to the PKG_CONFIG_PATH environment variable Package 'gcr-3', required by 'virtual:world', not found Package gcr-3 was not found in the pkg-config search path. Perhaps you should add the directory containing `gcr-3.pc' to the PKG_CONFIG_PATH environment variable Package 'gcr-3', required by 'virtual:world', not found surf.c:8:10: fatal error: glib.h: No such file or directory #include ^~~~~~~~ compilation terminated. make: *** [Makefile:24: surf.o] Error 1