help-gnutls
[Top][All Lists]
Advanced

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

[Help-gnutls] Re: /usr/local/lib/libgnuttls.so: undefined reference to a


From: Simon Josefsson
Subject: [Help-gnutls] Re: /usr/local/lib/libgnuttls.so: undefined reference to address@hidden'
Date: Thu, 07 May 2009 11:15:01 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.93 (gnu/linux)

Michael Darling <address@hidden> writes:

> 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 address@hidden" 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

I recall seeing a report of something similar recently... it seems like
a problem with two libgcrypt's installed on the same machine: one used
for linking gnutls and another when running gnutls applications or
linking to libgnutls.  Do you have multiple installed libgcrypt's?  Even
if you uninstall one of the libgcrypt's, you may need to re-build gnutls
against the proper libgcrypt to make things work.

/Simon

> (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
> address@hidden'
> /usr/local/lib/libgnutls.so: undefined reference to
> address@hidden'
> collect2: ld returned 1 exit status
> make: *** [application] Error 1
> _______________________________________________
> Help-gnutls mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gnutls




reply via email to

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