Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2008 12:06:51 +0200
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        questions@freebsd.org, Walt Pawley <walt@wump.org>
Subject:   Re: What is CPP's real default include path?
Message-ID:  <200805051206.52546.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <p0624082bc4446e99d142@[10.0.0.10]>
References:  <p0624082bc4446e99d142@[10.0.0.10]>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

To make configure scripts believe you have something installed, it's not a 
good idea to copy headers.
Look for a --with-iconv=/usr/local option and failing that, change CFLAGS and 
LDFLAGS in the environment when configuring.

-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805051206.52546.fbsd.questions>