Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230143 - media-video/ffmpeg-0.4.9_p20080326 causes compilation errors in k9copy
Summary: media-video/ffmpeg-0.4.9_p20080326 causes compilation errors in k9copy
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:
: 230161 (view as bug list)
Depends on:
Blocks: 214740
  Show dependency tree
 
Reported: 2008-06-30 08:22 UTC by Bob Raitz
Modified: 2008-10-12 21:37 UTC (History)
8 users (show)

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


Attachments
Error message from xine-lib when it fails. (xine-lib_error.txt,18.71 KB, text/plain)
2008-06-30 08:41 UTC, Bob Raitz
Details
patch for (ffmpeg-20080326 + patch from #223701) (k9copy-1.2.3-newffmpeg.patch,2.74 KB, patch)
2008-06-30 12:04 UTC, Maxim Britov
Details | Diff
k9copy fix (k9copy-1.2.3-new-ffmpeg.patch,721 bytes, patch)
2008-07-01 02:57 UTC, David Watzke
Details | Diff
patch for k9copy 1.2.3-r1 (k9copy-1.2.3-r1-to-r2.ebuild.patch,500 bytes, patch)
2008-07-01 10:23 UTC, David Watzke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Raitz 2008-06-30 08:22:22 UTC
With media-video/ffmpeg-0.4.9_p20080326 installed, the following packages experience compilation failures: media-libs/xine-lib (ver 1.1.8 tested), app-cdr/k9kopy (ver. 1.2.3-r1 tested), and possibly other packages.

Reproducible: Always

Steps to Reproduce:
1. emerge media-video/ffmpeg-0.4.9_p20080326
2. attempt to emerge xine-lib or k9copy (will add more to the list as I discover them)
3. compilation failures.

Actual Results:  
The trick is getting media-video/ffmpeg-0.4.9_p20080326 to emerge in the first place. For reference on how I installed said package, please refer to http://bugs.gentoo.org/show_bug.cgi?id=223701 for more details.

Expected Results:  
the problem packages should have installed after the upgrade to media-video/ffmpeg-0.4.9_p20080326

This happens on both x86 and amd64 systems. The system that yields the following errors is a 32 bit system. I therefore include its emerge --info for reference.



pappy-lap ~ # emerge --info
Portage 2.2_rc1 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.8_p20080602-r0, 2.6.22.19 i686)
=================================================================
System uname: Linux-2.6.22.19-i686-Intel-R-_Celeron-R-_M_CPU_440_@_1.86GHz-with-glibc2.0
Timestamp of tree: Sun, 29 Jun 2008 07:36:01 +0000
distcc 2.18.3 i486-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j256"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa ao audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt css cups dbus dlloader dri dts dv dvd dvdr dvdread eds encode esd fam fbcon ffmpeg fftw firefox flac foomaticdb fortran gdbm gif gimp gpm gsl gstreamer gtk hal iconv ipv6 isdnlog jack jpeg kde kdexdeltas kdgraphics ladspa lame ldap libg++ libsamplerate live mad midi mikmod mp3 mpeg mudflap nas ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdcre pdf pdflib perl php png ppds pppd python qt3 quicktime readline reflection samba sdl session slang slp sndfile spell spl sse2 ssl swat tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb vidix vorbis wifi win32codecs wxwindows x264 x86 xine xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1     emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Bob Raitz 2008-06-30 08:36:22 UTC
The following is the error message from the compilation failure of k9copy:


