[Libssh] undefined refs linking to server functions

Matt Lawson lawson08 at yahoo.com
Fri Apr 11 01:48:19 CEST 2008


Hi,

I've been using the libssh library successfully for
while from a shared library, but only the 'client'
functions.

Now I'm interested in doing some server functions as
well.  So I followed the instructions here:

http://0xbadc0de.be/wiki/libssh:newapi

My application compiles fine, when I try to link
though, a bunch of the server type functions come back
as undefined:
undefined reference to
`ssh_bind_set_options(ssh_bind_struct*,
ssh_options_struct*)'
undefined reference to
`ssh_bind_listen(ssh_bind_struct*)'
undefined reference to
`ssh_bind_set_blocking(ssh_bind_struct*, int)'
undefined reference to
`ssh_bind_free(ssh_bind_struct*)'
undefined reference to `ssh_bind_new()'

But I see those symbols exist; I can see them with nm:

00000000000163c0 T ssh_bind_new

So... is there something special about the server
functions?  Is their visibility hidden somehow, or is
there some configure option I need to enable/include
them?

I'm sure it's something simple, just can't seem to get
it...



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Libssh mailing list