NetBSD Problem Report #46145

From www@NetBSD.org  Mon Mar  5 21:08:45 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 1575963E215
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  5 Mar 2012 21:08:45 +0000 (UTC)
Message-Id: <20120305210844.368C363E13D@www.NetBSD.org>
Date: Mon,  5 Mar 2012 21:08:44 +0000 (UTC)
From: jonathan+pkgsrc@pinacea.com
Reply-To: jonathan+pkgsrc@pinacea.com
To: gnats-bugs@NetBSD.org
Subject: cairo doesn't build on Mac OSX 10.7 (Lion)
X-Send-Pr-Version: www-1.0

>Number:         46145
>Category:       pkg
>Synopsis:       cairo doesn't build on Mac OSX 10.7 (Lion)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bsiegert
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 05 21:10:10 +0000 2012
>Closed-Date:    Mon Jan 05 20:33:26 +0000 2015
>Last-Modified:  Mon Jan 05 20:33:26 +0000 2015
>Originator:     jonathan buschmann
>Release:        
>Organization:
>Environment:
$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.7.3
BuildVersion:	11D50

$ clang --version
Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix
>Description:
cairo doesn't build I get the error :
....

cairo-quartz-font.c:801:26: error: implicit declaration of function 'FMGetATSFontRefFromFont' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    ATSFontRef atsFont = FMGetATSFontRefFromFont (font_id);
                         ^
cairo-quartz-font.c:802:24: warning: 'CGFontCreateWithPlatformFont' is deprecated [-Wdeprecated-declarations]
    CGFontRef cgFont = CGFontCreateWithPlatformFont (&atsFont);
                       ^
13 warnings and 1 error generated.
*** Error code 1
>How-To-Repeat:
Build cairo on OSX 10.7
>Fix:
See for a working patch here : https://trac.macports.org/browser/trunk/dports/graphics/cairo/files/lion_fonts.diff

I tested it by adding a file patch-ad, followed by bmake makepatchsum ; bmake clean install

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 06 Mar 2012 19:40:10 +0000
Responsible-Changed-Why:
This is a MacOS X / Darwin issue.


Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 07 Mar 2012 05:15:24 +0000
Responsible-Changed-Why:
darwin-pkg-people has been changed to macos-pkg-people


Responsible-Changed-From-To: macos-pkg-people->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Mon, 05 Jan 2015 20:33:26 +0000
Responsible-Changed-Why:
Taking this.


State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Mon, 05 Jan 2015 20:33:26 +0000
State-Changed-Why:
This issue no longer occurs. The last bulk build of pkgsrc on Mac OS X shows
that cairo builds fine without a patch.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.