Bug 4573 - RH5.2 ncurses based binaries core dump on RH6.0
RH5.2 ncurses based binaries core dump on RH6.0
Product: Red Hat Linux
Classification: Retired
Component: ncurses (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
Depends On:
  Show dependency treegraph
Reported: 1999-08-17 11:06 EDT by richard
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-02-05 15:12:21 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description richard 1999-08-17 11:06:52 EDT
I have a RH5.2 system with ncurses-4.2 and a RH6.0 system
with ncurses-4.2.  If I compile the following on RH5.2 and
then try and run it on RH6.0 it coredumps.

#include <curses.h>

main (int argc, char **argv)
  int c;

  initscr(); cbreak(); noecho();

  intrflush(stdscr, FALSE);
  keypad(stdscr, TRUE);

  c = mvinch(1,1);


  return c;

Comment 1 Preston Brown 1999-08-29 10:54:59 EDT
Cristian, is this expected behavior?
Comment 2 Kriang Lerdsuwanakij 2000-01-29 04:29:59 EST
I tracked down this problem recently.  The ncurses-4.2 that came with RH5.2
defined bool as 'char' while RH6.0 and 6.1 ncurses-4.2 defined it as 'int'.
So the incompatibility indeed exists.

Note You need to log in before you can comment on or make changes to this bug.