bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch for failed build on solaris 6 & 7


From: Thomas Dickey
Subject: Re: patch for failed build on solaris 6 & 7
Date: Sun, 27 May 2007 11:06:49 -0400 (EDT)

On Sat, 26 May 2007, Peter O'Gorman wrote:

Hi,
ncurses-5.6-20070526 fails to build on solaris2.6 and 2.7. This is due
to confdefs.h #ifdef __cplusplus #include <stdlib.h> #endif before
_FILE_OFFSET_BITS=64 is seen. Since stdlib includes other files and,

hmm - I hadn't seen a problem with that (sounds like you're referring
to the configure script test, which isn't very recent).

not seeing a definition for _FILE_OFFSET_BITS, defines it to 32, we
end up failing to find builtin bool (because the test code fails to
compile, seeing multiple, incompatible declarations of, various file
related functions.

The solution is to add _FILE_OFFSET_BITS to CPPFLAGS, like the other
large file macros.

While hunting the bug we also noticed that c++/internal.h #includes
<stdlib.h> before ncurses_cfg.h.

ok - that's from 20070407 (an error)


Small patches attached.

thanks

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]