[Samba] libsmbclient.h (fwd)
Richard Sharpe
rsharpe at ns.aus.com
Wed Sep 4 06:58:01 GMT 2002
On Tue, 3 Sep 2002, sharath reddy wrote:
> Hi Jean,
>
> 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
> this:
OK, OK, I will try to find the time this week to fix that problem!
> gcc -I/samba/source/include -I/usr/kerberos/include
> -I/samba/source/ubiqx -I/samba/source
> -I/samba/source/smbwrapper test.c
>
> Messy, but it worked.
>
> When I built libsmbclient.so and attempted to link a
> program against it, though, I got the
> following errors:
>
> 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",
> get_nt_error_msg(status), ret));
>
> I figured that it was only a log message anyway, so no
> harm done.
>
>
> The second error can be fixed by applying this patch:
>
> http://lists.samba.org/pipermail/samba-technical/2002-August/038784.html
>
> Regards,
> Sharath
>
>
>
> --- 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
> >
> > Hi,
> > 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
> > include
> > libsmbclient.h ? Mainly "struct cli_state" and BOOL
> > typedef.
> >
> > Thanks for any help on making it working.
> > -jec
> >
> >
> > --
> > To unsubscribe from this list go to the following
> > URL and read the
> > instructions:
> > http://lists.samba.org/mailman/listinfo/samba
> >
>
>
> =====
> Sharath Reddy
> Cell : 512 689 4360
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
--
Regards
-----
Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org,
sharpe at ethereal.com
More information about the samba-technical
mailing list