Bug 25953 - dri driver compilation fails (mesa 7.6.1 on Mandriva 2009.1, linux-x86 )
Summary: dri driver compilation fails (mesa 7.6.1 on Mandriva 2009.1, linux-x86 )
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300 (show other bugs)
Version: 7.6
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 15:56 UTC by Yury
Modified: 2010-01-09 15:18 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Yury 2010-01-08 15:56:53 UTC
I am trying to compile mesa 7.6.1 on Mandriva 2009.1 
(linux-x86-dri) and get the following error:

radeon_screen.c: In function 'radeonGetParam':
radeon_screen.c:235: error: variable 'info' has initializer but incomplete type
radeon_screen.c:235: warning: excess elements in struct initializer
radeon_screen.c:235: warning: (near initialization for 'info')
radeon_screen.c:235: error: storage size of 'info' isn't known
radeon_screen.c:246: error: duplicate case value
radeon_screen.c:240: error: previously used here
radeon_screen.c:235: warning: unused variable 'info'
radeon_screen.c: In function 'radeonCreateScreen':
radeon_screen.c:1025: error: 'R600_SCRATCH_REG_OFFSET' undeclared (first use in this function)
radeon_screen.c:1025: error: (Each undeclared identifier is reported only once
radeon_screen.c:1025: error: for each function it appears in.)

what does it mean?
Comment 1 Alex Deucher 2010-01-08 16:08:40 UTC
You need a newer radeon_drm.h
Comment 2 Yury 2010-01-09 15:14:24 UTC
Thank you. It works. 
I wonder why radeon_drm.h file is absent in Mesa distribution.

Comment 3 Alex Deucher 2010-01-09 15:18:03 UTC
(In reply to comment #2)
> Thank you. It works. 
> I wonder why radeon_drm.h file is absent in Mesa distribution.
> 

It's not provided by mesa.  It's provided by libdrm or the kernel depending on your distro.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.