tui/1951: gdb does not compile on Solaris with ncurses 5.4

aaronw@net.com aaronw@net.com
Fri May 27 03:38:00 GMT 2005


>Number:         1951
>Category:       tui
>Synopsis:       gdb does not compile on Solaris with ncurses 5.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri May 27 03:38:00 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     aaronw@net.com
>Release:        6.3
>Organization:
>Environment:

>Description:
I get the following error when compiling gdb 6.3 on Solaris 2.8:

gcc -c -O2     -I. -I. -I./config -DLOCALEDIR="\"/tools/freeware/gcc3.3/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunused-label -Wunused-function  ./tui/tui.c
In file included from tui/tui.c:48:
/usr/include/term.h:1060: error: syntax error before "SGTTY"
/usr/include/term.h:1120: error: syntax error before '}' token
/usr/include/term.h:1205: error: conflicting types for `putp'
/tools/freeware/gcc3.3/include/ncurses/ncurses.h:658: error: previous declaration of `putp'
/usr/include/term.h:1207: error: conflicting types for `vidputs'
/tools/freeware/gcc3.3/include/ncurses/ncurses.h:716: error: previous declaration of `vidputs'
In file included from tui/tui.c:48:
/usr/include/term.h:1209:31: macro "resetterm" passed 1 arguments, but takes just 0
/usr/include/term.h:1209:46: macro "fixterm" passed 1 arguments, but takes just 0
/usr/include/term.h:1209:62: macro "saveterm" passed 1 arguments, but takes just 0
make[1]: *** [tui.o] Error 1
make[1]: Leaving directory `/var/tmp/gcc3/gdb-6.3/gdb'
make: *** [all-gdb] Error 2
>How-To-Repeat:
Try and compile on Solaris with ncurses 5.4 installed.

Note that I saw someone else report the same problem with Solaris 2.10.
>Fix:
--- gdb/tui/tui.c~      2004-09-07 14:55:12.000000000 -0700
+++ gdb/tui/tui.c       2005-05-26 20:20:52.520011000 -0700
@@ -45,8 +45,12 @@
 #include <stdlib.h>
 #include <ctype.h>
 #ifdef HAVE_TERM_H
+#ifdef HAVE_NCURSES_NCURSES_H
+#include <ncurses/term.h>
+#else
 #include <term.h>
 #endif
+#endif
 #include <signal.h>
 #include <fcntl.h>
 #if 0
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gdb-prs mailing list