Why is smbclient required?
#1
I'm trying to run configure from a fresh git checkout, but I get:

Code:
checking for main in -lsmbclient... no
configure: error: Could not find a required library. Please see the README for your platform.

But why is the samba client library required?

I just want to build a version on Linux without using windows shares as I'm using NFS to mount media files from my server.
Reply
#2
With libsmbclient present I get some undefined references during the autoconf test:

Code:
configure:20017: gcc -o conftest  -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -D_DEBUG -Wall -O2   conftest.c -lsmbclient  -lfaad -lmysqlclient -lmodplug -lssh -lmpeg2convert -lmpeg2 -lwavpack -lcrypto -lssl -lz -llzo2 -lpthread -ljpeg -lbz2 -lass -lGLU -lGLEW -lGL  -lmad -lm   -lfribidi   -lsqlite3   -lpng14   -L/lib64 -lpcre   -lpcrecpp   -lcdio -lm   -lsamplerate   -lmms -lm -lglib-2.0   -lfreetype   -logg   -lvorbis -lm -logg   -lvorbisenc -lvorbis -lm -logg   -Wl,-O1 -Wl,--as-needed -rdynamic -L/usr/lib64/mysql -lmysqlclient -L/usr//lib -lz -lcrypt -lnsl -lm -L/usr/lib/ -lssl -lcrypto >&5
/usr//lib/libsmbclient.so: undefined reference to `talloc_set_name_const@TALLOC_2.0.2'
/usr//lib/libsmbclient.so: undefined reference to `talloc_named_const@TALLOC_2.0.2'

talloc is the malloc used in samba, but I don't know why it's not defined.
Reply
#3
It seems like the code is structured to do without the samba client code:

Code:
xbmc/filesystem/SMBDirectory.cpp:
#if defined(HAS_FILESYSTEM_SMB)

So why is it required in autoconf?
Reply
#4
zener Wrote:It seems like the code is structured to do without the samba client code:

Code:
xbmc/filesystem/SMBDirectory.cpp:
#if defined(HAS_FILESYSTEM_SMB)

So why is it required in autoconf?

Because it hasn't been added as a optional dependency, patches welcomed.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#5
topfs2 Wrote:Because it hasn't been added as a optional dependency, patches welcomed.

OK. Thanks. I'll see if I can get it compiled without it.
Reply

Logout Mark Read Team Forum Stats Members Help
Why is smbclient required?0