From owner-freebsd-current Sat May 25 15:17:46 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by hub.freebsd.org (Postfix) with ESMTP id A979337B405; Sat, 25 May 2002 15:17:42 -0700 (PDT) Received: from ADMIN00 (bnet.westbend.net [216.47.253.17]) by mail.westbend.net (8.12.3/8.12.3) with SMTP id g4PMHfGM031890; Sat, 25 May 2002 17:17:41 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <004501c20439$fc5326b0$11fd2fd8@ADMIN00> From: "Scot W. Hetzel" To: "Andrey A. Chernov" , Cc: References: <20020525201528.GA41180@nagual.pp.ru> Subject: Re: Junk in new gcc include path Date: Sat, 25 May 2002 17:17:40 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Andrey A. Chernov" > Does anybody else saw this too? > I just run 'cc -v hello.c' (printing Hello, world) and see: > ... > GNU C version 3.1 [FreeBSD] 20020509 (prerelease) > (i386-undermydesk-freebsd) > compiled by GNU C version 2.95.4 20020320 [FreeBSD]. > ignoring nonexistent directory "NONE/include" > ignoring duplicate directory "/usr/include" > ... > > It seems junk "NONE/include" is in the include path and "/usr/include" > present there twice. Please fix this thing. Especially if project have > NONE directory... > I'm seeing the "ignoring duplicate directory" problem with the Cyrus-SASL port when building on current. One of the patches (patch-ab) adds "-I${OPENSSLINC} -I${OPENSSLINC}/openssl" to the CPPFLAGS. Then when configure is run it fails to detect the unistd.h and pwd.h header files. Which causes the compile to fail when building checkpw.c. checking for getopt.h... no checking for unistd.h... no checking for crypt.h... no checking for pwd.h... no checking for shadow.h... no checking for paths.h... no Removing "-I${OPENSSLINC}" from patch-ab allows the port to find the system include files in /usr/include. checking for getopt.h... no checking for unistd.h... yes checking for crypt.h... no checking for pwd.h... yes checking for shadow.h... no checking for paths.h... yes So why does adding "-I/usr/include" to CPPFLAGS cause the compiler to ignore the headers in /usr/include? Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message