Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23737 - ffmpeg-0.4.7_pre20030624 fails to emerge
Summary: ffmpeg-0.4.7_pre20030624 fails to emerge
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
: 24298 25819 39773 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-29 23:18 UTC by Stefan Sarzio
Modified: 2004-03-25 11:07 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Sarzio 2003-06-29 23:18:08 UTC
gcc -Wl,--warn-common -rdynamic -g  -Wl,-E -o ffserver ffserver.o
-L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -ldl -logg -lvorbis
-lvorbisenc 
gcc -march=athlon -O3 -pipe -Wall -g -I.
-I/var/tmp/portage/ffmpeg-0.4.7_pre20030624/work/ffmpeg-cvs-2003-06-24
-I/var/tmp/portage/ffmpeg-0.4.7_pre20030624/work/ffmpeg-cvs-2003-06-24/libavcodec
-I/var/tmp/portage/ffmpeg-0.4.7_pre20030624/work/ffmpeg-cvs-2003-06-24/libavformat
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -I/usr/include/SDL
-D_REENTRANT -c -o ffplay.o ffplay.c 
gcc -Wl,--warn-common -rdynamic -g  -o ffplay_g ffplay.o cmdutils.o
-L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -ldl -logg -lvorbis
-lvorbisenc -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
ffplay.o(.text+0x5df): In function `main':
/var/tmp/portage/ffmpeg-0.4.7_pre20030624/work/ffmpeg-cvs-2003-06-24/ffplay.c:1388:
undefined reference to `XOpenDisplay'
ffplay.o(.text+0x615):/var/tmp/portage/ffmpeg-0.4.7_pre20030624/work/ffmpeg-cvs-2003-06-24/ffplay.c:1392:
undefined reference to `XCloseDisplay'
collect2: ld returned 1 exit status
make: *** [ffplay_g] Error 1

!!! ERROR: media-video/ffmpeg-0.4.7_pre20030624 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! make failed.


Reproducible: Always
Steps to Reproduce:
1. emerge --update ffmpeg
2.
3.

Actual Results:  
s. Details

BTW: emerge was successful on my P3

Expected Results:  
Emerge successful

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-openmosix-r4 i686 AMD-K7(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow libg++ mikmod berkdb slang esd vdr_vfat mmx apm -pcmcia pnp nls
readline -trusted -cdr -cups snmp slp -mozilla -X -motif -dga -opengl -xv -gpm
-kde -qt -qtmt -arts gtk -gtk2 -gnome -gb -bonobo -libwww libgda -gtkhtml -tcltk
ncurses sdl svga imlib lcms gif wmf jpeg png tiff gd avi oggvorbis mpeg
quicktime -alsa oss dvd -xmms ggz pam ssl -crypt -imap -maildir -mbox tcpd
-spell -truetype -xml -xml2 -pdflib -java -jikes python perl -gdbm -doc -odbc
mysql -innodb zlib -galeon -openoffice encode -samba apache apache2 php mod_php
mod_ssl -plotutils"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j6"
AUTOCLEAN="yes"
SYNC="rsync://rsync.salze.net/gentoo-x86-portage"
FEATURES="sandbox buildpkg ccache"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-07-01 15:21:59 UTC
K7 is CHOST="i686-pc-linux-gnu"

then try again
Comment 2 Stefan Sarzio 2003-07-02 00:08:08 UTC
Didn't help. Thank you anyway, of course!

Or do I have to rebuild anything/everything else because of the wrong CHOST??
Comment 3 Nick Hadaway 2003-07-02 11:16:32 UTC
has your K7 system ever had USE="X" ?  Like maybe SDL was linked to X?  I don't think ogg/vorbis has X-related code in it...
Comment 4 Stefan Sarzio 2003-07-02 23:36:26 UTC
Yes, indeed. Shall I add it again? Or recompile any packages - if so, which?
Comment 5 Nick Hadaway 2003-07-03 00:11:27 UTC
you can leave X off the system if you'd like... but maybe recompile sdl?
that appears to be the only library it is linking too which would have looked for X.
Comment 6 Nick Hadaway 2003-07-08 19:11:32 UTC
closing this bug as this appears to be an isolated issue related to removing X from use variables and the system and not having associated programs recompiled.
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-07-11 15:13:58 UTC
*** Bug 24298 has been marked as a duplicate of this bug. ***
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2003-07-13 14:27:59 UTC
Can we reopen this bug?

Where does ffmpeg require sdl? emerge -vep ffmpeg does not show sdl as a dependency at all.  Is sdl an actual dependency of ffmpeg?  If so, why is it not listed as one?

My system has *never* had X in the USE, and I am getting this same problem on 2 different systems, both with -X in USE.  Is there some dependency *somewhere* that would require X to be in USE that is causing this?  I seriously think this needs to be looked into further, as this breaks any usage of ffmpeg on a system with USE=-X, and since ffmpeg does *not* require X, this is incorrect behavior.
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2003-07-13 14:55:47 UTC
Apparently, rebuilding libsdl with USE=X fixes this problem.

This version of ffmpeg will NOT build if libsdl is built WITHOUT USE=X, which is wrong, since X is not a true requirement of either package.
Comment 10 Nick Hadaway 2003-07-13 17:51:47 UTC
I have done some further research into this... I have added  flags for sdl, imlib, and truetype support (of which imlib and truetype don't have associated configure options)

sdl is required for building the ffplay portion of ffmpeg.  I have added an sdl flag to the build associated with --{disable,enable}-ffplay

I don't have non-X system to test on currently... my ESX server is no longer online. :( but maybe try the ebuild now with the --disable-ffplay option... maybe that makes the difference?
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2003-07-14 04:48:31 UTC
I guess my real question is the validity of using this version of ffmpeg as "stable" when it clearly lacks the proper functionality of the older version (0.4.6).  After all, you could use SDL and ffplay previously with the frame buffer or with svgalib, now it appears to require X.  SDL and X do not have to be tied to each other, that is one of the reasons for using SDL, it is portable.

As for the current ebuild, well...

# emerge -vuUDp world
 
These are the packages that I would merge, in order:
 
Calculating world dependencies /
!!! all ebuilds that could satisfy ">=media-libs/imlib2-1.0.7" have been masked.
!!!    (dependency required by "media-video/ffmpeg-0.4.7_pre20030624" [ebuild])

imlib2?? I have never had this installed, and there isn't a stable version in portage.
Comment 12 Nick Hadaway 2003-07-14 20:20:28 UTC
It is suggested by the upstream author and many projects are utilizing the newer functions of the cvs code or can easily be patched.

http://ffmpeg.sourceforge.net
the site was down when i just checked it... 
look at the google cached version
Comment 13 Martin Holzer (RETIRED) gentoo-dev 2003-08-19 07:29:00 UTC
*** Bug 25819 has been marked as a duplicate of this bug. ***
Comment 14 Joel Martin (RETIRED) gentoo-dev 2004-03-25 11:07:14 UTC
*** Bug 39773 has been marked as a duplicate of this bug. ***