From nobody@FreeBSD.org  Wed May 23 15:27:41 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3018516A421
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 May 2007 15:27:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 1EBB213C448
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 May 2007 15:27:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4NFRenK019718
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 May 2007 15:27:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l4NFMd58019153;
	Wed, 23 May 2007 15:22:39 GMT
	(envelope-from nobody)
Message-Id: <200705231522.l4NFMd58019153@www.freebsd.org>
Date: Wed, 23 May 2007 15:22:39 GMT
From: Chris Calvey<chris@infosec.yi.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: DRI Mesa fails to build during Xorg 7.2 metaport installation 
X-Send-Pr-Version: www-3.0

>Number:         112894
>Category:       ports
>Synopsis:       graphics/dri - DRI Mesa fails to build during Xorg 7.2 metaport installation
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    anholt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 23 15:30:03 GMT 2007
>Closed-Date:    Sun May 27 22:07:35 GMT 2007
>Last-Modified:  Sun May 27 22:07:35 GMT 2007
>Originator:     Chris Calvey
>Release:        6.2-RELEASE-p4
>Organization:
>Environment:
FreeBSD epsilon.localdomain 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Fri Apr 27 15:27:04 BST 2007     root@epsilon.localdomain:/usr/obj/usr/src/sys/EPSILON  i386

>Description:
On trying to install the Xorg metaport, the build fails in DRI/Mesa with the following message:

ath -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -I/usr/local/include -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS   ../common/vblank.c -o ../common/vblank.o
./common/vblank.c: In function `driGetCurrentVBlank':
./common/vblank.c:306: error: `DRM_VBLANK_SECONDARY' undeclared (first use in this function)
./common/vblank.c:306: error: (Each undeclared identifier is reported only once
./common/vblank.c:306: error: for each function it appears in.)
./common/vblank.c: In function `driWaitForVBlank':
./common/vblank.c:363: error: `DRM_VBLANK_SECONDARY' undeclared (first use in this function)
gmake[6]: *** [../common/vblank.o] Error 1
gmake[6]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-6.5.3/src/mesa/drivers/dri/i810'
gmake[5]: *** [subdirs] Error 1
gmake[5]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-6.5.3/src/mesa/drivers/dri'
gmake[4]: *** [linux-solo] Error 2
gmake[4]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-6.5.3/src/mesa'
gmake[3]: *** [default] Error 2
gmake[3]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-6.5.3/src/mesa'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-6.5.3/src'
gmake[1]: *** [default] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-6.5.3'
gmake: *** [freebsd-dri-x86] Error 2
*** Error code 2

Stop in /usr/ports/graphics/dri.
*** Error code 1

Stop in /usr/ports/x11/xorg.

>How-To-Repeat:
cd /usr/ports/x11/xorg
make
make install

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->anholt 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed May 23 22:09:17 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112894 

From: Chris Calvey <chris@infosec.yi.org>
To: Eric Anholt <eric@anholt.net>
Cc: bug-followup@FreeBSD.org, chris@infosec.yi.org
Subject: Re: ports/112894: graphics/dri - DRI Mesa fails to build during Xorg
 7.2 metaport installation
Date: Sat, 26 May 2007 11:40:22 +0100 (BST)

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: RIPEMD160
 
 
 Hi Eric,
 
 Yes my version of libdrm was < 2.3.0. I upgraded as you suggested and DRI
 built fine.
 
 Many thanks
 
 Chris
 
 On Fri, 25 May 2007, Eric Anholt wrote:
 
 > What version is your libdrm?  If less than 2.3.0, please use portupgrade
 > when updating xorg so that dependencies are picked up and updated as
 > necessary.  If you only have 2.3.0 installed, please check for other
 > potential copies of xf86drm.h that might be stale.
 >
 > -- 
 > Eric Anholt                             anholt@FreeBSD.org
 > eric@anholt.net                         eric.anholt@intel.com
 >
 >
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iEYEAREDAAYFAkZYDpYACgkQ2EhcHMZadWw4/ACfe4gvenTRa1MN8d9YkPw1Ik1X
 zVUAni3ope304Y+OEA5sMcgntdOfjKrd
 =u3up
 -----END PGP SIGNATURE-----

From: Eric Anholt <eric@anholt.net>
To: bug-followup@FreeBSD.org, chris@infosec.yi.org
Cc:  
Subject: Re: ports/112894: graphics/dri - DRI Mesa fails to build during
	Xorg 7.2 metaport installation
Date: Fri, 25 May 2007 11:08:12 -0700

 --=-Nsz6C/YKJLerJt+rGqyQ
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 What version is your libdrm?  If less than 2.3.0, please use portupgrade
 when updating xorg so that dependencies are picked up and updated as
 necessary.  If you only have 2.3.0 installed, please check for other
 potential copies of xf86drm.h that might be stale.
 
 --=20
 Eric Anholt                             anholt@FreeBSD.org
 eric@anholt.net                         eric.anholt@intel.com
 
 
 --=-Nsz6C/YKJLerJt+rGqyQ
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iD8DBQBGVyYMHUdvYGzw6vcRAm9HAJ4kMNVeZt7b4n3JJEMXgEG5wpyhdgCgh/5i
 GVNm+p6fkK8k9QcgxObSpA8=
 =LPEX
 -----END PGP SIGNATURE-----
 
 --=-Nsz6C/YKJLerJt+rGqyQ--
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Sun May 27 22:06:37 UTC 2007 
State-Changed-Why:  
user error in upgrading. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112894 
>Unformatted:
