NetBSD Problem Report #44359

From asau@inbox.ru  Sun Jan  9 08:49:15 2011
Return-Path: <asau@inbox.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id E2D6063B89A
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  9 Jan 2011 08:49:14 +0000 (UTC)
Message-Id: <87ipxyihrw.fsf@inbox.ru>
Date: Sun, 09 Jan 2011 11:49:07 +0300
From: Aleksej Saushev <asau@inbox.ru>
Reply-To: asau@inbox.ru
To: gnats-bugs@gnats.NetBSD.org
Subject: cairo doesn't build with native X on NetBSD 5.1

>Number:         44359
>Category:       pkg
>Synopsis:       cairo doesn't build with native X on NetBSD 5.1
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 09 08:50:00 +0000 2011
>Closed-Date:    Fri Mar 25 13:02:32 +0000 2011
>Last-Modified:  Fri Mar 25 13:02:32 +0000 2011
>Originator:     asau@inbox.ru
>Release:        NetBSD 5.1_STABLE amd64
>Organization:
>Environment:
System: NetBSD 5.1_STABLE amd64
>Description:
	The build stops at:

  CC     cairo-xlib-display.lo
In file included from cairo-xlib-private.h:41,
                 from cairo-xlib-display.c:38:
cairo-xlib-xrender-private.h:105: error: redefinition of 'struct _XCircle'
cairo-xlib-xrender-private.h:109: error: redefinition of typedef 'XCircle'
/home/asau/pkgsrc/graphics/cairo/work/.x11-buildlink/include/X11/extensions/Xrender.h:150: error: previous declaration of 'XCircle' was here
cairo-xlib-xrender-private.h:110: error: redefinition of 'struct _XLinearGradient'
cairo-xlib-xrender-private.h:113: error: redefinition of typedef 'XLinearGradient'
/home/asau/pkgsrc/graphics/cairo/work/.x11-buildlink/include/X11/extensions/Xrender.h:189: error: previous declaration of 'XLinearGradient' was here
cairo-xlib-xrender-private.h:115: error: redefinition of 'struct _XRadialGradient'
cairo-xlib-xrender-private.h:118: error: redefinition of typedef 'XRadialGradient'
/home/asau/pkgsrc/graphics/cairo/work/.x11-buildlink/include/X11/extensions/Xrender.h:194: error: previous declaration of 'XRadialGradient' was here
cairo-xlib-xrender-private.h:120: error: redefinition of 'struct _XConicalGradient'
cairo-xlib-xrender-private.h:123: error: redefinition of typedef 'XConicalGradient'
/home/asau/pkgsrc/graphics/cairo/work/.x11-buildlink/include/X11/extensions/Xrender.h:199: error: previous declaration of 'XConicalGradient' was here
*** Error code 1

Stop.
bmake: stopped in /home/asau/pkgsrc/graphics/cairo/work/cairo-1.10.2/src


       <dholland> confirmed the problem on IRC.
>How-To-Repeat:
	Try building anything depending on cairo, e.g. any gtk2-based application.
>Fix:
	None yet.

>Release-Note:

>Audit-Trail:
From: Bernd Ernesti <netbsd@lists.veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44359: cairo doesn't build with native X on NetBSD 5.1
Date: Sun, 9 Jan 2011 10:20:48 +0100

 On Sun, Jan 09, 2011 at 08:50:00AM +0000, Aleksej Saushev wrote:
 [..]

 > >Fix:
 > 	None yet.

 I didn't know about this issue but I wanted to avoid having the same
 library two times on my system (pkg and X11R7) so I downgraded two files:

  pkgsrc/x11/xf86dgaproto/buildlink3.mk (-r 1.3)
  pkgsrc/x11/xf86vidmodeproto/buildlink3.mk (-r 1.2)

 and cairo from pkgsrc-current build just fine yesterday.

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/44359: cairo doesn't build with native X on NetBSD 5.1
Date: Mon, 10 Jan 2011 14:04:15 +0100

 On Sun, Jan 09, 2011 at 08:50:00AM +0000, Aleksej Saushev wrote:
 > >Number:         44359
 > >Category:       pkg
 > >Synopsis:       cairo doesn't build with native X on NetBSD 5.1

 Does obache's patch fix this problem for you?

 --- quote obache ---

 I feel following patch should fixes both native XFree86 and Xorg for NetBSD,
 check same as libXrender.
 I'm not sure that upper bounce guard 0.10 is sufficient for Xfree86,
 but it is required.

 Index: x11/renderproto/buildlink3.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/x11/renderproto/buildlink3.mk,v
 retrieving revision 1.14
 diff -u -r1.14 buildlink3.mk
 --- x11/renderproto/buildlink3.mk       22 Dec 2010 23:41:30 -0000      1.14
 +++ x11/renderproto/buildlink3.mk       1 Jan 2011 06:06:37 -0000
 @@ -7,15 +7,8 @@
   .if !defined(RENDERPROTO_BUILDLINK3_MK)
   RENDERPROTO_BUILDLINK3_MK:=

 -.if ${X11_TYPE} == "native"
 -. include "../../mk/x11.buildlink3.mk"
 -. if ${BUILTIN_X11_TYPE.native} == "XFree86"
 -RENDERPROTO_RENDERPROTO9=1
 -. endif
 -.endif
 -
 -.if defined(RENDERPROTO_RENDERPROTO9)
 -BUILDLINK_API_DEPENDS.renderproto+=    renderproto>=0.9.3nb1
 +.if ${X11_TYPE} != "modular" && !exists(${X11BASE}/lib/pkgconfig/renderproto.pc)
 +BUILDLINK_API_DEPENDS.renderproto+=    renderproto>=0.9.3nb1<0.10
   BUILDLINK_PKGSRCDIR.renderproto?=      ../../x11/renderproto9
   .else
   BUILDLINK_API_DEPENDS.renderproto+=    renderproto>=0.9.3nb1

 -- 
 OBATA Akio / obache@NetBSD.org


 --- end quote obache ---

  Thomas

State-Changed-From-To: open->closed
State-Changed-By: adam@NetBSD.org
State-Changed-When: Fri, 25 Mar 2011 13:02:32 +0000
State-Changed-Why:
This has been fixed.


>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.