From owner-freebsd-questions@FreeBSD.ORG Thu Feb 10 21:01:09 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 EA89B16A4CE for ; Thu, 10 Feb 2005 21:01:09 +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 A149F43D1D for ; Thu, 10 Feb 2005 21:01:09 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E61A151473; Thu, 10 Feb 2005 13:01:08 -0800 (PST) Date: Thu, 10 Feb 2005 13:01:08 -0800 From: Kris Kennaway To: Mark Jayson Alvarez Message-ID: <20050210210108.GA94407@xor.obsecurity.org> References: <20050210084255.63030.qmail@web51606.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <20050210084255.63030.qmail@web51606.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Make fails because of missing library but I can see it's there, why??? 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: Thu, 10 Feb 2005 21:01:10 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 10, 2005 at 12:42:55AM -0800, Mark Jayson Alvarez wrote: > Hi, > This always happens to me whenever I'm compiling > third party applications. Make fails because it says > that it cannot find a certain library.. and when I try > to search for that file, I usually finds it. For > example, I'm compiling, nagios-plugins but it fails > with this error messages: >=20 > check_ldap.c:31:18: lber.h: No such file or directory > check_ldap.c:32:18: ldap.h: No such file or directory >=20 > but when I run: > # find / -name "ldap.h" -print > /usr/lib/ldap.h > /usr/local/lib/ldap.h > /usr/local/include/ldap.h > noc# find / -name "lber.h" -print > /usr/lib/lber.h > /usr/local/lib/lber.h > /usr/local/include/lber.h >=20 > See.. it's all there! I'm thinking perhaps there's a > way for me to tell a compiler that the system wide > library files are found in that certain directory. >=20 > Any idea?? You need to specify -I and -L with gcc to point to location of files outside the default search path (which is /usr/include and /usr/lib respectively). Kris P.S. You've polluted the base system with those headers (/usr/lib) which may cause you problems later on. --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCC8uUWry0BWjoQKURAqioAKClYYNs4ee3/9VdJMQLfLM2i0LsKACfQQtv mkhTQ5pXLiaxOzr8S1c9A0E= =zQ9i -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--