[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for failed build on solaris 6 & 7
From: |
Peter O'Gorman |
Subject: |
patch for failed build on solaris 6 & 7 |
Date: |
Sat, 26 May 2007 23:00:41 -0500 |
User-agent: |
Mutt/1.4.2.2i |
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,
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.
Small patches attached.
Thank you,
Peter
ncurses.patch
Description: Text document
- patch for failed build on solaris 6 & 7,
Peter O'Gorman <=