Subject: problems building x11/gtk2
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
List: tech-pkg
Date: 05/14/2004 21:50:43
--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
I'm having problems building x11/gtk2 from current pkgsrc. It fails
as follows:
$ cd /usr/pkgsrc/x11/gtk2 && make build
[...]
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/build/pkg/x11/gtk2/work/.buildlink/include/glib/glib-2.0 -I/build/pkg/x11/gtk2/work/.buildlink/lib/glib-2.0/include -I/build/pkg/x11/gtk2/work/.buildlink/include/pango-1.0 -I/build/pkg/x11/gtk2/work/.buildlink/include -I/build/pkg/x11/gtk2/work/.buildlink/include/freetype2 -I/build/pkg/x11/gtk2/work/.x11-buildlink/include -DXTHREADS -O2 -Wall -MT gdkasync.lo -MD -MP -MF .deps/gdkasync.Tpo -c gdkasync.c -fPIC -DPIC -o .libs/gdkasync.o
In file included from /build/pkg/x11/gtk2/work/.buildlink/include/X11/Xft/Xft.h:41,
from ../../gdk/x11/gdkdrawable-x11.h:35,
from ../../gdk/x11/gdkwindow-x11.h:30,
from gdkprivate-x11.h:36,
sync.lo] Error 1
gmake[4]: Leaving directory `/build/pkg/x11/gtk2/work/gtk+-2.4.1/gdk/x11'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/build/pkg/x11/gtk2/work/gtk+-2.4.1/gdk'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/build/pkg/x11/gtk2/work/gtk+-2.4.1/gdk'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/build/pkg/x11/gtk2/work/gtk+-2.4.1'
gmake: *** [all] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/x11/gtk2
*** Error code 1
I already sent a PR (pkg/25548) for this problem.
Just reading but not really understanding the above error messages, I
applied the attached patch to ${LOCALBASE} which made building x11/gtk2
succeed.
Now I have to build several huge packages which depend on gtk2. I'd like
to know if the patch I applied makes sense at all, or if I should wait
until it's fixed correctly.
Help is appreciated!
TIA, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Xft.h.patch"
--- include/X11/Xft/Xft.h.orig 2004-03-30 18:35:58.000000000 +0200
+++ include/X11/Xft/Xft.h 2004-05-13 23:28:10.000000000 +0200
@@ -38,6 +38,7 @@
#define XftVersion XFT_VERSION
#include <stdarg.h>
+#include <ft2build.h>
#include <freetype/freetype.h>
#include <fontconfig/fontconfig.h>
#include <X11/extensions/Xrender.h>
--BXVAT5kNtrzKuDFl--