Subject: Re: freetype2 required for fontconfig (1 of 2)
To: None <tech-pkg@NetBSD.ORG>
From: Roger Fischer <>
List: tech-pkg
Date: 10/05/2003 20:38:35
OK, it didn't build.
I sent this to the list, but it didn't post.
Maybe it was too big.

I'll try again, posting it in two parts.

Part 1 is the failed build for "fontconfig".
Part 2 is the successful rebuild/reinstall of freetype 2.

Part 1 below:	(roger)

At 8:21 PM +0200 10/5/03, Juan RP wrote:
>It's all ok, what about of removing freetype2 and try to install them
>again ? Hopefully will work later.
>If it doesn't work, paste the build log [you can use script(1)], and the
>config.log located in ${WRKSRC}.

Ok, deinstalled freetype2, then rebuilt and reinstalled.
did a make clean for fonts/fontconfig then tried to rebuild.
Exact same story.

(BTW.  I'm running NetBSD 1.6.1 on i386 platform)

Here's the log for the failed build of fontconfig.
Following that is the successful build for freetype2.

	- Rog


icarus: {1} make clean
===> Cleaning for fontconfig-2.2.1nb1
icarus: {2} make
===> Checking for vulnerabilities in fontconfig-2.2.1nb1
=> Checksum OK for fontconfig-2.2.1.tar.gz.
===> Extracting for fontconfig-2.2.1nb1
===> Required installed package freetype2>=2.1.3: freetype2-2.1.5 found
===> Required installed package expat>=1.95.2: expat-1.95.2 found
===> Required installed package libtool-base>=1.4.20010614nb11: 
libtool-base-1.4.20010614nb14 found
===> Required installed package gmake>=3.78: gmake-3.80nb2 found
===> Patching for fontconfig-2.2.1nb1
===> Applying pkgsrc patches for fontconfig-2.2.1nb1
===> Overriding tools for fontconfig-2.2.1nb1
===> Buildlinking for fontconfig-2.2.1nb1
===> Configuring for fontconfig-2.2.1nb1
=> Adding rpaths to pkgconfig files.
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking whether /usr/pkg/bin/gmake sets ${MAKE}... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... cc
checking whether the C compiler (cc -O2 -I/usr/pkg/include 
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2 -I/usr/pkg/include 
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether ln -s works... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... cc -E
checking host system type... i386--netbsdelf
checking build system type... i386--netbsdelf
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /usr/bin/sed
checking how to recognise dependent libraries... match_pattern /lib[^/\.]+\.so$
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... yes
creating libtool
checking whether /usr/pkg/bin/gmake sets ${MAKE}... (cached) yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for pid_t... yes
checking for vprintf... yes
checking for geteuid... yes
checking for getuid... yes
checking for link... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strtol... yes
checking for getopt... yes
checking for getopt_long... yes
checking for freetype-config... /usr/X11R6/bin/freetype-config
checking for FT_Get_First_Char... yes
checking for expat.h... yes
checking for XML_ParserCreate... yes
checking for docbook2html... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating fontconfig/Makefile
creating fc-lang/Makefile
creating src/Makefile
creating src/fontconfig.def
creating fc-cache/Makefile
creating fc-list/Makefile
creating doc/Makefile
creating doc/version.sgml
creating test/Makefile
creating fontconfig.spec
creating fontconfig.pc
creating fonts.conf
creating fontconfig-zip
creating config.h
===> Building for fontconfig-2.2.1nb1
cd . && autoheader
WARNING: `autoheader' is missing on your system.  You should only need it if
          you modified `acconfig.h' or `'.  You might want
          to install the `Autoconf' and `GNU m4' packages.  Grab them
          from any GNU archive site.
cd . \
      /bin/sh ./config.status
creating config.h
config.h is unchanged
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory 
Making all in fontconfig
gmake[2]: Entering directory 
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory 
Making all in fc-lang
gmake[2]: Entering directory 
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src 
-I/usr/X11R6/include/freetype2  -I/usr/pkg/include  -O2 
-I/usr/pkg/include -c fc-lang.c
In file included from ../src/fcint.h:39,
                  from fc-lang.c:25:
../fontconfig/fcfreetype.h:27: freetype/freetype.h: No such file or directory
gmake[2]: *** [fc-lang.o] Error 1
gmake[2]: Leaving directory 
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
gmake: *** [all-recursive-am] Error 2
*** Error code 2

make: stopped in /usr/pkgsrc/fonts/fontconfig
*** Error code 1

make: stopped in /usr/pkgsrc/fonts/fontconfig
icarus: {3}