[MPlayer-users] Configure cannot find detect (libsmbclient) for Samba support

Ukpong Ukpong ukpongu1 at cs.man.ac.uk
Wed Nov 19 09:15:42 CET 2003


Hey all been trying to do this for a two days now but to no availe, the 
documentation give no information on this option at all..
	Here is the check from the confugre the scripts the comments 
there mention somthing to do with -ldl but am clueless on wether this 
applies to me.


########check from configure ###################
echocheck "Samba support (libsmbclient)"
if test "$_smbsupport" != no; then
    _smbsupport=no
    cat > $TMPC << EOF
#include <libsmbclient.h>
int main(void) { smbc_opendir("smb://"); return 0; }
EOF
    if cc_check -lsmbclient ; then 
# this is not working for me becouse it needs -ldl and some NIS (YP) libs
# $_ld_dl and -lyp ? should be added
	_smbsupport=yes
    fi
fi

###########Mplayer version #################################
MPlayer-0.92


##################Installed smbversion ###############
samba-client-2.2.7-3.7.3
samba-common-2.2.7-3.7.3
samba-swat-2.2.7-3.7.3
samba-2.2.7-3.7.3
All rpms from REDHAT 7.2    

##############Snippet from configure with regards to (libsmbcient)############

============ Checking for Samba support (libsmbclient) ============

#include <libsmbclient.h>
int main(void) { smbc_opendir("smb://"); return 0; }

gcc -I/usr/include  -L/usr/lib /tmp/mplayer-conf-16695-21174.c -o 
/tmp/mplayer-conf-24609-21174.o -lsmbclient
/usr/lib/libsmbclient.a(system.po): In function `sys_dlopen':
system.po(.text+0xf3b): undefined reference to `dlopen'
/usr/lib/libsmbclient.a(system.po): In function `sys_dlsym':
system.po(.text+0xf6b): undefined reference to `dlsym'
/usr/lib/libsmbclient.a(system.po): In function `sys_dlclose':
system.po(.text+0xf97): undefined reference to `dlclose'
/usr/lib/libsmbclient.a(system.po): In function `sys_dlerror':
system.po(.text+0xfc3): undefined reference to `dlerror'
/usr/lib/libsmbclient.a(util.po): In function `automount_lookup':
util.po(.text+0x18d4): undefined reference to `yp_get_default_domain'
util.po(.text+0x191a): undefined reference to `yperr_string'
util.po(.text+0x1a08): undefined reference to `yp_match'
util.po(.text+0x1b39): undefined reference to `yperr_string'
/usr/lib/libsmbclient.a(username.po): In function `user_in_netgroup_list':
username.po(.text+0x72c): undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status

ldd /tmp/mplayer-conf-24609-21174.o
ldd: /tmp/mplayer-conf-24609-21174.o: No such file or directory

Result is: no
##########################################






More information about the MPlayer-users mailing list