Portál AbcLinuxu, 8. května 2025 18:18
Celý den se zabývám a hledám jak zkompilovat nejnovější vlc pod debianem etch. Vždy ale make skončí s tímhle:
../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
control/playlist.c: In function ‘libvlc_playlist_add’:
control/playlist.c:151: warning: ‘libvlc_playlist_add_extended’ is deprecated (declared at ../include/vlc/deprecated.h:308)
mv -f control/.deps/libvlc_la-playlist.Tpo control/.deps/libvlc_la-playlist.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -DSYS_LINUX `top_srcdir=".." top_builddir=".." ../vlc-config --cflags libvlc` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT control/libvlc_la-vlm.lo -MD -MP -MF control/.deps/libvlc_la-vlm.Tpo -c -o control/libvlc_la-vlm.lo `test -f 'control/vlm.c' || echo './'`control/vlm.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -DSYS_LINUX -I/usr/local/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\" -O2 -ffast-math -funroll-loops -mtune=athlon64 -fomit-frame-pointer -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -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: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vlc_spinlock_t’
../include/vlc_threads.h:245: error: expected ‘)’ before ‘*’ token
../include/vlc_threads.h:253: error: expected ‘)’ before ‘*’ token
../include/vlc_threads.h:261: error: expected ‘)’ before ‘*’ token
../include/vlc_threads.h:269: error: expected ‘)’ before ‘*’ token
In file included from ../include/vlc_es.h:29,
from control/vlm.c:26:
../include/vlc_common.h:544: error: expected specifier-qualifier-list before ‘vlc_spinlock_t’
make[4]: *** [control/libvlc_la-vlm.lo] Error 1
make[4]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2'
make: *** [all] Error 2
konfigurace:
./configure --disable-x11 --disable-xvideo --enable-sdl --enable-avcodec --enable-avformat --enable-swscale --enable-mad --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-caca --disable-skins2 --disable-alsa --disable-qt4 --enable-ncurses --enable-release
Zkoušel jsem i vlc 1.0.1 a to samé. Kde je problém?
Používejte tag <pre>. Takhle aby to prase četlo.
../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 control/playlist.c: In function ‘libvlc_playlist_add’: control/playlist.c:151: warning: ‘libvlc_playlist_add_extended’ is deprecated (declared at ../include/vlc/deprecated.h:308) mv -f control/.deps/libvlc_la-playlist.Tpo control/.deps/libvlc_la-playlist.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -DSYS_LINUX `top_srcdir=".." top_builddir=".." ../vlc-config --cflags libvlc` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT control/libvlc_la-vlm.lo -MD -MP -MF control/.deps/libvlc_la-vlm.Tpo -c -o control/libvlc_la-vlm.lo `test -f 'control/vlm.c' || echo './'`control/vlm.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -DSYS_LINUX -I/usr/local/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\" -O2 -ffast-math -funroll-loops -mtune=athlon64 -fomit-frame-pointer -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -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: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vlc_spinlock_t’ ../include/vlc_threads.h:245: error: expected ‘)’ before ‘*’ token ../include/vlc_threads.h:253: error: expected ‘)’ before ‘*’ token ../include/vlc_threads.h:261: error: expected ‘)’ before ‘*’ token ../include/vlc_threads.h:269: error: expected ‘)’ before ‘*’ token In file included from ../include/vlc_es.h:29, from control/vlm.c:26: ../include/vlc_common.h:544: error: expected specifier-qualifier-list before ‘vlc_spinlock_t’ make[4]: *** [control/libvlc_la-vlm.lo] Error 1 make[4]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/media/exdisk/vlc/vlc-1.0.2' make: *** [all] Error 2
../include/vlc_threads.h:240: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘vlc_spinlock_t’je zapotřebí číst tak, že kompilátor nerozeznal vlc_spinlock_t coby typ (tj. není definován), takže došel k tomu, že je to normální identifikátor, ale ten mu tam syntakticky nepasuje, muselo by před ním ještě být něco z uvedeného. Proč není definován typ vlc_spinlock_t, těžko říci. Možná se hlavičkový soubor, který ho definuje, vkládal nějakým vedlejším efektem, který se přestal dít... Zkusil bych najít hlavičkový soubor s tím typedefem a dopsat do vlc_threads.h to #include ručně.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.