From: SourceForge.net <no...@so...> - 2005-04-14 20:48:44
|
Bugs item #1175002, was opened at 2005-04-01 19:27 Message generated for change (Comment added) made by syncomm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=109655&aid=1175002&group_id=9655 Category: build system problem Group: current cvs version Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Fails to compile in Fedora core 4Test1 with gcc4 Initial Comment: I tried to compile current CVS in Fedora core 4Test1 with gcc4 and i get compile error: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -I../../lib -I/usr/X11R6/include -mtune=pentiumpro -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -MT color.lo -MD -MP -MF .deps/color.Tpo -c color.c -fPIC -DPIC -o .libs/color.o color.c: In function 'vscale_chroma_line': color.c:498: error: invalid lvalue in increment color.c:499: error: invalid lvalue in increment make[3]: *** [color.lo] Error 1 make[3]: Leaving directory `/home/xine-lib/src/xine-utils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/xine-lib/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/xine-lib' make: *** [all] Error 2 ---------------------------------------------------------------------- Comment By: Gregory S. Hayes (syncomm) Date: 2005-04-14 20:48 Message: Logged In: YES user_id=397 I tried your patch, everything worked fine up until here: gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -I../../../../include -I../../../../src -I../../../../src/xine-engine -I../../../../src/xine-engine -I../../../../src/xine-utils -I../../../../src/input -I../../../../src/input -I../../../../lib -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -mtune=pentiumpro -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -MT cputest.lo -MD -MP -MF .deps/cputest.Tpo -c cputest.c -o .libs/cputest.o In file included from ../dsputil.h:31, from cputest.c:5: ../common.h:73: error: array type has incomplete element type ../common.h:75: error: array type has incomplete element type make[5]: *** [cputest.lo] Error 1 make[5]: Leaving directory `/home/syncomm/cvs/xine-lib/src/libffmpeg/libavcodec/i386' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/syncomm/cvs/xine-lib/src/libffmpeg/libavcodec'make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/syncomm/cvs/xine-lib/src/libffmpeg' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/syncomm/cvs/xine-lib/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/syncomm/cvs/xine-lib' make: *** [all] Error 2 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-04-02 00:19 Message: Logged In: NO thanks for the patch it went pass that error but then into another error. gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -I../../../../include -I../../../../src -I../../../../src/xine-engine -I../../../../src/xine-engine -I../../../../src/xine-utils -I../../../../src/input -I../../../../src/input -I../../../../lib -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -mtune=pentiumpro -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -MT cputest.lo -MD -MP -MF .deps/cputest.Tpo -c cputest.c -o .libs/cputest.o In file included from ../dsputil.h:31, from cputest.c:5: ../common.h:73: error: array type has incomplete element type ../common.h:75: error: array type has incomplete element type make[5]: *** [cputest.lo] Error 1 make[5]: Leaving directory `/home/xine-lib/src/libffmpeg/libavcodec/i386' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/xine-lib/src/libffmpeg/libavcodec' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/xine-lib/src/libffmpeg' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/xine-lib/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/xine-lib' make: *** [all] Error 2 [ ---------------------------------------------------------------------- Comment By: Ville Skyttä (scop) Date: 2005-04-01 22:27 Message: Logged In: YES user_id=32457 There are a lot of these "invalid lvalue" errors in the build with gcc4, as well as a few "conflicting declaration" ones. This sf.net tracker is "smart" enough to not allow me to submit a patch in this bug, so I've put a patch online elsewhere: http://koti.welho.com/vskytta/xine-lib-gcc4.patch This patch allows successful compilation with gcc4, but I have not tested the resulting xine-lib. Caveat: I'm not a C coder, so approach with caution! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=109655&aid=1175002&group_id=9655 |