Summary: | Problems compiling with gcc 4.0 | ||
---|---|---|---|
Product: | xorg | Reporter: | Falk Hueffner <falk> |
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | high | CC: | ajax, roland.mainz |
Version: | git | ||
Hardware: | Alpha | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | 2254 | ||
Bug Blocks: |
Description
Falk Hueffner
2004-12-03 16:45:17 UTC
Some more: make[7]: Entering directory `/src/xc-2004.12.04/programs/Xserver/hw/xfree86/drivers/ati' [...] gcc -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef -fno-merge-constants -I. -I../i2c -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/hw/xfree86 -I../../../../../../programs/Xserver/hw/xfree86/vbe -I../../../../../../programs/Xserver/hw/xfree86/int10 -I../../../../../../programs/Xserver/hw/xfree86/ddc -I../../../../../../programs/Xserver/hw/xfree86/i2c -I../../../../../../programs/Xserver/hw/xfree86/rac -I../../../../../../programs/Xserver/hw/xfree86/ramdac -I../../../../../../programs/Xserver/hw/xfree86/shadowfb -I../../../../../../programs/Xserver/hw/xfree86/xaa -I../../../../../../programs/Xserver/hw/xfree86/xf4bpp -I../../../../../../programs/Xserver/hw/xfree86/xf1bpp -I../../../../../../programs/Xserver/hw/xfree86/vgahw -I../../../../../../programs/Xserver/hw/xfree86/fbdevhw -I../../../../../../programs/Xserver/mfb -I../../../../../../programs/Xserver/fb -I../../../../../../programs/Xserver/mi -I../../../../../../programs/Xserver/miext/shadow -I../../../../../../programs/Xserver/render -I../../../../../../programs/Xserver/Xext -I../../../../../../programs/Xserver/include -I../../../../../../programs/Xserver/GL/dri -I../../../../../../lib/GL/dri -I../../../../../../include -I../../../../../../extras/drm/shared -I../../../../../../include/fonts -I../../../../../../include/extensions -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -Dlinux -D__alpha__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((1) * 1000) + 99)" -D_XSERVER64 -DJENSEN_SUPPORT -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -D__GLX_ALIGN64 -mieee -c radeon_probe.c In file included from radeon_probe.c:52: radeon_chipset.h:1: error: static declaration of 'RADEONChipsets' follows non-static declaration radeon_probe.h:144: error: previous declaration of 'RADEONChipsets' was here radeon_probe.c:153: warning: type qualifiers ignored on function return type radeon_probe.c:153: warning: no previous prototype for 'getRADEONEntityIndex' make[7]: *** [radeon_probe.o] Error 1 [...] gcc -O2 -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef -fno-merge-constants -I. -I../i2c -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../../programs/Xserver/hw/xfree86 -I../../../../../../programs/Xserver/hw/xfree86/vbe -I../../../../../../programs/Xserver/hw/xfree86/int10 -I../../../../../../programs/Xserver/hw/xfree86/ddc -I../../../../../../programs/Xserver/hw/xfree86/i2c -I../../../../../../programs/Xserver/hw/xfree86/rac -I../../../../../../programs/Xserver/hw/xfree86/ramdac -I../../../../../../programs/Xserver/hw/xfree86/shadowfb -I../../../../../../programs/Xserver/hw/xfree86/xaa -I../../../../../../programs/Xserver/hw/xfree86/xf4bpp -I../../../../../../programs/Xserver/hw/xfree86/xf1bpp -I../../../../../../programs/Xserver/hw/xfree86/vgahw -I../../../../../../programs/Xserver/hw/xfree86/fbdevhw -I../../../../../../programs/Xserver/mfb -I../../../../../../programs/Xserver/fb -I../../../../../../programs/Xserver/mi -I../../../../../../programs/Xserver/miext/shadow -I../../../../../../programs/Xserver/render -I../../../../../../programs/Xserver/Xext -I../../../../../../programs/Xserver/include -I../../../../../../programs/Xserver/GL/dri -I../../../../../../lib/GL/dri -I../../../../../../include -I../../../../../../extras/drm/shared -I../../../../../../include/fonts -I../../../../../../include/extensions -I../../../../../../exports/include/X11 -I../../../../../.. -I../../../../../../exports/include -Dlinux -D__alpha__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((1) * 1000) + 99)" -D_XSERVER64 -DJENSEN_SUPPORT -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -D__GLX_ALIGN64 -mieee -c radeon_driver.c In file included from radeon_driver.c:98: radeon_chipset.h:1: error: static declaration of 'RADEONChipsets' follows non-static declaration radeon_probe.h:144: error: previous declaration of 'RADEONChipsets' was here radeon_driver.c: In function 'RADEONGetClockInfo': radeon_driver.c:1485: warning: format '%ld' expects type 'long int', but argument 6 has type 'CARD32' radeon_driver.c:1485: warning: format '%ld' expects type 'long int', but argument 7 has type 'CARD32' make[7]: *** [radeon_driver.o] Error 1 The correct thing is perhaps: --- programs/Xserver/hw/xfree86/drivers/ati/radeon_probe.h~ 2004-08-03 11:38:03.000000000 +0200 +++ programs/Xserver/hw/xfree86/drivers/ati/radeon_probe.h 2004-11-18 20:01:49.000000000 +0100 @@ -146,9 +146,6 @@ extern Bool RADEONProbe FunctionPrototype((DriverPtr, int)); -extern SymTabRec RADEONChipsets[]; -extern PciChipsets RADEONPciChipsets[]; - /* radeon_driver.c */ extern void RADEONLoaderRefSymLists FunctionPrototype((void)); roland, this is the xprint issue i was talking about. i'll take care of the radeon bug. ajax wrote: > roland, this is the xprint issue i was talking about. > i'll take care of the radeon bug. That problem has been fixed with bug 2254... ... are there any issues left or can this bug now be closed ? (In reply to comment #3) > ... are there any issues left or can this bug now be closed ? There's one left: Index: programs/Xserver/cfb/cfbgc.c =================================================================== RCS file: /cvs/xorg/xc/programs/Xserver/cfb/cfbgc.c,v retrieving revision 1.3 diff -u -p -r1.3 cfbgc.c --- programs/Xserver/cfb/cfbgc.c 14 Jan 2005 08:37:30 -0000 1.3 +++ programs/Xserver/cfb/cfbgc.c 19 Jan 2005 07:43:01 -0000 @@ -85,7 +85,7 @@ SOFTWARE. # define usePolyGlyphBlt miPolyGlyphBlt #endif -void cfbUnPushPixels (GCPtr, PixmapPtr, DrawablePtr, int, int, int, int); +static void cfbUnPushPixels (GCPtr, PixmapPtr, DrawablePtr, int, int, int, int); #ifdef FOUR_BIT_CODE # define usePushPixels cfbPushPixels8 (maybe there's more, I compiled only ati...) (In reply to comment #4) > (In reply to comment #3) > > > ... are there any issues left or can this bug now be closed ? > > There's one left: > > Index: programs/Xserver/cfb/cfbgc.c good catch. note that this one is only relevant to HEAD. fixed in HEAD, thanks. Hello, I'm getting the same problem that Falk was, only I'm trying to compile the X Server with GCC 4.1. I've downloaded what I've thought is the most recent source for the 6.8.1 X Server. Can someone help point me in the right direction to some newer source code or could this still be an actual bug when compiling with GCC 4.1? Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future. Should be fixed in head. Latest X server release is 7.2: http://ftp.x.org/pub/individual/xserver/xorg-server-1.2.0.tar.bz2 |
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.