From owner-freebsd-questions@FreeBSD.ORG Tue Sep 22 09:17:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5224F1065670 for ; Tue, 22 Sep 2009 09:17:39 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id F31718FC15 for ; Tue, 22 Sep 2009 09:17:38 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 12823EB54D8; Tue, 22 Sep 2009 12:17:38 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 044EB4512A; Tue, 22 Sep 2009 12:17:38 +0300 (EEST) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z0Kaq8YIIl7p; Tue, 22 Sep 2009 12:17:37 +0300 (EEST) Received: from kobe.laptop (adsl78-142.kln.forthnet.gr [77.49.125.142]) by mail.ceid.upatras.gr (Postfix) with ESMTP id BF8AC450C6; Tue, 22 Sep 2009 12:17:37 +0300 (EEST) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n8M9Hac1090909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Sep 2009 12:17:36 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n8M9HZLY090908; Tue, 22 Sep 2009 12:17:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Yuri References: <4AB88AF2.3080108@rawbw.com> Date: Tue, 22 Sep 2009 12:17:35 +0300 In-Reply-To: <4AB88AF2.3080108@rawbw.com> (yuri@rawbw.com's message of "Tue, 22 Sep 2009 01:29:38 -0700") Message-ID: <874oqv1gpc.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Why configure files don't find /usr/local based headers? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 09:17:39 -0000 On Tue, 22 Sep 2009 01:29:38 -0700, Yuri wrote: > I noticed many times that configure files of various projects fail to > find headers of third party packages under /usr/local/include. > They run command line like this: > gcc -c conftest.c > and it doesn't find them without -I/usr/local/include. > > Is something misconfigured on my system? How to make this issue go away > without modifying all configure files? Because gcc in FreeBSD doesn't automatically include header files from `/usr/local', unless you explicitly add the directory to the list of include directories. In other systems there may not be a `/usr/local/include' path at all. For example, in my Debian installation there is no such directory.