From owner-freebsd-questions Mon Mar 29 2: 7: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mel.alcatel.fr (mel.alcatel.fr [212.208.74.132]) by hub.freebsd.org (Postfix) with ESMTP id 2B12C14E6C for ; Mon, 29 Mar 1999 02:06:57 -0800 (PST) (envelope-from Thierry.Herbelot@alcatel.fr) Received: from aifhs2.alcatel.fr (mailhub.alcatel.fr [155.132.180.80]) by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id LAA03149; Mon, 29 Mar 1999 11:05:09 +0200 Received: from lune.telspace.alcatel.fr (lune.telspace.alcatel.fr [155.132.144.65]) by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id MAA28122; Mon, 29 Mar 1999 12:02:23 +0200 (MET DST) Received: from telss1.telspace.alcatel.fr (telss1.telspace.alcatel.fr [155.132.51.4]) by lune.telspace.alcatel.fr (8.9.1a/8.9.1) with SMTP id KAA12454; Mon, 29 Mar 1999 10:42:40 +0100 (MET) Received: from telspace.alcatel.fr (nairobi.telspace.alcatel.fr) by telss1.telspace.alcatel.fr (4.1/SMI-4.1) id AA22336; Mon, 29 Mar 99 11:53:37 +0200 Message-Id: <36FF4EE4.ADD4D5D@telspace.alcatel.fr> Date: Mon, 29 Mar 1999 11:59:00 +0200 From: HERBELOT Thierry Reply-To: thierry.herbelot@alcatel.fr Organization: Alcatel CIT Nanterre X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4m) X-Accept-Language: en Mime-Version: 1.0 To: Karl Pielorz Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Seeing new libs in /usr/local/lib? (ldconfig?) References: <36FEC784.BC51505E@tdx.co.uk> <19990328181433.B32089@bear.berkeleycs.ml.org> <36FF3F71.E418E120@tdx.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, Beware of Static/dynamic libraries (your library is .a, so it is static and must be linked-in at he compilation/linking time, whereas .so libraries are dynamic and are linked-in at run time : these are taken into account via ldconfig, which gives hints to the real-time linker/loader) So : all your attempts to use ldconfig or LD_LIBRARY_PATH are useless, you must add a line in your makefile to direct gcc to search for static libraries (-L option) cheers TfH Karl Pielorz wrote: > > Spam Me Here wrote: > > > > Their are two things you can do, first for ldconfig, to get it to scan > > /usr/local/lib, you would type > > > > ldconfig /usr/local/lib > > > > to get your program to find libraries in /usr/local/lib, you should > > set LD_LIBRARY_PATH to /usr/local/lib > > Thanks for the reply... Sadly neither of the above worked. The compilation > process still bombs out while looking for 'libttf.a' - which is blatently in > /usr/local/lib > > If I run 'ldconfig -v -aout' I get a huge stream of library names pass by... > If I do the same with 'ldconfig -v -elf' I get nothing - is this right? I've > read the man page for ldconfig, but I'm really much more enlightened... :( > > The library was built recently on my machine - so I assume it's going to be > elf? - I'm still not sure why it will see the libgd.a, but not libttf.a - If I > even just symlink libttf.a to /usr/lib the compile goes OK, but I don't really > want to do this... > > Anything else I can try? > > Regards, > > Karl > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message