Subject: Re: Strange: libssh2_channel_read() returns 0

Re: Strange: libssh2_channel_read() returns 0

From: Mikhail Gusarov <dottedmag_at_dottedmag.net>
Date: Thu, 30 Apr 2009 21:27:28 +0700

Twas brillig at 15:45:35 30.04.2009 UTC+02 when ninive_at_gmx.at did gyre and gimble:

 d> After "making" the library, the created filename should be
 d> "libssh2.so.1.0.2" instead of "libssh2.so.1.0.1" (everywhere, also
 d> in libssh2.la).

filenames do not matter, SONAMES do.

$ readelf -a libssh2.so.1.0.2 | grep SONAME

will give you a soname for a library. Runtime linker has a cache for
SONAME -> filename mapping, so you should run ldconfig to update it
after installing library.

P.S: there's really good paper called dsohowto.pdf by Ulrich Drepper,
which explains various link-related stuff in depth. Quite recommended.

-- 

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf

_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Received on 2009-04-30