monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Not so minor problem in 0.99.1


From: Richard Levitte
Subject: Re: [Monotone-devel] Not so minor problem in 0.99.1
Date: Wed, 05 Jan 2011 19:46:51 +0100 (CET)

In message <address@hidden> on Wed, 5 Jan 2011 08:43:38 -0800, Zack Weinberg 
<address@hidden> said:

zackw> On Wed, Jan 5, 2011 at 12:13 AM, Markus Wanner <address@hidden> wrote:
zackw> > Zack,
zackw> >
zackw> > Can you elaborate on what's wrong with that?  libbotan1.7-dev correctly
zackw> > depends on libssl0.9.8, which provides libcrypto.so.0.9.8.
zackw> >
zackw> > And yes, linking that with -lcrypto works without the symlink
zackw> > libcrypto.so -> libcrypto.so.0.9.8.  (Symlink only provided by 
libssl-dev)
zackw> 
zackw> Are you 100% sure that you can link a *program* with -lcrypto without
zackw> that symlink existing?

Nope.


: ; ls /usr/lib/libcrypto*
libcrypto.a           libcryptopp.so.8      libcrypto++.so.8
libcrypto++.a         libcrypto.so          libcrypto++.so.8.0.0
libcryptopp.a         libcrypto++.so        
libcryptopp.so        libcrypto.so.0.9.8    
: ; gcc -o smallopenssl smallopenssl.c -lcrypto
: ; ./smallopenssl 
OpenSSL library version: OpenSSL 0.9.8o 01 Jun 2010
: ; sudo mv /usr/lib/libcrypto.{,foo}so
[sudo] password for levitte: 
: ; sudo mv /usr/lib/libcrypto.{,foo}a
: ; gcc -o smallopenssl smallopenssl.c -lcrypto
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status


---- BEGIN: smallopenssl.c ----
#include <openssl/crypto.h>
#include <stdio.h>
#include <stdlib.h>

main()
{
  printf("OpenSSL library version: %s\n", SSLeay_version(SSLEAY_VERSION));
}
---- END: smallopenssl.c ----


-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/

"Life is a tremendous celebration - and I'm invited!"
-- from a friend's blog, translated from Swedish



reply via email to

[Prev in Thread] Current Thread [Next in Thread]