[Samba] libsmbclient.h (fwd)
sharathreddy at yahoo.com
Wed Sep 4 06:53:00 GMT 2002
I do not have the authoritative answer to your
question, but faced the same issue. I wrestled with
the problem for a while, and ended up including the
"includes.h" file. However, since it includes several
other header files, my Makefile looked something like
gcc -I/samba/source/include -I/usr/kerberos/include
Messy, but it worked.
When I built libsmbclient.so and attempted to link a
program against it, though, I got the
undefined reference to 'get_nt_error_msg'
undefined reference to 'cli_send_keepalive'
I 'fixed' the first error by deleting the single line
of code in libsmbclient.c that
referred to 'get_nt_error_msg :-)
DEBUG(3, ("smbc_errno %s -> %d\n",
I figured that it was only a log message anyway, so no
The second error can be fixed by applying this patch:
--- Gerald Carter <jerry at samba.org> wrote:
> ---------- Forwarded message ----------
> Date: Mon, 02 Sep 2002 18:18:00 +0200
> From: Jean-Eric Cuendet
> <Jean-Eric.Cuendet at linkvest.com>
> To: samba at lists.samba.org
> Subject: [Samba] libsmbclient.h
> I try to use libsmbclient from HEAD (samba 3.0).
> I'm unable to use it...
> There is depdendencies problem in header files. Is
> it normal that a lot
> of headers from samba/source/include are needed to
> libsmbclient.h ? Mainly "struct cli_state" and BOOL
> Thanks for any help on making it working.
> To unsubscribe from this list go to the following
> URL and read the
Cell : 512 689 4360
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
More information about the samba-technical