From owner-freebsd-questions Fri Feb 22 16:39:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id CC2F837B400 for ; Fri, 22 Feb 2002 16:39:10 -0800 (PST) Received: (qmail 30004 invoked by uid 100); 23 Feb 2002 00:39:03 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15478.58534.737707.902435@guru.mired.org> Date: Fri, 22 Feb 2002 18:39:02 -0600 To: "Lane Holcombe" Cc: questions@freebsd.org Subject: Re: Zoinks! #include In-Reply-To: <17336427@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Lane Holcombe types: > I'm trying to install a port (ksamba) but it keeps failing with > main.cpp:3: kiconloader.h: no such file or directory > but when I use: > locate kiconloader.h > i get: > /usr/local/include/kiconloader.h > > and then when I use: > file `locate kiconloader.h` > i get: > /usr/local/include/kiconloader.h: ASCII C Program Text > > So I tried: > make -I/usr/local/include all > and i get the same failure. > > How can I tell make to use /usr/local/include in it's include path > (without editting the source code?) Make doesn't include .h files, the c compiler does. Assuming the Makefile doesn't set CFLAGS - and it's not at all unusual for them to do so - you can do make CFLAGS=-I/usr/local/include and it should work. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message