From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 09:50:28 2005 Return-Path: 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 DAF1216A4DC for ; Wed, 23 Feb 2005 09:50:27 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 0E68543D45 for ; Wed, 23 Feb 2005 09:50:22 +0000 (GMT) (envelope-from barner@gmx.de) Received: (qmail invoked by alias); 23 Feb 2005 09:50:21 -0000 Received: from unknown (EHLO zi025.glhnet.mhn.de) (129.187.19.157) by mail.gmx.net (mp015) with SMTP; 23 Feb 2005 10:50:21 +0100 X-Authenticated: #147403 Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 526C7C257; Wed, 23 Feb 2005 10:50:55 +0100 (CET) Date: Wed, 23 Feb 2005 10:50:55 +0100 From: Simon Barner To: Mark Jayson Alvarez Message-ID: <20050223095055.GB70078@zi025.glhnet.mhn.de> References: <20050223015725.60456.qmail@web51604.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f" Content-Disposition: inline In-Reply-To: <20050223015725.60456.qmail@web51604.mail.yahoo.com> User-Agent: Mutt/1.5.8i X-Y-GMX-Trusted: 0 cc: freebsd-questions@freebsd.org Subject: Re: Is there a file where I can specify the location of my header files??(like that of ld.so.hints) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 09:50:28 -0000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Mark Jayson Alvarez wrote: > Hi, > I think I did something horrible with my machine. I > cannot complete a "make" anywhere in ports. For > example, I'm compiling iperf and got this error. >=20 > headers.h:82:19: errno.h: No such file or directory > headers.h:139:24: syslog.h: No such file or directory >=20 > I used find to search for these files and I did find > it. >=20 > #find / -name errno.h -print > /usr/include/sys/errno.h > /usr/include/sys/syslog.h >=20 > Whenever I'm compiling a c program, I learned that I > can pass a -I to the gcc, but I don't know > how to do it in ports. Is there a file where in I can > specify where my include files can be found, like that > of the ld-elf.so.hints and ld.so.hints that contains > the directory where my libraries can be found? Hmm, please test whether you can compile the following C program: #include int main (int argc, char *argv[]) { printf ("Hello, Mark!\n"); return 0; } Then compile it using: gcc -c hello.c If it doesn't compile, something happened to your C compiler since /usr/include should be searched automatically (i.e. without -I) by gcc. If so, have a look at /etc/make.conf and also /etc/defaults/make.conf (the latter one should not be modified!) Simon --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCHFH/Ckn+/eutqCoRAq9lAKCn6zm5P/w+kyc6fG2ISPo6/YIk0wCg/s0x BqCGSZU/aSQRQcCHlLkAV8M= =F/Mp -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f--