This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/715: patch to avoid prototype conflict with readline 4.3
- From: Petter Reinholdtsen <pere at hungry dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 3 Dec 2002 11:18:01 -0000
- Subject: gdb/715: patch to avoid prototype conflict with readline 4.3
- Reply-to: Petter Reinholdtsen <pere at hungry dot com>
The following reply was made to PR gdb/715; it has been noted by GNATS.
From: Petter Reinholdtsen <pere@hungry.com>
To: gdb-gnats@sources.redhat.com
Cc: mmokrejs@natur.cuni.cz
Subject: gdb/715: patch to avoid prototype conflict with readline 4.3
Date: Tue, 3 Dec 2002 12:14:37 +0100
The following patch is required to get gdb compiling when readline 4.3
is installed. Without this patch I get the following error message on
Solaris 8 using the SUN Forte compiler:
cc-wrapper -c -g -I/usr/include/v9 -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl -DMI_OUT=1 -DUI_OUT=1 event-top.c
"/local/include/readline/tilde.h", line 68: identifier redeclared: tilde_expand
current : function(pointer to const char) returning pointer to char
previous: function(pointer to char) returning pointer to char : "./defs.h", line 815
cc: acomp failed for event-top.c
make[1]: *** [event-top.o] Error 2
make[1]: Leaving directory `/usit/gryffindor/local/store/gryffindor/gdb-c/src-5.2.1-sun4os58/gdb'
diff -ru src-5.2.1/gdb/defs.h src-5.2.1-local/gdb/defs.h
--- src-5.2.1/gdb/defs.h 2002-11-01 13:09:44.000000000 +0100
+++ src-5.2.1-local/gdb/defs.h 2002-12-03 11:57:08.000000000 +0100
@@ -812,7 +812,7 @@
/* From readline (but not in any readline .h files). */
-extern char *tilde_expand (char *);
+extern char *tilde_expand (const char *);
/* Control types for commands */