[PATCH] update for TOOLS/c (was: Re: [MPlayer-dev-eng] documentation of TOOLS directory)
Diego Biurrun
diego at biurrun.de
Sat Jul 31 17:42:09 CEST 2004
Arpi writes:
>
> fastmem.sh & fastmemcpybench.c - benchmark/testbed for fastmemcpy stuff, keep it
BTW, does not compile for me with gcc 2.95.4 and 3.3.4:
silver:/usr/src/mplayer/dev/TOOLS$ gcc -g -DNAME=\"mmx\" -DHAVE_MMX fastmemcpybench.c -o fastmem-mmx
In file included from fastmemcpybench.c:26:
../drivers/mga_vid.h:22: error: parse error before "uint16_t"
../drivers/mga_vid.h:22: warning: no semicolon at end of struct or union
../drivers/mga_vid.h:23: warning: data definition has no type or storage class
../drivers/mga_vid.h:24: error: parse error before "ram_size"
../drivers/mga_vid.h:24: warning: data definition has no type or storage class
../drivers/mga_vid.h:25: error: parse error before "src_width"
../drivers/mga_vid.h:25: warning: data definition has no type or storage class
../drivers/mga_vid.h:26: error: parse error before "src_height"
../drivers/mga_vid.h:26: warning: data definition has no type or storage class
../drivers/mga_vid.h:27: error: parse error before "dest_width"
../drivers/mga_vid.h:27: warning: data definition has no type or storage class
../drivers/mga_vid.h:28: error: parse error before "dest_height"
../drivers/mga_vid.h:28: warning: data definition has no type or storage class
../drivers/mga_vid.h:29: error: parse error before "x_org"
../drivers/mga_vid.h:29: warning: data definition has no type or storage class
../drivers/mga_vid.h:30: error: parse error before "y_org"
../drivers/mga_vid.h:30: warning: data definition has no type or storage class
../drivers/mga_vid.h:31: error: parse error before "colkey_on"
../drivers/mga_vid.h:31: warning: data definition has no type or storage class
../drivers/mga_vid.h:32: error: parse error before "colkey_red"
../drivers/mga_vid.h:32: warning: data definition has no type or storage class
../drivers/mga_vid.h:33: error: parse error before "colkey_green"
../drivers/mga_vid.h:33: warning: data definition has no type or storage class
../drivers/mga_vid.h:34: error: parse error before "colkey_blue"
../drivers/mga_vid.h:34: warning: data definition has no type or storage class
../drivers/mga_vid.h:35: error: parse error before "format"
../drivers/mga_vid.h:35: warning: data definition has no type or storage class
../drivers/mga_vid.h:36: error: parse error before "frame_size"
../drivers/mga_vid.h:36: warning: data definition has no type or storage class
../drivers/mga_vid.h:37: error: parse error before "num_frames"
../drivers/mga_vid.h:37: warning: data definition has no type or storage class
../drivers/mga_vid.h:38: warning: data definition has no type or storage class
fastmemcpybench.c:30: error: parse error before "mga_vid_config"
fastmemcpybench.c:30: warning: data definition has no type or storage class
fastmemcpybench.c: In function `mga_init':
fastmemcpybench.c:44: error: request for member `num_frames' in something not a structure or union
fastmemcpybench.c:45: error: request for member `frame_size' in something not a structure or union
fastmemcpybench.c:46: error: request for member `format' in something not a structure or union
fastmemcpybench.c:48: error: request for member `colkey_on' in something not a structure or union
fastmemcpybench.c:49: error: request for member `src_width' in something not a structure or union
fastmemcpybench.c:50: error: request for member `src_height' in something not a structure or union
fastmemcpybench.c:51: error: request for member `dest_width' in something not a structure or union
fastmemcpybench.c:52: error: request for member `dest_height' in something not a structure or union
fastmemcpybench.c:53: error: request for member `x_org' in something not a structure or union
fastmemcpybench.c:54: error: request for member `y_org' in something not a structure or union
fastmemcpybench.c:56: error: request for member `version' in something not a structure or union
fastmemcpybench.c:57: error: subscripted value is neither array nor pointer
fastmemcpybench.c:65: error: request for member `frame_size' in something not a structure or union
fastmemcpybench.c:65: error: request for member `num_frames' in something not a structure or union
and fails to link for Roberto:
r at tower2:/usr/local/src/mplayer/TOOLS$ gcc -g -DNAME=\"mmx\" -DHAVE_MMX fastmemcpybench.c -o fastmem-mmx
/tmp/ccyRpONk.o(.text+0xb1): In function `main':
/usr/local/src/mplayer/TOOLS/fastmemcpybench.c:117: undefined reference to `fast_memcpy'
collect2: ld returned 1 exit status
Can anybody fix this?
Diego
More information about the MPlayer-dev-eng
mailing list