On Tue, 2005-12-27 at 23:40 +1300, Simon Geard wrote:
> On Mon, 2005-12-26 at 16:28 +1300, Simon Geard wrote:
> > Alternatively, has anyone managed to do a successful build of Xorg 7.0?
> > I tried one of the earlier release candidates, but had problems with the
> > Xserver build failing to work with Mesa.
> 
> Ok, just tried 7.0 again (still had the scripts from my last attempt,
> thankfully). I'm getting the same issue there when building the
> xorg-server package - it doesn't seem to like that agpgart.h file,
> though I don't see anything wrong with it.

Ok, I've found an answer here (should have tried searching earlier):

http://lists.freedesktop.org/archives/xorg/2005-December/011626.html

Looks like it's a problem a few people have had with the 6.9 and 7.0
candidates, and indeed a search of the mailing lists showed someone on
this list having the same problem which they were unable to resolve.

Seems the agpgart.h header isn't entirely safe for userspace apps to
use, but Xorg is doing it anyway. Not sure if the fix given is meant to
be permanent or a workaround, but it seems to work.


Just so this post is more easily found by anyone else searching, I'll
repeat the error message again:

gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -Wall
-Wpointer-arith -Wundef
-I../../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../../programs/Xserver/hw/xfree86/os-support -I.
-I../../../../../../programs/Xserver/include
-I../../../../../../exports/include/X11
-I../../../../../../include/extensions
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared
-I../../../../../../programs/Xserver/hw/xfree86/os-support/bus
-I../../../../../../extras/drm/shared-core  -I../../../../../..
-I../../../../../../exports/include   -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L                          -D_POSIX_SOURCE
-D_XOPEN_SOURCE   -D_BSD_SOURCE -D_SVID_SOURCE
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64             -D_GNU_SOURCE
-DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP       -DXCSECURITY -DTOGCUP
-DXF86BIGFONT -DDPMSExtension      -DXPRINT -DPIXPRIV -DPANORAMIX
-DRENDER -DRANDR       -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE
-DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
-DXFreeXDGA -DXvExtension                          -DXFree86LOADER
-DDLOPEN_HACK -DXFree86Server                           -DXF86VIDMODE
-DXvMCExtension                                 -DSMART_SCHEDULE
-DBUILDDEBUG -DXResExtension
-DX_BYTE_ORDER=X_LITTLE_ENDIAN
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0) *
1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO   -DHAS_MTRR_SUPPORT
-DUSESTDRES  -DDO_OS_FONTRESTORE -DCHECK_OS_VERSION=1 -DHAVE_SYSV_IPC
lnx_agp.c
In file included from lnx_agp.c:24:
/usr/include/linux/agpgart.h:55: error: syntax error before '__u16'
/usr/include/linux/agpgart.h:60: error: field 'version' has incomplete
type
/usr/include/linux/agpgart.h:61: error: syntax error before '__u32'
/usr/include/linux/agpgart.h:68: error: syntax error before '}' token
/usr/include/linux/agpgart.h:71: error: syntax error before '__u32'
/usr/include/linux/agpgart.h:92: error: syntax error before '__u32'
/usr/include/linux/agpgart.h:106: error: syntax error before '__u32'
lnx_agp.c: In function 'GARTInit':
lnx_agp.c:65: error: storage size of 'agpinf' isn't known
lnx_agp.c:65: warning: unused variable 'agpinf'
lnx_agp.c: In function 'xf86GetAGPInfo':
lnx_agp.c:129: error: storage size of 'agpinf' isn't known
lnx_agp.c:129: warning: unused variable 'agpinf'
lnx_agp.c: In function 'xf86AllocateGARTMemory':
lnx_agp.c:221: error: storage size of 'alloc' isn't known
lnx_agp.c:221: warning: unused variable 'alloc'
lnx_agp.c: In function 'xf86UnbindGARTMemory':
lnx_agp.c:324: error: storage size of 'unbind' isn't known
lnx_agp.c:324: warning: unused variable 'unbind'
lnx_agp.c: In function 'xf86EnableAGP':
lnx_agp.c:356: error: syntax error before 'setup'
lnx_agp.c:361: error: 'setup' undeclared (first use in this function)
lnx_agp.c:361: error: (Each undeclared identifier is reported only once
lnx_agp.c:361: error: for each function it appears in.)
make[7]: *** [lnx_agp.o] Error 1

Simon.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to