同样版本的gcc-4.0.2,FC4 下可编译,而Magic Linux下不能?为什么?
错误代码:
[code:1]
vf_fspp.c:48:28: error: ffmpeg/dsputil.h: No such file or directory
vf_fspp.c:398: error: syntax error before 'DCTELEM'
vf_fspp.c:399: error: syntax error before '*' token
vf_fspp.c:401: error: syntax error before '*' token
vf_fspp.c: In function 'filter':
vf_fspp.c:421: error: 'DCTELEM' undeclared (first use in this function)
vf_fspp.c:421: error: (Each undeclared identifier is reported only once
vf_fspp.c:421: error: for each function it appears in.)
vf_fspp.c:421: error: 'block' undeclared (first use in this function)
vf_fspp.c:421: error: syntax error before ')' token
vf_fspp.c:422: error: 'block3' undeclared (first use in this function)
vf_fspp.c:422: error: syntax error before ')' token
vf_fspp.c: In function 'put_image':
vf_fspp.c:540: warning: pointer targets in passing argument 8 of 'filter' differ in signedness
vf_fspp.c:541: warning: pointer targets in passing argument 8 of 'filter' differ in signedness
vf_fspp.c:542: warning: pointer targets in passing argument 8 of 'filter' differ in signedness
vf_fspp.c: At top level:
vf_fspp.c:874: error: syntax error before 'DCTELEM'
vf_fspp.c: In function 'column_fidct_mmx':
vf_fspp.c:1598: error: 'data' undeclared (first use in this function)
vf_fspp.c:1598: error: 'output' undeclared (first use in this function)
vf_fspp.c:1598: error: 'cnt' undeclared (first use in this function)
vf_fspp.c:1599: error: 'thr_adr' undeclared (first use in this function)
vf_fspp.c:876: error: invalid lvalue in asm output 0
vf_fspp.c:876: error: invalid lvalue in asm output 1
vf_fspp.c:876: error: invalid lvalue in asm output 2
vf_fspp.c: At top level:
vf_fspp.c:1673: error: syntax error before '*' token
vf_fspp.c: In function 'row_idct_mmx':
vf_fspp.c:1866: error: 'workspace' undeclared (first use in this function)
vf_fspp.c:1866: error: 'output_adr' undeclared (first use in this function)
vf_fspp.c:1866: error: 'cnt' undeclared (first use in this function)
vf_fspp.c:1867: error: 'output_stride' undeclared (first use in this function)
vf_fspp.c:1676: error: invalid lvalue in asm output 0
vf_fspp.c:1676: error: invalid lvalue in asm output 1
vf_fspp.c:1676: error: invalid lvalue in asm output 2
vf_fspp.c: At top level:
vf_fspp.c:1939: error: syntax error before '*' token
vf_fspp.c: In function 'row_fdct_mmx':
vf_fspp.c:2110: error: 'pixels' undeclared (first use in this function)
vf_fspp.c:2110: error: 'data' undeclared (first use in this function)
vf_fspp.c:2110: error: 'cnt' undeclared (first use in this function)
vf_fspp.c:2111: error: 'line_size' undeclared (first use in this function)
vf_fspp.c:1941: error: invalid lvalue in asm output 0
vf_fspp.c:1941: error: invalid lvalue in asm output 1
vf_fspp.c:1941: error: invalid lvalue in asm output 2
make[1]: *** [vf_fspp.o] Error 1
make[1]: Leaving directory `/software/mplayer/MPlayer-20050806/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] 错误 2
make -C libmpcodecs
make[1]: Entering directory `/software/mplayer/MPlayer-20050806/libmpcodecs'
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=athlon-4 -mtune=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu99 -I. -Inative -I.. -I../libmpdemux -I../loader -I../libavutil -D_GNU_SOURCE -o vf_fspp.o vf_fspp.c
vf_fspp.c:48:28: error: ffmpeg/dsputil.h: No such file or directory
vf_fspp.c:398: error: syntax error before 'DCTELEM'
vf_fspp.c:399: error: syntax error before '*' token
vf_fspp.c:401: error: syntax error before '*' token
vf_fspp.c: In function 'filter':
vf_fspp.c:421: error: 'DCTELEM' undeclared (first use in this function)
vf_fspp.c:421: error: (Each undeclared identifier is reported only once
vf_fspp.c:421: error: for each function it appears in.)
vf_fspp.c:421: error: 'block' undeclared (first use in this function)
vf_fspp.c:421: error: syntax error before ')' token
vf_fspp.c:422: error: 'block3' undeclared (first use in this function)
vf_fspp.c:422: error: syntax error before ')' token
vf_fspp.c: In function 'put_image':
vf_fspp.c:540: warning: pointer targets in passing argument 8 of 'filter' differ in signedness
vf_fspp.c:541: warning: pointer targets in passing argument 8 of 'filter' differ in signedness
vf_fspp.c:542: warning: pointer targets in passing argument 8 of 'filter' differ in signedness
vf_fspp.c: At top level:
vf_fspp.c:874: error: syntax error before 'DCTELEM'
vf_fspp.c: In function 'column_fidct_mmx':
vf_fspp.c:1598: error: 'data' undeclared (first use in this function)
vf_fspp.c:1598: error: 'output' undeclared (first use in this function)
vf_fspp.c:1598: error: 'cnt' undeclared (first use in this function)
vf_fspp.c:1599: error: 'thr_adr' undeclared (first use in this function)
vf_fspp.c:876: error: invalid lvalue in asm output 0
vf_fspp.c:876: error: invalid lvalue in asm output 1
vf_fspp.c:876: error: invalid lvalue in asm output 2
vf_fspp.c: At top level:
vf_fspp.c:1673: error: syntax error before '*' token
vf_fspp.c: In function 'row_idct_mmx':
vf_fspp.c:1866: error: 'workspace' undeclared (first use in this function)
vf_fspp.c:1866: error: 'output_adr' undeclared (first use in this function)
vf_fspp.c:1866: error: 'cnt' undeclared (first use in this function)
vf_fspp.c:1867: error: 'output_stride' undeclared (first use in this function)
vf_fspp.c:1676: error: invalid lvalue in asm output 0
vf_fspp.c:1676: error: invalid lvalue in asm output 1
vf_fspp.c:1676: error: invalid lvalue in asm output 2
vf_fspp.c: At top level:
vf_fspp.c:1939: error: syntax error before '*' token
vf_fspp.c: In function 'row_fdct_mmx':
vf_fspp.c:2110: error: 'pixels' undeclared (first use in this function)
vf_fspp.c:2110: error: 'data' undeclared (first use in this function)
vf_fspp.c:2110: error: 'cnt' undeclared (first use in this function)
vf_fspp.c:2111: error: 'line_size' undeclared (first use in this function)
vf_fspp.c:1941: error: invalid lvalue in asm output 0
vf_fspp.c:1941: error: invalid lvalue in asm output 1
vf_fspp.c:1941: error: invalid lvalue in asm output 2
make[1]: *** [vf_fspp.o] Error 1
make[1]: Leaving directory `/software/mplayer/MPlayer-20050806/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] 错误 2
[/code:1]