Bug 112894

Summary: graphics/dri - DRI Mesa fails to build during Xorg 7.2 metaport installation
Product: Ports & Packages Reporter: Chris Calvey <chris>
Component: Individual Port(s)Assignee: Eric Anholt <anholt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Chris Calvey 2007-05-23 16:30:03 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-05-23 23:09:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->anholt

Over to maintainer
Comment 2 Eric Anholt 2007-05-25 19:08:12 UTC
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
Comment 3 Chris Calvey 2007-05-26 11:40:22 UTC
-----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-----
Comment 4 Eric Anholt freebsd_committer freebsd_triage 2007-05-27 23:06:37 UTC
State Changed
From-To: open->closed

user error in upgrading.