On Sat, 2002-07-13 at 11:56, Slava Polyakov wrote:
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
> 
> hackie@misato:~/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel 
> {513}$ make -f Makefile.linux radeon.o
> 
> cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes 
> -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer 
> -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include 
> /usr/src/linux-2.4.19-rc1/include/linux/modversions.h -DEXPORT_SYMTAB 
> -I/usr/src/linux-2.4.19-rc1/include -c radeon_drv.c -o radeon_drv.o
> In file included from radeon_drv.c:32:
> drmP.h:170: warning: static declaration for `vmalloc_to_page_Re956aa66' 
> follows non-static
> cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes 
> -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer 
> -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include 
> /usr/src/linux-2.4.19-rc1/include/linux/modversions.h 
> -I/usr/src/linux-2.4.19-rc1/include -c radeon_cp.c -o radeon_cp.o
> In file included from radeon_cp.c:32:
> drmP.h:170: warning: static declaration for `vmalloc_to_page_Re956aa66' 
> follows non-static
> radeon_cp.c: In function `radeon_do_cp_idle':
> radeon_cp.c:453: `__func__' undeclared (first use in this function)
> radeon_cp.c:453: (Each undeclared identifier is reported only once
> radeon_cp.c:453: for each function it appears in.)
> radeon_cp.c: In function `radeon_do_cp_start':
> radeon_cp.c:478: `__func__' undeclared (first use in this function)
> radeon_cp.c: In function `radeon_cp_start':
> radeon_cp.c:1027: `__func__' undeclared (first use in this function)
> radeon_cp.c: In function `radeon_cp_stop':
> radeon_cp.c:1055: `__func__' undeclared (first use in this function)
> radeon_cp.c: In function `radeon_cp_reset':
> radeon_cp.c:1094: `__func__' undeclared (first use in this function)
> radeon_cp.c: In function `radeon_cp_idle':
> radeon_cp.c:1115: `__func__' undeclared (first use in this function)
> radeon_cp.c: In function `radeon_engine_reset':
> radeon_cp.c:1125: `__func__' undeclared (first use in this function)
> radeon_cp.c: In function `radeon_cp_buffers':
> radeon_cp.c:1259: `__func__' undeclared (first use in this function)
> make: *** [radeon_cp.o] Error 1

Okay, this was my fault, I changed __FUNCTION__ to __func__ because gcc3
complains about __FUNCTION__ being deprecated and I was told __func__
was the portable alternative.  Maybe we need a #define __func__
__FUNCTION__ for some gccs, but I don't understand why you are getting
this and I'm not:

%B%n@%m:%3/%b%# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)

%B%n@%m:%3/%b%# make -f Makefile.linux radeon.o
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align
-Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__
-DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE
-DCONFIG_DRM_SIS -D__SMP__ -DMODVERSIONS -include
/usr/src/linux-2.4.19-gentoo-r5/include/linux/modversions.h
-DEXPORT_SYMTAB -I/usr/src/linux-2.4.19-gentoo-r5/include -c
radeon_drv.c -o radeon_drv.o
In file included from radeon_drv.c:32:
drmP.h:170: warning: static declaration for
`vmalloc_to_page_Rsmp_667fae44' follows non-static
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align
-Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__
-DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE
-DCONFIG_DRM_SIS -D__SMP__ -DMODVERSIONS -include
/usr/src/linux-2.4.19-gentoo-r5/include/linux/modversions.h
-I/usr/src/linux-2.4.19-gentoo-r5/include -c radeon_cp.c -o radeon_cp.o
In file included from radeon_cp.c:32:
drmP.h:170: warning: static declaration for
`vmalloc_to_page_Rsmp_667fae44' follows non-static
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align
-Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__
-DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE
-DCONFIG_DRM_SIS -D__SMP__ -DMODVERSIONS -include
/usr/src/linux-2.4.19-gentoo-r5/include/linux/modversions.h
-I/usr/src/linux-2.4.19-gentoo-r5/include -c radeon_state.c -o
radeon_state.o
In file included from radeon_state.c:31:
drmP.h:170: warning: static declaration for
`vmalloc_to_page_Rsmp_667fae44' follows non-static
ld -r radeon_drv.o radeon_cp.o radeon_state.o -o radeon.o

-- 
Eric Anholt <[EMAIL PROTECTED]>
http://people.freebsd.org/~anholt/dri/




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to