[1432] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Red Hat header problems: ncurses.

daemon@ATHENA.MIT.EDU (Louis J. LaBash Jr.)
Mon Oct 28 13:07:46 1996

From: "Louis J. LaBash Jr." <labash@lcjones.aclib.siue.edu>
To: redhat-list@redhat.com
Date: Mon, 28 Oct 1996 11:38:54 -0600 (CST)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

It appears there's a problem with the "ncurses" includes in Red Hat
3.0.3 and maybe others.  I discovered this while trying to compile MUTT.

The following test illustrates the problem:
  echo "#include <ncurses.h>">try.c ; gcc -M try.c

  In file included from try.c:1:
  /usr/include/ncurses.h:30: unctrl.h: No such file or directory

This error message results because "/usr/include/ncurses.h" is a symlink
to "/usr/include/ncurses/curses.h" and this file includes "unctrl.h" which
is located in the "ncurses" directory (*not* in "/usr/include).

After prepending "ncurses/" to all references of this type the following
resulted:

  echo "#include <ncurses.h>">try.c ; gcc -M try.c
  
  try.o: try.c /usr/include/ncurses.h /usr/include/ncurses/curses.h \
   /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h \
   /usr/include/libio.h /usr/include/_G_config.h \
   /usr/include/ncurses/unctrl.h \
   /usr/lib/gcc-lib/i486-linux/2.7.2/include/stdarg.h

--------------------------- ncurses.udf ------------------------------
diff -u2 ncurses/Old/curses.h ncurses/curses.h
--- ncurses/Old/curses.h	Fri Jul 19 16:14:17 1996
+++ ncurses/curses.h	Mon Oct 28 08:21:55 1996
@@ -28,5 +28,5 @@
 
 #include <stdio.h>   
-#include <unctrl.h>
+#include <ncurses/unctrl.h>
 #include <stdarg.h>
 #ifdef XPG4_EXTENDED
diff -u2 ncurses/Old/form.h ncurses/form.h
--- ncurses/Old/form.h	Fri Jul 19 16:14:36 1996
+++ ncurses/form.h	Mon Oct 28 08:23:15 1996
@@ -23,6 +23,6 @@
 #define FORM_H
 
-#include <curses.h>
-#include <eti.h>
+#include <ncurses/curses.h>
+#include <ncurses/eti.h>
 
 #ifdef __cplusplus
Only in ncurses: ncurses.udf
diff -u2 ncurses/Old/panel.h ncurses/panel.h
--- ncurses/Old/panel.h	Fri Jul 19 16:14:33 1996
+++ ncurses/panel.h	Mon Oct 28 08:24:10 1996
@@ -27,5 +27,5 @@
 #define _PANEL_H
 
-#include <curses.h>
+#include <ncurses/curses.h>
 
 typedef struct panel
--------------------------- ncurses.udf ------------------------------

Any unforseen problems with the above fix?

Thanks.
-- 
Louis-ljl-{LLaBash@siue.edu | lou@minuet.siue.edu}


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post