I did a system upgrade (I use Arch) today and also fetched surf from git.
During make following error appeared:
//make
surf build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/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/libpng15 -I/usr/include/harfbuzz -I/usr/include/webkitgtk-1.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -DVERSION="0.5" -D_BSD_SOURCE
LDFLAGS = -g -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lwebkitgtk-1.0 -lgtk-x11-2.0 -lsoup-2.4 -ljavascriptcoregtk-1.0 -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 -lglib-2.0 -lgthread-2.0 -ljavascriptcoregtk-1.0
CC = cc
CC surf.c
In file included from /usr/include/pango-1.0/pango/pango-attributes.h:25:0,
from /usr/include/pango-1.0/pango/pango.h:25,
from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from surf.c:8:
/usr/include/pango-1.0/pango/pango-font.h:380:33: warning: ISO C restricts enumerator values to range of ‘int’ [-pedantic]
surf.c: In function ‘setup’:
surf.c:826:3: warning: ‘g_thread_init’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Wdeprecated-declarations]
surf.c: At top level:
surf.c:893:1: warning: ‘eval’ defined but not used [-Wunused-function]
CC -o surf
According to
http://developer.gnome.org/glib/2.31/glib-Deprecated-Thread-APIs.html#g-thread-init
g_thread_init is not required anymore so the attached patch removes the
g_thread_init call.
--
Hannes Blut
available via
Mail: blut.hannes_AT_googlemail.com
IRC: #blut on irc.freenode.net
- application/pgp-signature attachment: stored
Received on Sat Dec 01 2012 - 00:15:55 CET