rm -rf import.h;
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload ./import.ui | /usr/bin/perl -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> import.h ;
rm -rf menuEdit.h;
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload ./menuEdit.ui | /usr/bin/perl -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> menuEdit.h ;
rm -rf newTitle.h;
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload ./newTitle.ui | /usr/bin/perl -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> newTitle.h ;
/usr/qt/3/bin/moc ./k9avidecode.h -o k9avidecode.moc
/bin/sh ../libtool --silent --tag=CXX --mode=compile i486-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../k9devices -I../k9vamps -I../libk9copy -I../src -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include -I. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fpermissive -c -o k9avidecode.lo k9avidecode.cpp
distcc[22320] ERROR: compile (null) on localhost failed
In file included from k9avidecode.cpp:13:
k9avidecode.h:17:29: error: ffmpeg/avformat.h: No such file or directory
k9avidecode.cpp:14:28: error: ffmpeg/avcodec.h: No such file or directory
distcc[22319] ERROR: compile k9avidecode.cpp on 192.168.0.130 failed
make[2]: *** [k9avidecode.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-cdr/k9copy-1.2.3-r1/work/k9copy-1.2.3/k9author'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-cdr/k9copy-1.2.3-r1/work/k9copy-1.2.3'
make: *** [all] Error 2
 *
 * ERROR: app-cdr/k9copy-1.2.3-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4056:  Called kde_src_compile
 *             environment, line 2888:  Called kde_src_compile 'all'
 *             environment, line 3008:  Called kde_src_compile 'myconf' 'configure' 'make'
 *             environment, line 3004:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile: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/app-cdr/k9copy-1.2.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-cdr/k9copy-1.2.3-r1/temp/environment'.
Comment 2 Bob Raitz 2008-06-30 08:41:32 UTC
Created attachment 158927 [details]
Error message from xine-lib when it fails.

This is the output to the screen when xine-lib compilation fails.
Comment 3 Bob Raitz 2008-06-30 08:45:49 UTC
Masking media-video/ffmpeg-0.4.9_p20080326, and emerging media-video/ffmpeg-0.4.9_p20070616-r2 gets rid of the problem. The listed programs once again compile properly. The same compilation errors also occur with ffmpeg-0.4.9_p20080206; however, since it's hard masked, that point is moot. I mention it only for reference.

Blessed be!
Pappy
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2008-06-30 09:48:36 UTC
With ~arch keyworded ffmpeg you are supposed to use ~arch keyworded packages. Latest xine-lib works. Although earlier versions should indeed block ~arch ffmpeg-0.4.9_p2008*, which still needs to be fixed. I have opened bug 230151 as a tracker bug for xine-lib and similar packages.

I'll leave this bug open for k9copy only, as that one has slipped between our fingers and is ~arch keyworded...

If you find other packages whose latest ~arch version does not work with ffmpeg-0.4.9_p2008* please open new bugs blocking 214740.
Comment 5 Ben de Groot (RETIRED) gentoo-dev 2008-06-30 10:39:17 UTC
*** Bug 230161 has been marked as a duplicate of this bug. ***
Comment 6 Maxim Britov 2008-06-30 12:04:58 UTC
Created attachment 158953 [details, diff]
patch for (ffmpeg-20080326 + patch from #223701)

I can compile k9copy-1.2.3-r1 with ffmpeg+20080326 with this patch.
But I use ffmpeg-20080326 with my patch from issue #223701.
Just for info :)
Comment 7 Bob Raitz 2008-06-30 18:27:57 UTC
(In reply to comment #4)
> With ~arch keyworded ffmpeg you are supposed to use ~arch keyworded packages.
> Latest xine-lib works. Although earlier versions should indeed block ~arch
> ffmpeg-0.4.9_p2008*, which still needs to be fixed. I have opened bug 230151 as
> a tracker bug for xine-lib and similar packages.
> 
> I'll leave this bug open for k9copy only, as that one has slipped between our
> fingers and is ~arch keyworded...
> 
> If you find other packages whose latest ~arch version does not work with
> ffmpeg-0.4.9_p2008* please open new bugs blocking 214740.
> 
The latest version of xine-lib *may* work, but to move to it would prevent gxine from being recompiled. That is why I maintain that particular version of xine-lib on my machine.
Comment 8 David Watzke 2008-07-01 02:57:25 UTC
Created attachment 159045 [details, diff]
k9copy fix

I think this is a better patch (for k9copy + new ffmpeg)
Comment 9 David Watzke 2008-07-01 10:23:56 UTC
Created attachment 159101 [details, diff]
patch for k9copy 1.2.3-r1

this is patch for k9copy-1.2.3-r1.ebuild to work with my patch (it applies only if you have >=media-video/ffmpeg-0.4.9_p20080326 installed)
Comment 10 Tony Murray 2008-07-02 17:03:15 UTC
David Watzke's fix works good here. I don't think you need to rename the ebuild to r2 though, if it compiled for people great, if not the fix should allow it to compile.
Comment 11 Bob Raitz 2008-07-05 06:23:20 UTC
Yes, this rates a "works for me" as far as I am concerned. Thanks to all.

Blessed be!
Pappy
Comment 12 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-06 11:29:04 UTC
Please allow me to be perfectly clear about this:
THE BUG IS NOT CLOSED TILL THE FIX IS IN TREE
Comment 13 Peter Alfredsen (RETIRED) gentoo-dev 2008-07-06 11:45:23 UTC
Now, it's fixed.
Comment 14 Tobias Leupold 2008-07-19 08:18:01 UTC
Still not working here:

erhome tobias # emerge -uavD world

These are the packages that would be merged, in order:

Calculating world dependencies /
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

media-video/ffmpeg:0

  ('installed', '/', 'media-video/ffmpeg-0.4.9_p20080326', 'nomerge') pulled in by
    ('installed', '/', 'app-cdr/k9copy-1.2.3-r2', 'nomerge')

  ('ebuild', '/', 'media-video/ffmpeg-0.4.9_p20070616', 'merge') pulled in by
    ('installed', '/', 'media-video/transcode-1.0.4-r3', 'nomerge')
    ('installed', '/', 'media-libs/xine-lib-1.1.13', 'nomerge')
    ('installed', '/', 'media-sound/picard-0.9.0', 'nomerge')


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in the
dependencies of two different packages, then those packages can not be
installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man page
or refer to the Gentoo Handbook.

!!! Depgraph creation failed.
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2008-07-19 10:25:47 UTC
(In reply to comment #14)
> Still not working here:

>   ('ebuild', '/', 'media-video/ffmpeg-0.4.9_p20070616', 'merge') pulled in by
>     ('installed', '/', 'media-video/transcode-1.0.4-r3', 'nomerge')
>     ('installed', '/', 'media-libs/xine-lib-1.1.13', 'nomerge')
>     ('installed', '/', 'media-sound/picard-0.9.0', 'nomerge')

See comment #4. You need to add all packages that pull in ffmpeg-0.4.9_p2007* to package.keywords.