[dev] [surf] Errors compiling the surf-webkit2 branch

From: Albert Cardona <sapristi_AT_gmail.com>
Date: Mon, 29 May 2017 15:29:47 -0400

Hi all,

Upon compiling the surf-webkit2 with either cc or clang, I am getting
a number of errors.

Error 1:

In file included from surf.c:257:0:
config.h:71:8: error: unknown type name ‘SiteStyle’
 static SiteStyle styles[] = {
        ^

... which was perhaps introduced with commit 5c5273398 which modified
config.def.h:

-static SiteStyle styles[] = {
+static SiteSpecific styles[] = {

Renaming SiteSpecific to SiteStyle in surf.c:148 address this error.


Error 2:

In file included from surf.c:257:0:
config.h:2:14: error: conflicting types for ‘useragent’
 static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
              ^
surf.c:252:20: note: previous declaration of ‘useragent’ was here
 static const char *useragent;

In this one, there's an issue with the "const".


Error 3+:

A number of issues with missing definitions such as:

In file included from surf.c:257:0:
config.h:85:29: error: ‘GDK_r’ undeclared here (not in a function)
     { MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
                             ^
config.h:87:29: error: ‘GDK_p’ undeclared here (not in a function)
     { MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
[...]

I am unsure as to which library is missing in the linker paths, having gtk3
and gdk installed from packages.


Given that the above issues seem petty, I wonder whether I am not using the
same compiler as the authors? gcc 5.4.0 or clang 3.8.0.

My system: Ubuntu 16.04.

Thanks for any hints.

Albert

-- 
http://albert.rierol.net
http://www.janelia.org/lab/cardona-lab
http://www.ini.uzh.ch/~acardona/
Received on Mon May 29 2017 - 21:29:47 CEST

This archive was generated by hypermail 2.3.0 : Mon May 29 2017 - 21:36:22 CEST