Subject: fontconfig woes
To: None <tech-pkg@netbsd.org>
From: James K.Lowden <jklowden@speakeasy.net>
List: tech-pkg
Date: 10/28/2003 19:37:11
I have a sandbox in place now, and have started building binaries for
everything I use that wants pth-2.0.0, not a short list. I am using
xpkgwedge.
fontconfig won't build. What gets passed into libtool seems reasonable,
and:
# pkg-config --cflags freetype2
-I/usr/pkg/include/freetype2
looks good.
But, the compiler sees only the .buildlink/include path (see below). That
path doesn't have what what it needs:
# pwd; find . -name fcfreetype.h -or -name freetype.h
/usr/pkgsrc/fonts/fontconfig/work
./fontconfig-2.2.1/fontconfig/fcfreetype.h
./.buildlink/include/freetype2/freetype/freetype.h
IOW, the error message below indicates fcfreetype.h is trying to include
"freetype/freetype.h", but it needs to look in
"freetype2/freetype/freetype.h".
I fixed this before with a symlink. What's the right way, and should I
send a patch?
Thanks.
--jkl
# pwd; make 2>&1|perl -pe's/\s+-/\n\t-/g' |sed -ne'/ src/,/Error/p'
/usr/pkgsrc/fonts/fontconfig
Making all in src
gmake[2]: Entering directory
`/usr/pkgsrc/fonts/fontconfig/work/fontconfig-2.2.1/src'
/bin/sh ../libtool
--mode=compile cc
-DHAVE_CONFIG_H
-I.
-I.
-I..
-I/usr/X11R6/include/freetype2
-I/usr/pkg/include
-DFONTCONFIG_PATH='"/usr/pkg/etc/fontconfig"'
-I..
-I../src
-I/usr/pkg/include
-O2
-I/usr/pkg/include
-c fcatomic.c
cc
-DHAVE_CONFIG_H
-I.
-I.
-I..
-I/usr/pkgsrc/fonts/fontconfig/work/.buildlink/include
-DFONTCONFIG_PATH=\"/usr/pkg/etc/fontconfig\"
-I..
-I../src
-I/usr/pkgsrc/fonts/fontconfig/work/.buildlink/include
-O2
-I/usr/pkgsrc/fonts/fontconfig/work/.buildlink/include
-c fcatomic.c
-fPIC
-DPIC
-o .libs/fcatomic.o
In file included from fcint.h:39,
from fcatomic.c:50:
../fontconfig/fcfreetype.h:27: freetype/freetype.h: No such file or
directory
gmake[2]: *** [fcatomic.lo] Error 1