/usr/local/samba/lib/libsmbclient.so.0: undefined symbol: cli _send_keepalive -> Samba 3.0alpha18

Tom Jansen tom at ninja.nl
Thu Aug 15 13:08:01 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 15 August 2002 21:53, chuckg at lexmark.com wrote:
> I created a program to use the libsmbclient based on Samba 3.0alpha18 and I
> am getting an unresolved reference at run time for the above routine called
> from smbc_check_server().

Hmm, this looks like a little inconsistency in the  patchwork.
I've added this function to a patch I sent to this list a few months ago (2 
perhaps) but it wasn't committed.

The following code should be added to libsmb/clientgen.c
- --begin code--
/****************************************************************************
Send a keepalive packet to the server
****************************************************************************/
BOOL cli_send_keepalive(struct cli_state *cli)
{
        if (cli->fd == -1) {
                DEBUG(3, ("cli_send_keepalive: fd == -1\n"));
                return False;
        }
        if (!send_keepalive(cli->fd)) {
                close(cli->fd);
                cli->fd = -1;
                DEBUG(0,("Error sending keepalive packet to client.\n"));
                return False;
        }
        return True;
}

- --end code--

after adding this snippet a "make clean proto bin/libsmbclient.so" should do 
the trick.

Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9XCYXX5ZTkmeT2zcRAnV7AJ9No8vvDmX84DRMMH7Ba+a2ewSU1wCfcjv2
HUnvKs3k1hgES/32/ZSXpIE=
=aPvd
-----END PGP SIGNATURE-----




More information about the samba-technical mailing list