[MPlayer-users] samba support(?)

Torinthiel torinthiel at megapolis.pl
Fri Feb 4 00:52:25 CET 2005

On Fri, Feb 04, 2005 at 12:02:15AM +0400, Savchenko Andrew wrote:
> Is there someone so lucky to make smb support works correctly??! I understand, 
> this support is experimental, but I can't make it works anyway... I'm using 
> the latest CVS version of MPlayer.
> So, there are some bugs detected:
> 1) Error in configure script. This test code from configure can't be compiled 
> even if samba installed, because _before_ calling any function of 
> libsmbclient you must call smbc_init, according to libsmbclient 
> documentation:

Ok, that tells why the code cannot be RUN properly. Now, why it cannot
be compiled? On my system configure detects libsmbclient properly.

> ---
> #include <libsmbclient.h>
> int main(void) { smbc_opendir("smb://"); return 0; }
> ---
> So, user must force samba support by using --enable-smb option when 
> running ./configure.
> 2) Well, I've foreced samba support, then I've got linker error:
> ---
> ..and so on (it is _not_ full output). This error occurs because libssl is NOT 
> linked. So, I've change
> SMBSUPPORT_LIB = -lsmbclient
> to 
> SMBSUPPORT_LIB = -lsmbclient -lssl
> in configure.mak and code compiled successfully.

What version of samba are you using? Damn, just checked, mine (2.2.12)
works well without -lssl Havent checked, though, if there is no
configure option to {en,dis}able -lssl. But OTOH it won't be hard to add
another check to configure, if it's needed.
BTW -lssl is probably the reason why configure doesn't detect your
libsmbclient. Try the attached patch and tell me if it helps
autodetection and compilation.

> 3) So, now I have mplayer compiled with samba support, but is still doesn't 
> work. When I try to use smb resource (this resource is available for reading 
> for _every_ user and _every_ password), I've got this error:
> ---
> ./mplayer smb://
> ...
> Playing smb://
> Cannot init the libsmbclient library: -1

Now for that I cannot help. I have no smb server to check :(

 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
Index: configure
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.959
diff -u -r1.959 configure
--- configure	2 Feb 2005 14:07:13 -0000	1.959
+++ configure	3 Feb 2005 23:51:28 -0000
@@ -3220,6 +3220,11 @@
 	    if cc_check -lsmbclient $_ld_dl -lnsl ; then
 		_ld_smb="-lsmbclient $_ld_dl -lnsl"
+		else
+	    if cc_check -lsmbclient -lssl ; then
+		_smbsupport=yes
+		_ld_smb="-lsmbclient -lssl"
+	    fi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20050204/fcf4ceb4/attachment.pgp>

More information about the MPlayer-users mailing list