current smbclient/libsmbclient rewrite
kmoghul at gmail.com
Sun Jul 31 21:24:11 GMT 2005
On 7/26/05, Gerald (Jerry) Carter <jerry at samba.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> I just tried building smbclient in the SOC?SAMBA_3_0 branch.
> Looks like you missed some Makefile fixes.
> $ make bin/smbclient
> Linking bin/smbclient
> client/client.o(.text+0x852): In function `do_cd':
> client/client.c:310: undefined reference to `smbc_opendir'
> client/client.o(.text+0x8d2):client/client.c:317: undefined reference to
> client/client.o(.text+0x7a80): In function `process':
> client/client.c:3176: undefined reference to `smbc_init'
> collect2: ld returned 1 exit status
> $ svn info | 'Last Changed'
> Last Changed Author: kalim
> Last Changed Rev: 8768
> Last Changed Date: 2005-07-25 21:01:15 -0500 (Mon, 25 Jul 2005)
> But this brings up an interesting point. smbclient should
> be linking against libsmbclient.a or libsmbclient.so.
> Static linking is fine IMO since that does not require
> library search paths or a prior installation of libsmbclient.
> But it does mean that we should add libsmbclient.a as a
> dependency to the Makefile. I'm not sure how this will
> play out on all systems.
> I'll let you get the build issues fixed before I dig
> deeper into the new code.
> cheers, jerry
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
Makefile fix has been committed. I added libsmbclient.a as a
dependency and the bin directory as a search path ( -Lbin ). The
library is linked with -lsmbclient. I'm not having any problems
compiling/linking but I wonder if this will break in some cases. Any
More information about the samba-technical