[Top][All Lists]

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

Re: gcc link problem?

From: Ralf Wildenhues
Subject: Re: gcc link problem?
Date: Wed, 4 Apr 2007 10:59:15 +0200
User-agent: Mutt/1.5.14 (2007-04-01)

Hello Harlan,

* Harlan Stenn wrote on Wed, Apr 04, 2007 at 07:18:39AM CEST:
> I've got a test in a configure script that runs like this:
>  checking for MD5Init
>  gcc -o conftest -g -O2  -Wall -Wcast-qual -Wmissing-prototypes 
> -Wpointer-arith -Wshadow  -Wstrict-prototypes   conftest.c -lmd5 -lelf >&5
>  /usr/bin/ld: warning:, needed by 
> /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../, not found (try using 
> -rpath or -rpath-link)

So has a DT_NEEDED entry for but doesn't actually
need any functions from  Further, doesn't exist
in the default search path for the runtime linker, but also
doesn't have a DT_RPATH entry pointing to its directory?

> and this test therefore succeeds, as gcc/ld is treating this like a
> warning instead of an error.  The target system is a Debian system, as I
> understand it.

If both libraries are from Debian packages, a bug report is in order.
(The package containing libmd5 should depend on the package containing
libssl; or the dependency should be removed.)


reply via email to

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