Subject: pkg/31553: Can't build graphics/cairo under Solaris2.9, fails to find freetype and fontconfig
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sd4dfg2@hotmail.com>
List: pkgsrc-bugs
Date: 10/11/2005 13:22:00
>Number:         31553
>Category:       pkg
>Synopsis:       Can't build graphics/cairo under Solaris2.9, fails to find freetype and fontconfig
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 11 13:22:00 +0000 2005
>Originator:     Rob Quinn
>Release:        Solaris2.9, pkgsrc-current
>Organization:
>Environment:
>Description:
Build of cairo fails, with a complaint that I need freetype and fontconfig, which I already have installed.

>How-To-Repeat:
#bmake
===> Checking for vulnerabilities in cairo-1.0.2
=> Checksum SHA1 OK for cairo-1.0.2.tar.gz.
=> Checksum RMD160 OK for cairo-1.0.2.tar.gz.
work -> /usr/obj/pkg/graphics/cairo/work
===> Extracting for cairo-1.0.2
===> Required installed package Xft2>=2.1.6nb1: Xft2-2.1.6nb1 found
===> Required installed package fontconfig>=2.2.96nb1: fontconfig-2.3.2 found
===> Required installed package libiconv>=1.9.1nb4: libiconv-1.10nb3 found
===> Required installed package expat>=1.95.8nb2: expat-1.95.8nb2 found
===> Required installed package freetype2>=2.1.9nb1: freetype2-2.1.10 found
===> Required installed package glitz>=0.4.4: glitz-0.4.4 found
===> Required installed package MesaLib>=6.2.1nb2: MesaLib-6.2.1nb2 found
===> Required installed package libpixman>=0.1.5: libpixman-0.1.6 found
===> Required installed package png>=1.2.6nb1: png-1.2.8 found
===> Required installed package zlib>=1.2.3: zlib-1.2.3 found
===> Required installed package Xrender>=0.8.4nb1: Xrender-0.8.4nb1 found
===> Required installed package libtool-base>=1.5.18nb5: libtool-base-1.5.18nb5 found
===> Required installed package pkg-config>=0.19: pkg-config-0.19nb1 found
===> Required installed package x11-links>=0.25: x11-links-0.26 found
===> Required installed package render>=0.2: render-0.8 found
===> Required installed package Xrender>=0.8: Xrender-0.8.4nb1 found
===> Required installed package render>=0.8: render-0.8 found
===> Required installed package gcc3-c>=3.3.5: gcc3-c-3.3.5 found
[...]
config.status: creating doc/public/version.xml
config.status: creating config.h
config.status: executing depfiles commands

cairo will be compiled with the following surface backends:
  Xlib: yes
  Quartz: no
  XCB: no
  Win32: no
  PostScript: no
  PDF: no
  glitz: yes

the following font backends:
  FreeType: no
  Win32: no
  ATSUI: no

and the following features:
  PNG functions: no
configure: error: Cairo requires at least one font backend.
                  Please install freetype and fontconfig, then try again:
                  http://freetype.org/  http://fontconfig.org/

*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/cairo





#pkg_info -a | egrep 'fontconfig|freetype'
freetype2-2.1.10    Font rendering engine and library API
fontconfig-2.3.2    Library for configuring and customizing font access

>Fix: