MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011803 | CMake | CMakeSetup | public | 2011-02-05 04:46 | 2016-06-10 14:31 |
| Reporter | Neil Newell | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | GNU Linux X86/GCC 4.4.5 | OS | Linux | OS Version | 2.6.32.2 |
| Product Version | CMake 2.8.3 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0011803: Build failure: 'erase' undefined (ncurses) | ||||
| Description | When building CMake on linux, linking failed due to 'erase' (ncurses) being undefined in e.g cmCursesLongMessage.cxx. | ||||
| Steps To Reproduce | Compile against ncurses-5.7 (GCC 4.4.5 was used but probably not a factor). | ||||
| Additional Information | The issue seems to be because 'erase' is being 'hidden' via an inline function in a header file, then #undef'd to avoid possible conflict with the STL. However, in ncurses-5.7 the same logic appears in the ncurses.h header itself; 'erase' is #undef'sd if _cplusplus is defined; as a result it is not defined in the first place. The problem was fixed locally by replacing the 'erase()' call in the header file Source/CursesDialog/cmCursesStandardInclude.h with its macro expansion of 'werase(stdscr)'. Possibly the same fix should be applied to 'move' (in 'curses_move') although this wasn't a problem in this specific case. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2011-02-05 04:46 | Neil Newell | New Issue | |||
| 2012-08-11 11:09 | David Cole | Status | new => backlog | ||
| 2012-08-11 11:09 | David Cole | Note Added: 0030229 | |||
| 2016-06-10 14:28 | Kitware Robot | Note Added: 0041794 | |||
| 2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||