From owner-freebsd-questions@FreeBSD.ORG Mon May 5 19:13:19 2008 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 EDE2D1065676 for ; Mon, 5 May 2008 19:13:19 +0000 (UTC) (envelope-from walt@wump.org) Received: from mta31.charter.net (mta31.charter.net [216.33.127.82]) by mx1.freebsd.org (Postfix) with ESMTP id 889298FC19 for ; Mon, 5 May 2008 19:13:19 +0000 (UTC) (envelope-from walt@wump.org) Received: from aarprv04.charter.net ([10.20.200.74]) by mta31.charter.net (InterMail vM.7.08.03.00 201-2186-126-20070710) with ESMTP id <20080505191310.XSJB2641.mta31.charter.net@aarprv04.charter.net> for ; Mon, 5 May 2008 15:13:10 -0400 Received: from [10.0.0.10] (really [68.116.98.9]) by aarprv04.charter.net with ESMTP id <20080505191310.TGYA4495.aarprv04.charter.net@[10.0.0.10]> for ; Mon, 5 May 2008 15:13:10 -0400 Mime-Version: 1.0 Message-Id: Date: Mon, 5 May 2008 12:14:44 -0700 To: freebsd-questions@freebsd.org From: Walt Pawley Content-Type: text/plain; charset="us-ascii" X-Chzlrs: 0 Subject: Re: What is CPP's real default include path? 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: Mon, 05 May 2008 19:13:20 -0000 At 12:06 PM +0200 5/5/08, Mel wrote: >On Monday 05 May 2008 10:12:05 Walt Pawley wrote: >> I've been fiddling with compiling nzbget-0.4.0 on a 6.3 system. >> My initial efforts failed the configuration process for not >> finding iconv.h. This, despite /usr/local/include/iconv.h being >> present and supposedly in the include search path if the info >> documentation can be believed. >> >> Just to see if I could learn something, I copied the >> /usr/local/include/iconv.h to /usr/include/ and tried again. >> After this, the configuration process completed and the >> application seemed to "make" and "make install" just fine. >> >> Is there some way to ascertain what the set of default include >> paths actually is? > >Even though cc has a million options, there's none that I know that prints the >system include path (not even in -dumpspecs). However, in practice you can >assume it's /usr/include. I bumped into the description of the -v flag whilst perusing the cpp info docs and did this ... after removing the ersatz /usr/include/iconv.h mentioned above. Apparently these paths are compiled in (???). %cat > x #include %cpp -v x Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.6 [FreeBSD] 20060305 /usr/libexec/cc1 -E -quiet -v -D_LONGLONG x ignoring duplicate directory "/usr/include" #include "..." search starts here: #include <...> search starts here: /usr/include End of search list. # 1 "x" # 1 "" # 1 "" # 1 "x" x:1:19: iconv.h: No such file or directory -- Walter M. Pawley Wump Research & Company 676 River Bend Road, Roseburg, OR 97470 541-672-8975