SILC Client 1.1 Beta4

Pekka Riikonen priikone at iki.fi
Tue May 22 08:18:34 CEST 2007


: Today I hit this again with 1.1 Beta5, but I figured out what the 
: problem was.
: 
: As it turns out, either from an old silc-client or silc-server, there 
: used to be a libsilc.so (I forget the version(s) ). I had this in 
: /usr/local/lib. When the final silc binary is linked, it's linked with 
: libtool, and ends up requesting "-lsilc". Since libsilc.so existed, you 
: could see it at the tail end of the link command; I thought this odd at 
: the time, but didn't pay any more attention to it.
: 
: So ld, given -lsilc
: 
: was happy grabbing /usr/local/lib/libsilc.so, 
:
It's difficult to say why it was doing that without seeing how the 
silc-client was configured with ./configure.  If it found pkg-config files 
for the SILC libraries from your system it would use them even though they 
are too old version because current beta5 doesn't yet have a check for 1.1 
version specifically (it doesn't check version).  In this case it would 
have then linked with the libraries from your system.

If this wasn't the case then it in fact should have taken the library from 
lib/ because there is explicit -L for the linker when compiling the 
lib/ subdirectory.  In this case -Llib/ -lsilc should in fact take it from 
lib/ if lib/ was compiled.

Anyway, good thing this happened because I had forgotten to add the 
version check for the pkg-config files to configure.

	Pekka
________________________________________________________________________
 Pekka Riikonen                                 priikone at silcnet.org
 Secure Internet Live Conferencing (SILC)       http://silcnet.org/



More information about the silc-users mailing list