VLC 1.0.0 build on RHEL4 gcc3 error.
Posted: 22 Jul 2009 23:25
Hi I use vlc 1.0.0 release to build a nice command line VLC.
installed latest pth from GNU, 2.0.7 to fix pthreads headers.
Configure finishes without any show stoppers.
Here's the error I get during 'make' :
Please let me know if you have any hints for me.
Thanks.
installed latest pth from GNU, 2.0.7 to fix pthreads headers.
Code: Select all
CPPFLAGS=-I/vlc/usr/include CFLAGS="-O2 -fPIC -march=i486 -mtune=i686 -I/vlc/usr/include" CXXFLAGS="-O2 -fPIC -march=i486 -mtune=i686 -I/vlc/usr/include" LDFLAGS=-L/vlc/usr/lib PKG_CONFIG_PATH=/vlc/usr/lib/pkgconfig ./configure --prefix=/vlc1-rc3 --disable-rpath --disable-testsuite --enable-static --enable-release --disable-arts --disable-esd --disable-gnomevfs --disable-pvr --disable-dc1394 --enable-dvbpsi --disable-dvdnav --disable-fribidi --disable-qt4 --disable-skins2 --disable-x11 --disable-opengl --disable-sdl --disable-fluidsynth --enable-libcdio --enable-cddax --enable-vcdx --disable-libcddb --disable-telx --disable-zvbi --disable-snapshot --disable-caca --disable-aa --disable-galaktos --disable-flac --disable-shout --disable-schroedinger --enable-live555 --with-live555-tree=/vlc_source/live/ --disable-speex --enable-x264 --with-x264-tree=/vlc_source/x264-snapshot-20090526-2245 --enable-a52 --with-a52-tree=/vlc_source/a52dec-0.7.4 --disable-dca --enable-faad --with-faad-tree=/vlc_source/faad2-2.7 --enable-twolame --with-twolame-tree=/vlc_source/twolame-0.3.12 --disable-ogg --disable-vorbis --disable-theora --enable-avcodec --enable-avformat --disable-xvideo --disable-glx --disable-xinerama --disable-visual --disable-bonjour --enable-swscale --disable-svgalib AVCODEC_LIBS="-lavcodec -lbz2 -lz -lamrnb -lmp3lame -lfaac -ldl -lavutil -lm -laacplus" AVCODEC_CFLAGS="" --disable-debug --enable-run-as-root --disable-hal --disable-dbus --disable-dbus-control --disable-remoteosd --disable-v4l --disable-v4l2 --disable-libv4l2
Here's the error I get during 'make' :
Code: Select all
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I/vlc/usr/include -DSYS_LINUX -I/vlc1-rc3/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -DMODULE_NAME=libvlc -DMODULE_NAME_IS_libvlc -DMODULE_STRING=\"libvlc\" -O4 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -O2 -fPIC -march=i486 -mtune=i686 -I/vlc/usr/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -MT control/libvlc_la-vlm.lo -MD -MP -MF control/.deps/libvlc_la-vlm.Tpo -c control/vlm.c -fPIC -DPIC -o control/.libs/libvlc_la-vlm.o
In file included from ../include/vlc_common.h:496,
from ../include/vlc_es.h:29,
from control/vlm.c:26:
../include/vlc_mtime.h:80: warning: `error' attribute directive ignored
../include/vlc_mtime.h:90: warning: `warning' attribute directive ignored
../include/vlc_mtime.h:108: warning: `error' attribute directive ignored
In file included from ../include/vlc_common.h:497,
from ../include/vlc_es.h:29,
from control/vlm.c:26:
../include/vlc_threads.h:240: error: syntax error before "vlc_spinlock_t"
../include/vlc_threads.h:240: warning: type defaults to `int' in declaration of `vlc_spinlock_t'
../include/vlc_threads.h:240: warning: data definition has no type or storage class
../include/vlc_threads.h:245: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_init':
../include/vlc_threads.h:247: error: implicit declaration of function `pthread_spin_init'
../include/vlc_threads.h:247: error: `spin' undeclared (first use in this function)
../include/vlc_threads.h:247: error: (Each undeclared identifier is reported only once
../include/vlc_threads.h:247: error: for each function it appears in.)
../include/vlc_threads.h: At top level:
../include/vlc_threads.h:253: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_lock':
../include/vlc_threads.h:255: error: implicit declaration of function `pthread_spin_lock'
../include/vlc_threads.h:255: error: `spin' undeclared (first use in this function)
../include/vlc_threads.h: At top level:
../include/vlc_threads.h:261: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_unlock':
../include/vlc_threads.h:263: error: implicit declaration of function `pthread_spin_unlock'
../include/vlc_threads.h:263: error: `spin' undeclared (first use in this function)
../include/vlc_threads.h: At top level:
../include/vlc_threads.h:269: error: syntax error before '*' token
../include/vlc_threads.h: In function `vlc_spin_destroy':
../include/vlc_threads.h:271: error: implicit declaration of function `pthread_spin_destroy'
../include/vlc_threads.h:271: error: `spin' undeclared (first use in this function)
../include/vlc_threads.h: In function `barrier':
../include/vlc_threads.h:348: error: syntax error before "spin"
../include/vlc_threads.h:349: error: `spin' undeclared (first use in this function)
In file included from ../include/vlc_es.h:29,
from control/vlm.c:26:
../include/vlc_common.h: At top level:
../include/vlc_common.h:544: error: syntax error before "vlc_spinlock_t"
../include/vlc_common.h:544: warning: no semicolon at end of struct or union
../include/vlc_common.h:547: error: syntax error before '}' token
../include/vlc_common.h:547: warning: type defaults to `int' in declaration of `gc_object_t'
../include/vlc_common.h:547: warning: data definition has no type or storage class
../include/vlc_common.h:554: error: syntax error before '*' token
../include/vlc_common.h:554: error: syntax error before '*' token
../include/vlc_common.h:555: error: syntax error before '*' token
../include/vlc_common.h:556: error: syntax error before '*' token
In file included from ../include/vlc_common.h:849,
from ../include/vlc_es.h:29,
from control/vlm.c:26:
../include/vlc_messages.h:58: error: syntax error before "gc_object_t"
../include/vlc_messages.h:58: warning: no semicolon at end of struct or union
../include/vlc_messages.h:59: warning: type defaults to `int' in declaration of `msg_item_t'
../include/vlc_messages.h:59: warning: data definition has no type or storage class
../include/vlc_messages.h:71: error: syntax error before '*' token
../include/vlc_messages.h:71: error: syntax error before '*' token
../include/vlc_messages.h:72: warning: return type defaults to `int'
../include/vlc_messages.h:72: warning: no previous prototype for 'msg_Hold'
../include/vlc_messages.h: In function `msg_Hold':
../include/vlc_messages.h:73: error: `msg' undeclared (first use in this function)
../include/vlc_messages.h: At top level:
../include/vlc_messages.h:77: error: syntax error before '*' token
../include/vlc_messages.h: In function `msg_Release':
../include/vlc_messages.h:79: error: `msg' undeclared (first use in this function)
../include/vlc_messages.h: At top level:
../include/vlc_messages.h:113: error: syntax error before "msg_item_t"
In file included from ../include/vlc_input.h:38,
from control/vlm.c:27:
../include/vlc_input_item.h:55: error: syntax error before "gc_object_t"
../include/vlc_input_item.h:55: warning: no semicolon at end of struct or union
../include/vlc_input_item.h:88: error: syntax error before '}' token
make[4]: *** [control/libvlc_la-vlm.lo] Error 1
make[4]: Leaving directory `/vlc_source/vlc-1.0.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/vlc_source/vlc-1.0.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/vlc_source/vlc-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vlc_source/vlc-1.0.0'
make: *** [all] Error 2
Please let me know if you have any hints for me.
Thanks.