[Help-gnutls] Re: /usr/local/lib/libgnuttls.so: undefined reference to `gcry_cipher_setkey at GCRYPT_1.2'
Michael Darling
darlingm at gmail.com
Thu May 7 04:49:35 CEST 2009
Also, in case needed :
$ locate libgnutls
/usr/lib/libgnutls-extra.so.13
/usr/lib/libgnutls-extra.so.13.0.6
/usr/lib/libgnutls-openssl.so.13
/usr/lib/libgnutls-openssl.so.13.0.6
/usr/lib/libgnutls.so.13
/usr/lib/libgnutls.so.13.0.6
/usr/lib64/libgnutls-extra.so.13
/usr/lib64/libgnutls-extra.so.13.0.6
/usr/lib64/libgnutls-openssl.so.13
/usr/lib64/libgnutls-openssl.so.13.0.6
/usr/lib64/libgnutls.so.13
/usr/lib64/libgnutls.so.13.0.6
/usr/local/bin/libgnutls-config
/usr/local/bin/libgnutls-extra-config
/usr/local/lib/libgnutls-extra.a
/usr/local/lib/libgnutls-extra.la
/usr/local/lib/libgnutls-extra.so
/usr/local/lib/libgnutls-extra.so.26
/usr/local/lib/libgnutls-extra.so.26.11.7
/usr/local/lib/libgnutls-openssl.a
/usr/local/lib/libgnutls-openssl.la
/usr/local/lib/libgnutls-openssl.so
/usr/local/lib/libgnutls-openssl.so.26
/usr/local/lib/libgnutls-openssl.so.26.11.7
/usr/local/lib/libgnutls.a
/usr/local/lib/libgnutls.la
/usr/local/lib/libgnutls.so
/usr/local/lib/libgnutls.so.26
/usr/local/lib/libgnutls.so.26.11.7
/usr/local/lib/libgnutlsxx.a
/usr/local/lib/libgnutlsxx.la
/usr/local/lib/libgnutlsxx.so
/usr/local/lib/libgnutlsxx.so.26
/usr/local/lib/libgnutlsxx.so.26.11.7
/usr/local/share/aclocal/libgnutls-extra.m4
/usr/local/share/aclocal/libgnutls.m4
# ldconfig -v | grep libgnutls
libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.0.6
libgnutls-extra.so.13 -> libgnutls-extra.so.13.0.6
libgnutls.so.13 -> libgnutls.so.13.0.6
libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.0.6
libgnutls-extra.so.13 -> libgnutls-extra.so.13.0.6
libgnutls.so.13 -> libgnutls.so.13.0.6
(adding /usr/local/lib to ldconfig)
# ldconfig -v | grep libgnutls
libgnutls.so.26 -> libgnutls.so.26.11.7
libgnutlsxx.so.26 -> libgnutlsxx.so.26.11.7
libgnutls-extra.so.26 -> libgnutls-extra.so.26.11.7
libgnutls-openssl.so.26 -> libgnutls-openssl.so.26.11.7
libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.0.6
libgnutls-extra.so.13 -> libgnutls-extra.so.13.0.6
libgnutls.so.13 -> libgnutls.so.13.0.6
libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.0.6
libgnutls-extra.so.13 -> libgnutls-extra.so.13.0.6
libgnutls.so.13 -> libgnutls.so.13.0.6
Even with /usr/local/lib added to ldconfig, still get the same linker error.
On Wed, May 6, 2009 at 10:43 PM, Michael Darling <darlingm at gmail.com> wrote:
> I'm building an application that uses vmime. vmime uses libgnuttls, and
> I'm getting a linker error as shown below. Searching on google for
> "undefined reference to gcry_cipher_setkey at GCRYPT_1.2" returns no results.
> Any ideas? I assume there's probably another library I need to link in? I
> originally didn't have "-lgcrypt" included, but tried that, and had no
> effect.
>
> using from source libvmime-0.9.0, gnutls-2.6.6, libgcrypt-1.4.4, and
> libgsasl-1.1 -- and rpm installed GNU Make 3.81, g++ 4.1.2, CentOS 5.3,
> kernel 2.6.18-128.1.6.el5
>
> (Application and library names changed to be more clear)
>
> $ make
> /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o application
> application.o ../libraryA/libraryA.a ../libraryB/libraryB.a
> ../libraryC/libraryC.a -lgnutls -lgcrypt -lvmime -lssl -lgsoapssl++
> g++ -g -O2 -o application application.o ../libraryA/libraryA.a
> ../libraryB/libraryB.a ../libraryC/libraryC.a -lgnutls -lgcrypt -lvmime
> -lssl -lgsoapssl++
> /usr/local/lib/libgnutls.so: undefined reference to
> `gcry_cipher_setkey at GCRYPT_1.2'
> /usr/local/lib/libgnutls.so: undefined reference to
> `gcry_cipher_setiv at GCRYPT_1.2'
> collect2: ld returned 1 exit status
> make: *** [application] Error 1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20090506/3238175b/attachment.htm>
More information about the Gnutls-help
mailing list