Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278765 - media-video/vlc-1.0.0 fails to compile, not 'pda' bug
Summary: media-video/vlc-1.0.0 fails to compile, not 'pda' bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 21:04 UTC by mjbjr
Modified: 2009-07-27 07:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild environment file (environment,160.24 KB, text/plain)
2009-07-22 21:07 UTC, mjbjr
Details
vlc-1.0.0_build.log (vlc-1.0.0_build.log,403.92 KB, text/plain)
2009-07-22 21:11 UTC, mjbjr
Details
emerge --info (emerge_info.txt,3.62 KB, text/plain)
2009-07-23 07:42 UTC, mjbjr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjbjr 2009-07-22 21:04:41 UTC
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.
Comment 1 mjbjr 2009-07-22 21:07:00 UTC
Created attachment 198840 [details]
ebuild environment file
Comment 2 mjbjr 2009-07-22 21:11:08 UTC
Created attachment 198842 [details]
vlc-1.0.0_build.log
Comment 3 Rafał Mużyło 2009-07-22 23:14:04 UTC
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 ?
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-23 07:05:32 UTC
Please always post your "emerge --info" when you report bugs to our bug-tracker.
Comment 5 mjbjr 2009-07-23 07:42:54 UTC
Created attachment 198879 [details]
emerge --info
Comment 6 Alexis Ballier gentoo-dev 2009-07-27 07:14:44 UTC
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.