After removing previous versions of vlc, an 'emerge vlc', the emerge vlc-1.0.0 fails with: libtool: compile: x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=access_file -DMODULE_NAME_IS_access_file -DMODULE_STRING=\"access_file\" -O0 -march=nocona -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT libaccess_file_plugin_la-file.lo -MD -MP -MF .deps/libaccess_file_plugin_la-file.Tpo -c file.c -fPIC -DPIC -o .libs/libaccess_file_plugin_la-file.o In file included from ../../include/vlc_common.h:496, from file.c:33: ../../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 mv -f .deps/libaccess_file_plugin_la-file.Tpo .deps/libaccess_file_plugin_la-file.Plo mv -f .deps/libv4l_plugin_la-v4l.Tpo .deps/libv4l_plugin_la-v4l.Plo make[5]: Leaving directory `/var/tmp/portage/media-video/vlc-1.0.0/work/vlc-1.0.0/modules/access' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/media-video/vlc-1.0.0/work/vlc-1.0.0/modules/access' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/media-video/vlc-1.0.0/work/vlc-1.0.0/modules/access' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-1.0.0/work/vlc-1.0.0/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-1.0.0/work/vlc-1.0.0' make: *** [all] Error 2 * * ERROR: media-video/vlc-1.0.0 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3945: Called base_src_compile * environment, line 665: Called base_src_work 'make' * environment, line 779: Called die * The specific snippet of code: * emake || die "died running emake, $FUNCNAME:make"; * The die message: * died running emake, base_src_work:make * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-video/vlc-1.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-1.0.0/temp/environment'. * I tried the 'pda bug' work around (# USE="-pda" emerge vlc), in case I didn't understand it, but got the same error.
Created attachment 198840 [details] ebuild environment file
Created attachment 198842 [details] vlc-1.0.0_build.log
Once again, real error is a few lines back: /bin/sh ../../libtool --tag=CC --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -DSYS_LINUX `top_srcdir="../.." top_builddir="../.." ../../vlc-config --cflags plugin libaccess_file_plugin_la-file.lo` -march=nocona -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT libaccess_file_plugin_la-file.lo -MD -MP -MF .deps/libaccess_file_plugin_la-file.Tpo -c -o libaccess_file_plugin_la-file.lo `test -f 'file.c' || echo './'`file.c v4l2.c: In function ‘OpenVideoDev’: v4l2.c:2038: error: ‘V4L2_FIELD_INTERLACED_TB’ undeclared (first use in this function) v4l2.c:2038: error: (Each undeclared identifier is reported only once v4l2.c:2038: error: for each function it appears in.) v4l2.c:2041: error: ‘V4L2_FIELD_INTERLACED_BT’ undeclared (first use in this function) Does this ring any bell ?
Please always post your "emerge --info" when you report bugs to our bug-tracker.
Created attachment 198879 [details] emerge --info
you have linux-headers 2.6.21, those are quite old, it seems those constants appeared later, I've bumped the dep to >=2.6.25 for v4l2. At least this version has the required constant.