Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137962 - libmpeg2 missing dependancy (svgalib)
Summary: libmpeg2 missing dependancy (svgalib)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-25 11:33 UTC by matthew cuddy
Modified: 2006-08-23 08:49 UTC (History)
0 users

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 matthew cuddy 2006-06-25 11:33:40 UTC
emerge of libmpeg2 failed untill svgalib was emerged, then it succeded.   The error was:


/usr/lib/gcc/i586-pc-linux-gnu/3.4.5/../../../../i586-pc-linux-gnu/bin/ld: cannot find -lvga
collect2: ld returned 1 exit status
make[1]: *** [mpeg2dec] Error 1
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.4.0b/work/mpeg2dec-0.4.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libmpeg2-0.4.0b failed.
Call stack:
  ebuild.sh, line 1573:   Called dyn_compile
  ebuild.sh, line 982:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Steve Dibb (RETIRED) gentoo-dev 2006-06-25 13:06:00 UTC
I doubt that svgalib is a harddep for libmpeg2, more likely X or sdl libraries were using it and were broken.

Can you post output of emerge -pv libsdl?
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2006-06-25 13:09:07 UTC
Also, what USE flags did you have libmpeg2?  emerge -pv that as well, and post output.  Plus, try without one, either or both USE flags, and see which one that works without (after unmerging svgalib to create the scenario again).
Comment 3 matthew cuddy 2006-06-25 18:28:39 UTC
# emerge -pv libsdl
These are the packages that would be merged, in order:

Calculating dependencies   ... done!
[ebuild   R   ] media-libs/libsdl-1.2.8-r1  USE="X alsa arts esd opengl oss xv -aalib -dga -directfb -fbcon -ggi -libcaca -nas -noaudio -noflagstrip -nojoystick -novideo -pic -svga* -xinerama" 0 kB 

Total size of downloads: 0 kB


---here are my Use flags from make.conf---
USE="gtk -gnome -pcmcia arts qt kde alsa cdr dvdr dvd apm cups samba java joystick kdexdeltas quicktime scanner mmx gtk2 -shared xrc"

I emerged without adjusting the use flags

# emerge -pv libmpeg2
These are the packages that would be merged, in order:

Calculating dependencies   ... done!
[ebuild   R   ] media-libs/libmpeg2-0.4.0b  USE="X sdl" 0 kB 

Total size of downloads: 0 kB
I had the same use flags for libmpeg2 in make.conf

Steve, I don't understand what you mean by "try without one, either, or both USE flags". Could you please clarify?

Also, I seem to have missed posting my emerge --info. Here it is:
Gentoo Base System version 1.6.14
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.6-r4, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 AMD Athlon(tm) processor
dev-lang/python:     2.3.5, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d/* /etc/pam.d/* /etc/revdep-rebuild /etc/sysctl.conf /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr cli crypt cups dri dvd dvdr eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java joystick jpeg kde kdexdeltas libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection samba scanner sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xrc xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 4 Steve Dibb (RETIRED) gentoo-dev 2006-06-25 20:11:01 UTC
(In reply to comment #3)
> Steve, I don't understand what you mean by "try without one, either, or both
> USE flags". Could you please clarify?

heh, I meant this:

# emerge -C svgalib libmpeg2
# USE="-X" emerge libmpeg2
# emerge -C libmpeg2
# USE="-sdl" emerge libmpeg2

I'm just trying to see if/which one of those USE flags is pulling in svgalib deps.  I'm guessing it's libsdl, especially since it looks like you *used* to have it in your USE flags.

See this:

[ebuild   R   ] media-libs/libsdl-1.2.8-r1  USE="X alsa arts esd opengl oss xv
-aalib -dga -directfb -fbcon -ggi -libcaca -nas -noaudio -noflagstrip
-nojoystick -novideo -pic -svga* -xinerama" 0 kB 

The * after -svga means that right now it's compiled with svgalib support, so if svgalib was not installed, then anything using libsdl would break because libsdl's deps would break.

Try unmerging svgalib, then re-emerging libsdl and libmpeg2.  It'll probably work.
Comment 5 Matthias Schwarzott gentoo-dev 2006-06-26 00:51:09 UTC
The output of the following command (before reemerging libsdl) could be interesting:

sdl-config --libs

From this one can see whether libsdl is the cause of the problems.
Comment 6 matthew cuddy 2006-06-29 21:15:19 UTC
speedyX mac # sdl-config --libs
-lSDL -lpthread

This is as is with everything working. I'll let you know when I get a chance to re-emerge and post the results.
Comment 7 matthew cuddy 2006-07-01 08:23:43 UTC
# emerge -C svgalib libmpeg2
# sdl-config --libs
-lSDL -lpthread
# USE="-X" emerge libmpeg2
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lvga
collect2: ld returned 1 exit status
make[1]: *** [mpeg2dec] Error 1
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.4.0b/work/mpeg2dec-0.4.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libmpeg2-0.4.0b failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  libmpeg2-0.4.0b.ebuild, line 62:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

# USE="-sdl" emerge libmpeg2
   Success !!! Now what does this mean?
Comment 8 Luca Barbato gentoo-dev 2006-07-02 20:03:31 UTC
sdl with svga and not --as-needed?
Comment 9 Steve Dibb (RETIRED) gentoo-dev 2006-08-23 08:49:11 UTC
closing bug