Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135610 - media-video/mplayer-1.0.20060415 failed - cannot find -lgtk-x11-2.0 , x11-libs/gtk+-2.8.12
Summary: media-video/mplayer-1.0.20060415 failed - cannot find -lgtk-x11-2.0 , x11-lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-05 03:20 UTC by tiny
Modified: 2006-06-21 18:45 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 tiny 2006-06-05 03:20:22 UTC
Compile process stops when emerging world on my system.
It stops at emerging mplayer. Linker complaines about missing
libraries. Looks like there are some missing soft links
when x11-libs/gtk+ gets installed. 

This is where it all stops:
...
make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0.20060415/work/mplayer-1.0.20060415/libmenu'
cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -D__STDC_LIMIT_MACROS -march=prescott -mcpu=prescott -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.      -I/usr/include/freetype2  -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include   -I./libavutil -I./libavcodec   -o mplayer mplayer.o m_property.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o  unrarlib.o mixer.o parser-mpcmd.o subopt-helper.o  libvo/libvo.a libao2/libao2.a libmenu/libmenu.a vidix/libvidix.a Gui/libgui.a libmpcodecs/libmpcodecs.a   libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a  libavcodec/libavcodec.a  libavformat/libavformat.a  libavutil/libavutil.a  libavcodec/libpostproc/libpostproc.a  -lmad     -lmp3lame  -lxvidcore  -lpng -lz -lz -ljpeg -lasound -ldl -lpthread /usr/lib/libxmms.so.1 -export-dynamic     -lfaac -lfreetype -lz -lncurses  -lnsl   -lgif  -lsmbclient  -lfontconfig   mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lglib-2.0    -lGL -ldl  -lXv  -lXxf86vm  -L/usr/X11R6/lib -lXext -lX11 -lnsl -lpthread -lnsl -lSDL -lpthread    -lvga     -L/usr/kde/3.5/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/lib -lesd -laudiofile -lm -lasound       -Wl,-z,noexecstack     -lpthread -ldl   -lm  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

!!! ERROR: media-video/mplayer-1.0.20060415 failed.
!!! Function src_compile, Line 495, Exitcode 2
!!! Failed to build MPlayer!
!!! If you need support, post the topmost build error, NOT this status message.


FIX:

I've manuallly created three soft links to three different libs.
1. ld: cannot find -lgtk-x11-2.0
ln -s /usr/lib/libgtk-x11-2.0.0.800.12 /usr/lib/libgtk-x11-2.0.so

2. ld: cannot find -lgdk-x11-2.0
ln -s /usr/lib/libgdk-x11-2.0.0.800.12 /usr/lib/libgdk-x11-2.0.so

3. ld: cannot find -lgdk_pixbuf-2.0
ln -s /usr/lib/libgdk_pixbuf-2.0.0.800.12 /usr/lib/libgdk_pixbuf-2.0.so

After that, mplayer gets compiled. 


# emerge --info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.6-r3, 2.6.12-rc4-mm1 i686)
=================================================================
System uname: 2.6.12-rc4-mm1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.4-r1, 2.4.2
dev-python/pycrypto: 1.9_alpha6
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/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://www.gigaload.org/gentoo.org/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.nutsmaas.nl/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cscope cups curl dri eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gphoto2 gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog java jpeg junit lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses network nls nptl ogg opengl pam pcre pdflib perl png pppd python quicktime readline reflection samba sdl session slang spell spl ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml xml2 xmms xorg xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment 1 Luca Barbato gentoo-dev 2006-06-05 04:45:52 UTC
your ldconfig/gtk ebuild is damaged.

try running ldconfig/emerging again gtk+ or glibc
Comment 2 tiny 2006-06-05 06:08:03 UTC
(In reply to comment #1)
> your ldconfig/gtk ebuild is damaged.
> 
> try running ldconfig/emerging again gtk+ or glibc
>

I recompiled gtk+ before and those three softlinks were still mising.
Did ldconfig and recompipled again. They are there now! Hmmm.
Lots of things happened in between, emerge sync being one of them.
Don't know what's happening but looks like all is ok now.

Anyway, thanks for your help.

Best regards
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2006-06-21 18:45:20 UTC
tiny got it fixed, thanks. :)