Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61126 - Samba 3.0.6 breaks mplayer
Summary: Samba 3.0.6 breaks mplayer
Status: RESOLVED DUPLICATE of bug 61046
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-21 03:35 UTC by Michael Knight
Modified: 2005-07-17 13:06 UTC (History)
3 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 Michael Knight 2004-08-21 03:35:02 UTC
After emerging net-fs/samba-3.0.6 I got this error when using mplayer (media-video/mplayer-1.0_pre5-r3 with the samba USE flag):

mplayer: error while loading shared libraries: libsmbclient.so.0: cannot open shared object file: No such file or directory

mplayer then exits.

Reproducible: Always
Steps to Reproduce:
1. Emerge mplayer with the samba USE flag while samba < 3.0.6 is installed.
2. Emerge samba 3.0.6.
3. Try and play a video with mplayer.

Actual Results:  
$ mplayer movie.avi 
mplayer: error while loading shared libraries: libsmbclient.so.0: cannot open
shared object file: No such file or directory


Expected Results:  
The movie should play.

Additionally, re-emerging mplayer with the samba USE flag fails on compile with
this message:

gcc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=athlon-4
-mcpu=athlon-4 -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  libavcodec/libavcodec.a   -lmad -lvorbis -logg -ldv -ltheora
-logg -lfaad  -lmp3lame -lvorbis -logg -lxvidcore -lm -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
-laa -lGL -lXxf86dga -lXv  -lXxf86vm  -L/usr/X11R6/lib -lXext -lX11 -lnsl -lnsl
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread    -lvgagl -lvga -lm -ldirectfb 
-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  -laudio -lXt
-L/usr/X11R6/lib -lXext -lX11 -lnsl      -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!


Re-emerging mplayer without the samba USE flag is successful and mplayer appears
to work fine. I marked this bug as critical because a lot of people will have a
broken mplayer - even though the workaround is pretty easy. Why does mplayer
link against samba anyway? :)
Comment 1 neuron 2004-08-21 03:43:27 UTC
it also breaks gnome-vfs and kdebase the smbclient lib doesn't seem to exist in the lates samba.
Comment 2 Sigurd Schneider 2004-08-21 04:40:59 UTC
The libsmbclient.so libsmbclient.a stuff moved to /usr/lib/samba/, but libsmbclient.so.0 isn't anywhere.
Maybe samba-3.0.6 forgott to create the symlink ?
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2004-08-21 08:51:45 UTC
midnight commander is also affected (if compiled with samba USE flag). revdep-rebuild doesn't help, the compilation (I only tried recompiling mc so far) b0rks with undefined references when linking smbclient-specific parts.

We need to either add -l/usr/lib/samba to all affected ebuilds (and wait for other breakages to occur *shudder*), or create symlink for libsmbclient.so and .a in /usr/lib, as Sigurd suggested.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-21 15:04:59 UTC

*** This bug has been marked as a duplicate of 61046 ***