[Help-gnutls] Re: /usr/local/lib/libgnuttls.so: undefined reference to `gcry_cipher_setkey at GCRYPT_1.2'
simon at josefsson.org
Fri May 8 13:00:52 CEST 2009
Michael Darling <darlingm at gmail.com> writes:
> You are correct, there are multiple versions of libgcrypt installed. How do
> I proceed?
You need to make sure all software that links to some software that
eventually links to your new libgcrypt also links to your new libgcrypt.
If this is on a development machine, it is often easiest to just replace
the system library with your own build.
If you don't want to do that, you must make sure all the projects you
build really use the libgcrypt from /usr/local and not from /usr. In
the error you quoted, it seemed as if gnutls was linked against
libgcrypt in /usr/local but the other code you built linked against
libgcrypt in /usr.
More information about the Gnutls-help