Re: Junk in new gcc include path

2002-05-27 Thread Scot W. Hetzel

From: "Garrett Wollman" <[EMAIL PROTECTED]>
> < said:
>
> > So why does adding "-I/usr/include" to CPPFLAGS cause the compiler to
ignore
> > the headers in /usr/include?
>
> It doesn't -- it just causes the compiler to emit a warning message
> which confuses AC_CHECK_HEADER in some versions of autoconf.  (I think
> 2.52 doesn't have this problem, but 2.19 does.  I haven't investigated
> this recently, though.)
>
 I'll have to remove -I${OPENSSLINC} from the cyrus-sasl configure.in, so
that it will build on current.

Thanks,

Scot


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Patch for review (was Re: Junk in new gcc include path)

2002-05-27 Thread Andrey A. Chernov

Please review this patch, it fix one reported problem:

--- cc_tools/auto-host.h.bakSat May 18 16:30:17 2002
+++ cc_tools/auto-host.hMon May 27 19:23:37 2002
@@ -87,7 +87,7 @@
 /* #undef ssize_t */
 
 /* Define if cpp should also search $prefix/include.  */
-#define PREFIX_INCLUDE_DIR "NONE/include"
+/* #undef PREFIX_INCLUDE_DIR */
 
 /* Define if you have the __argz_count function.  */
 /* #undef HAVE___ARGZ_COUNT */


On Sun, May 26, 2002 at 00:15:29 +0400, Andrey A. Chernov wrote:
> 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...

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Junk in new gcc include path

2002-05-25 Thread Garrett Wollman

< said:

> So why does adding "-I/usr/include" to CPPFLAGS cause the compiler to ignore
> the headers in /usr/include?

It doesn't -- it just causes the compiler to emit a warning message
which confuses AC_CHECK_HEADER in some versions of autoconf.  (I think
2.52 doesn't have this problem, but 2.19 does.  I haven't investigated
this recently, though.)

-GAWollman

--
Garrett A. Wollman   | [G]enes make enzymes, and enzymes control the rates of
[EMAIL PROTECTED]  | chemical processes.  Genes do not make ``novelty-
Opinions not those of| seeking'' or any other complex and overt behavior.
MIT, LCS, CRS, or NSA| - Stephen Jay Gould (1941-2002)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Junk in new gcc include path

2002-05-25 Thread Scot W. Hetzel

From: "Andrey A. Chernov" <[EMAIL PROTECTED]>
> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Junk in new gcc include path

2002-05-25 Thread 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...

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message