From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9171 invoked by alias); 27 Aug 2004 15:03:52 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 9144 invoked from network); 27 Aug 2004 15:03:51 -0000 Received: from unknown (HELO mailout09.sul.t-online.com) (194.25.134.84) by sourceware.org with SMTP; 27 Aug 2004 15:03:51 -0000 Received: from fwd01.aul.t-online.de by mailout09.sul.t-online.com with smtp id 1C0iGd-0005bB-02; Fri, 27 Aug 2004 17:03:51 +0200 Received: from localhost (bRAPWmZAYeSm4E08gPpobsTzBwf3t8S5oli07VHmenMHNvqGPNBgwl@[172.18.19.30]) by filter04.bbul.t-online.de with esmtp id 1C0iGW-0GM8My0; Fri, 27 Aug 2004 17:03:44 +0200 MIME-Version: 1.0 Date: Fri, 27 Aug 2004 15:14:00 -0000 To: gcc-help@gcc.gnu.org X-UMS: email Subject: Linker library search path From: Nils.Dehn@t-online.de Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Message-ID: <1C0iGW-0GM8My0@filter04.bbul.t-online.de> X-ID: bRAPWmZAYeSm4E08gPpobsTzBwf3t8S5oli07VHmenMHNvqGPNBgwl@t-dialin.net X-TOI-MSGID: 92a3513e-5fe7-40a0-b39c-8fcb553a202b X-SW-Source: 2004-08/txt/msg00257.txt.bz2 SuSE Linux 2.4.21-215-smp gcc-3.4.0 My machines comes with a kerberos pre-installed ( /usr/lib/libkrb5.so.17 ). I have a self compiled kerberos at /db/opt/krb5-1.3.4/lib/libkrb5.so.3.2). I'd like to compile an apache module shared library against my kerberos libkrb5.so.3.2 version. Using linker options -L /db/opt/krb5-1.3.4/lib/libkrb5.so.3.2 -l krb5 and libkrb5.so.3.2 being in LD_LIBRARY_PATH I still find (using ldd) that my module is linked against BOTH libkrb5.so.17 AND libkrb5.so.3.2 Obviously the linker first tries to resolve the symbols using it's default path /usr/lib and then looks for the remaining symbols in the -L path. How can I get the linker from looking is /usr/lib first ? For security reasons: I cannot alter the contents of /usr/lib. I cannot refresh the library cache using ldconfig. Thank you in advance Nils