Bug 12733 - xf86-video-ati-6.7.195 fails with missing header
Summary: xf86-video-ati-6.7.195 fails with missing header
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.3 (2007.09)
Hardware: All Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL: https://bugs.gentoo.org/show_bug.cgi?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-08 03:26 UTC by Lars Weiler
Modified: 2007-10-09 20:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Lars Weiler 2007-10-08 03:26:59 UTC
I'm testing xf86-video-ati-6.7.195 on Gentoo Linux/PowerPC.  During compile it fails with:
 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -O2 -mtune=G4 -mcpu=G4 -maltivec -mabi=altivec -pipe -Wall -MT atiprint.lo -MD -MP -MF .deps/atiprint.Tpo -c atiprint.c  -fPIC -DPIC -o .libs/atiprint.o
atiprint.c: In function 'ATIPrintRegisters':
atiprint.c:644: error: 'uint32_t' undeclared (first use in this function)
atiprint.c:644: error: (Each undeclared identifier is reported only once
atiprint.c:644: error: for each function it appears in.)
atiprint.c:644: error: expected ';' before 'data'
atiprint.c:646: error: 'data' undeclared (first use in this function)
make[2]: *** [atiprint.lo] Error 1

The fix is quite simple:

diff -Naur xf86-video-ati-6.7.195.orig/src/atiprint.c
xf86-video-ati-6.7.195/src/atiprint.c
--- xf86-video-ati-6.7.195.orig/src/atiprint.c  2007-10-08 00:20:51.000000000 +0200
+++ xf86-video-ati-6.7.195/src/atiprint.c       2007-10-08 00:22:16.000000000 +0200
@@ -26,6 +26,7 @@

 #include <string.h>
 #include <ctype.h>
+#include <stdint.h>

 #include "ati.h"
 #include "atichip.h"

There is one other Gentoo user who confirmed this bug on x86 as well.  See the bug-report in the URL-field.
Comment 1 Alex Deucher 2007-10-09 20:33:10 UTC
committed:
547fef4c6382f8a4951c086ee531b804cba31075


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.