When making surf on my setup i get
sh-4.2$ make
surf build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng14 -I/usr/include/webkit-1.0
-I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -DVERSION="0.4.1"
LDFLAGS = -g -L/usr/lib -lc -pthread -lwebkitgtk-1.0 -lgtk-x11-2.0
-lsoup-2.4 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0
-lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgio-2.0
-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lgthread-2.0
CC = cc
CC surf.c
surf.c: In function ‘gotheaders’:
surf.c:318:11: warning: variable ‘uri’ set but not used
[-Wunused-but-set-variable]
CC -o surf
/usr/bin/ld: surf.o: undefined reference to symbol
'JSStringCreateWithUTF8CString'
/usr/bin/ld: note: 'JSStringCreateWithUTF8CString' is defined in DSO
/usr/lib/libjavascriptcoregtk-1.0.so.0 so try adding it to the linker
command line
/usr/lib/libjavascriptcoregtk-1.0.so.0: could not read symbols:
Invalid operation
collect2: ld returned 1 exit status
make: *** [surf] Error 1
I tried changing #include #include <JavaScriptCore/JavaScript.h> to
#include #include <JavaScriptCore/JavaScriptCore.h> but then the
following error occured:
sh-4.2$ make
surf build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng14 -I/usr/include/webkit-1.0
-I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -DVERSION="0.4.1"
LDFLAGS = -g -L/usr/lib -lc -pthread -lwebkitgtk-1.0 -lgtk-x11-2.0
-lsoup-2.4 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0
-lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgio-2.0
-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lgthread-2.0
CC = cc
CC surf.c
In file included from
/usr/include/webkit-1.0/JavaScriptCore/JavaScriptCore.h:30:0,
from surf.c:20:
/usr/include/webkit-1.0/JavaScriptCore/JSStringRefCF.h:30:43: fatal
error: CoreFoundation/CoreFoundation.h: No such file or directory
compilation terminated.
make: *** [surf.o] Error 1
Setup is Arch x86_64.
sh-4.2$ pacman -Q libwebkit
libwebkit 1.6.1-1
Surf 0.4.1
Received on Wed Jan 04 2012 - 21:28:20 CET
This archive was generated by hypermail 2.3.0
: Wed Jan 04 2012 - 21:36:04 CET