media-video/mplayer-1.0_pre5-r3 fails building Reproducible: Always Steps to Reproduce: emerge -auvD mplayer Actual Results: make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre5-r3/work/MPlayer-1.0pre5/libmenu' gcc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include -o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o mixer.o parser-mpcmd.o libvo/libvo.a libao2/libao2.a libmenu/libmenu.a vidix/libvidix.a Gui/libgui.a libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a loader/libloader.a loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a -lmad -lvorbis -logg -ldv -lfaad -lmp3lame -lvorbis -logg -lpng -lz -lz -ljpeg -lasound -ldl -lpthread /usr/lib/libxmms.so.1 -export-dynamic -lfreetype -lz -lungif -lsmbclient -lfontconfig -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -L/usr/lib -lglib -lGL -lXxf86dga -lXv -lXxf86vm -L/usr/X11R6/lib -lXext -lX11 -lnsl -lnsl -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lvgagl -lvga -lm -L/usr/kde/3.3/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/lib -lesd -laudiofile -lm -lasound -lpthread -ldl -rdynamic -lm /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lsmbclient collect2: ld returned 1 exit status make: *** [mplayer] Error 1 !!! ERROR: media-video/mplayer-1.0_pre5-r3 failed. !!! Function src_compile, Line 380, Exitcode 2 !!! Failed to build MPlayer! jonix jonix # emerge info Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8-rc2-love3) ================================================================= System uname: 2.6.8-rc2-love3 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.5.3 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.gigaload.org/gentoo.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts avi berkdb cdr crypt cups dvd encode esd flac foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java joystick jpeg kde libg++ libwww linguas_de mad mbox mikmod mmx motif mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
Same error for me. I had a look at /usr/lib and found no libsmbclient, so I did: # ln -s /usr/lib/samba/libsmbclient.so /usr/lib/libsmbclient.so ...and all compiled fine after. But when I first launched mplayer, I got this error: mplayer: error while loading shared libraries: libsmbclient.so.0: cannot open shared object file: No such file or directory Then: # ln -s /usr/lib/samba/libsmbclient.so /usr/lib/libsmbclient.so.0 And all is OK now: mplayer runs fine! Is this to be considered as a bug in samba or mplayer ? Whatever the answer is, the turnaround was quite easy to find out !
Built and works now after setting the links you told me - merci Guillaume! Yes, linking is a fast and easy way to fix build errors due to wrong paths, I just happen to forget that too often. Either the path of the samba libs is not standard (I dont know), or mplayer needs a little patch now. Let's see what the devs are going to do :)
Samba devs: Can you guys provide any insight on this? If it's an MPlayer issue that isn't unique to samba, please let me know. Otherwise this is something that may need to be fixed samba wise. In any case, let me know what you guys think on this. Thanks ahead of time!
it was due to some lib movement from /usr/lib/libsmbclient to /usr/lib/samba/libsmblclient the samba-3.0.6-r1 ebuild makes symlinks to the old locations, so this should work with the updated samba. But feel free to check if mplayer can find the lib in /usr/lib/samba :)
This looks to be fixed by a samba upgrade. Please re-open if it still fails.