[vlc] Build failures on x86_64 and ppc with gcc 4.0 (Fedora Core 4)

Matthias Saou thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Tue Jun 28 17:29:16 CEST 2005


Hi,

I've been able to compile vlc 0.8.2 fine on Fedora Core 4 on an x86
machine, but not on x86_64 nor ppc. Here is the error I get on ppc :

[...]
if gcc -DHAVE_CONFIG_H -I. -I. -I../../..   -DSYS_LINUX -I../../../include
`top_builddir="../../.." ../../../vlc-config --cflags builtin
memcpyaltivec` -Wsign-compare -Wall -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -
fexceptions -m32 -fsigned-char -pipe -MT libmemcpyaltivec_a-
memcpyaltivec.o -MD -MP -MF ".deps/libmemcpyaltivec_a-memcpyaltivec.Tpo" \
-c -o libmemcpyaltivec_a-memcpyaltivec.o `test -f 'memcpyaltivec.c' ||
echo './'`memcpyaltivec.c; \ then mv -f ".deps/libmemcpyaltivec_a-
memcpyaltivec.Tpo" ".deps/libmemcpyaltivec_a-memcpyaltivec.Po"; \ else rm -
f ".deps/libmemcpyaltivec_a-memcpyaltivec.Tpo"; exit 1; \ fi
memcpyaltivec.c: In function 'fast_memcpy': memcpyaltivec.c:109: error:
'vector' undeclared (first use in this function) memcpyaltivec.c:109:
error: (Each undeclared identifier is reported only once
memcpyaltivec.c:109: error: for each function it appears in.)
memcpyaltivec.c:109: error: syntax error before 'unsigned'
memcpyaltivec.c:111: error: 'perm' undeclared (first use in this function)
memcpyaltivec.c:111: warning: implicit declaration of function 'vec_lvsl'
memcpyaltivec.c:112: error: 'ref0' undeclared (first use in this function)
memcpyaltivec.c:112: warning: implicit declaration of function 'vec_ld'
memcpyaltivec.c:113: error: 'ref1' undeclared (first use in this function)
memcpyaltivec.c:116: error: 'tmp' undeclared (first use in this function)
memcpyaltivec.c:116: warning: implicit declaration of function 'vec_perm'
memcpyaltivec.c:123: warning: implicit declaration of function 'vec_st'
make[6]: *** [libmemcpyaltivec_a-memcpyaltivec.o] Error 1 make[6]: Leaving
directory `/usr/src/rpm/BUILD/vlc-0.8.2/modules/misc/memcpy' make[5]: ***
[all-modules] Error 1

And after quickly replacing "(int)gzf" on line 559 of modules/gui/skins2/
src/theme_loader.cpp with "1" since it was causing an error about the cast
from void* to int, I now get this error on x86_64 :

[...]
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -DSYS_LINUX -I./include
`top_builddir="." ./vlc-config --cflags vlc` -Wsign-compare -Wall -O2 -g -
pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -mtune=nocona -pipe -MT src/
misc/lib_libvlc_a-cpu.o -MD -MP -MF "src/misc/.deps/lib_libvlc_a-cpu.Tpo"
\ -c -o src/misc/lib_libvlc_a-cpu.o `test -f 'src/misc/cpu.c' || echo
'./'`src/misc/cpu.c; \ then mv -f "src/misc/.deps/lib_libvlc_a-cpu.Tpo"
"src/misc/.deps/lib_libvlc_a-cpu.Po"; \ else rm -f "src/misc/.deps/
lib_libvlc_a-cpu.Tpo"; exit 1; \ fi {standard input}: Assembler messages:
{standard input}:43: Error: suffix or operands invalid for
`push' {standard input}:45: Error: suffix or operands invalid for
`pop' {standard input}:48: Error: suffix or operands invalid for
`push' {standard input}:51: Error: suffix or operands invalid for
`pop' {standard input}:53: Error: suffix or operands invalid for
`pop' {standard input}:72: Error: suffix or operands invalid for
`push' {standard input}:75: Error: suffix or operands invalid for
`pop' {standard input}:104: Error: suffix or operands invalid for
`push' {standard input}:107: Error: suffix or operands invalid for
`pop' {standard input}:138: Error: suffix or operands invalid for
`push' {standard input}:141: Error: suffix or operands invalid for
`pop' {standard input}:155: Error: suffix or operands invalid for
`push' {standard input}:158: Error: suffix or operands invalid for `pop'
make[2]: *** [src/misc/lib_libvlc_a-cpu.o] Error 1 make[2]: Leaving
directory `/usr/src/rpm/BUILD/vlc-0.8.2' make[1]: *** [all-recursive]
Error 1

For the details of the configure options I use, you can see :
http://svn.rpmforge.net/svn/trunk/rpms/videolan-client/

I've since used ffmpeg-20050624 instead of ffmpeg-20050513 to fix the
build on x86_64 too.

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 3 (Heidelberg) - Linux kernel 2.6.11-1.35_FC3
Load : 0.32 0.39 0.42

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list