ERR in curses and glibc 2.1.3

Mark Kettenis kettenis@wins.uva.nl
Thu Mar 2 10:36:00 GMT 2000


   Date: Thu, 2 Mar 2000 09:24:40 -0800
   From: "H . J . Lu" <hjl@lucon.org>

   On Thu, Mar 02, 2000 at 09:06:37AM -0800, Ulrich Drepper wrote:
   > "H . J . Lu" <hjl@lucon.org> writes:
   > 
   > > in <sys/ucontext.h>. The problem is ERR is a macro in curses.h on
   > > Solaris 2.7 and ncurses. Since <sys/ucontext.h> is included in
   > > <signal.h>, it means you cannot include <signal.h> and <curses.h>
   > > at the same time. I will see it as a glibc bug. It should be fixed.
   > 
   > Yes, I know, the register naming is a problem.  We will have to rename
   > them but I didn't want to do this for 2.1.

   That means glibc 2.1 is unusable with curses. Anyone who wants to use
   it will have to patch it. Even if you don't want to make a new release
   just for it, the glibc 2.1 in CVS should be fixed.

Huh?  By unusable you mean that if you #define _GNU_SOURCE you'll get
a *warning* about ERR being redefined?

Mark


More information about the Libc-hacker mailing list