From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 21:30:51 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0244916A4CE for ; Tue, 15 Feb 2005 21:30:51 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B27DE43D58 for ; Tue, 15 Feb 2005 21:30:50 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 97D7651432; Tue, 15 Feb 2005 13:30:49 -0800 (PST) Date: Tue, 15 Feb 2005 13:30:49 -0800 From: Kris Kennaway To: Maicon Stihler Message-ID: <20050215213049.GA11287@xor.obsecurity.org> References: <67f5afb90502141017bf2e58a@mail.gmail.com> <67f5afb905021510557e73eaf3@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <67f5afb905021510557e73eaf3@mail.gmail.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org cc: Ted Mittelstaedt Subject: Re: problem with GCC search path on FreeBSD5.3 AMD64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 21:30:51 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 15, 2005 at 03:55:00PM -0300, Maicon Stihler wrote: > > this isn't a gcc problem. > Hm, maybe I used the wrong terms to define the situation. I agree that > its not gcc's fault, its some kind of (mis)configuration issue. Didn't you ask this question a few weeks ago? I certainly answered it then. > > ldconfig >=20 > I used ldconfig to generete te hints file, and then when I do a > "ldconfig -r" all the libs I need appears there... the strange thing > is that if I try to include them in my own programs it doesnt work. ldconfig is for the runtime linker, it's not used by gcc when linking object files. > Im using the CFLAGS=3D"-B /usr/local/lib -L/usr/local/include" as a > workaround, but im searching for a more elegant way to solve this > issue. Those flags look completely wrong. You want "-L /usr/local/lib -I /usr/local/include" - either in CFLAGS, or otherwise passed into your gcc commandline. This is the correct way to address the issue. Kris --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCEmoJWry0BWjoQKURAnubAKC79tFk4v8i+UxujDBh30rRz/SGhACeItpD MR9s3YIIu/nF7WUbIQxfw1M= =Fu71 -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--