From owner-freebsd-questions Sat Jul 13 7: 6:21 2002 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 92DD437B400 for ; Sat, 13 Jul 2002 07:06:16 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 8E3D643E3B for ; Sat, 13 Jul 2002 07:06:14 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 11013 invoked from network); 13 Jul 2002 14:06:07 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 13 Jul 2002 14:06:07 -0000 Received: from freepuppy.bellavista.cz (localhost.bellavista.cz [127.0.0.1]) by freepuppy.bellavista.cz (8.12.5/8.11.6) with ESMTP id g6DE67cS002016; Sat, 13 Jul 2002 16:06:07 +0200 (CEST) (envelope-from neuhauser@bellavista.cz) Received: (from roman@localhost) by freepuppy.bellavista.cz (8.12.5/8.12.4/Submit) id g6DE67fI002015; Sat, 13 Jul 2002 16:06:07 +0200 (CEST) X-Authentication-Warning: freepuppy.bellavista.cz: roman set sender to neuhauser@bellavista.cz using -f Date: Sat, 13 Jul 2002 16:06:07 +0200 From: Roman Neuhauser To: Paul Everlund Cc: freebsd-questions@freebsd.org Subject: Re: Include files in /usr/local/include not found Message-ID: <20020713140607.GH322@freepuppy.bellavista.cz> Mail-Followup-To: Paul Everlund , freebsd-questions@freebsd.org References: <3D3013EA.C0904498@cs.umu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D3013EA.C0904498@cs.umu.se> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Sat, 13 Jul 2002 13:50:02 +0200 > From: Paul Everlund > To: freebsd-questions@freebsd.org > Subject: Include files in /usr/local/include not found > > Hi! > > I got an error while making ./configure for a program. It said it > did not find png.h, but it's there as I have png-1.2.4 installed > on my system. > > Wrote the following test program: > > ---test.c > #include > > int main() > { > return 0; > } > > Did then compile it with: > cc test.c > > Got the following error: > test.c:1: png.h: No such file or directory > > Did then try to compile it as this: > cc -I/usr/local/include test.c > > This worked! > > My question is: > How do one fix so /usr/local/include is searched automatically? > > If that can be done, the ./configure should work for the program > I'm trying to build. I don't have an answer, but two questions instead (and a hint maybe): what does config.log say about that error? is the software publically available? ./configure often does weird things to detect presence of a package in the system, and it might just as well turn out that no matter what you do, ./configure doesn't find your png.h. heck, php-4.2.1's ./configure found unix.h on systems without one! (http://bugs.php.net/bug.php?id=17317) also, since ./configure often does part of it job by compiling tiny test programs, you may get a totally bogus error. i remember reporting a ./configure error in php when it later turned out the *actual* error was not the one on which ./configure died, but 100 lines above! morale: don't trust configure, and if at all possible, double check what it tells you with its guts, and config.log -- FreeBSD 4.6-STABLE 3:54PM up 6:08, 6 users, load averages: 0.00, 0.00, 0.02 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message