[Bug 2008] Problems compiling with gcc 4.0
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Dec 3 17:31:16 PST 2004
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=2008
------- Additional Comments From falk at debian.org 2004-12-03 17:31 -------
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));
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the xorg-bugzilla-noise
mailing list