This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/715: patch to avoid prototype conflict with readline 4.3


The following reply was made to PR build/715; it has been noted by GNATS.

From: =?iso-8859-2?Q?Martin_MOKREJ=A9?= <mmokrejs@natur.cuni.cz>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/715: patch to avoid prototype conflict with readline 4.3
Date: Sat, 7 Dec 2002 20:53:54 +0100 (CET)

 Hi,
   I can confirm that this patch solves compile problem on Tru64Unix 5.1A
 with cc. Thanks!
 
 On 4 Dec 2002, Petter Reinholdtsen wrote:
 
 > [Martin MOKREJŠ]
 > > Have you seen this error?
 >
 > No, that error is not present when I compile on my Solaris 2.6 box
 > using the SUN Forte compiler.
 >
 > I discovered that I needed more changes to get the code to compile.
 > It is not sufficient to change the header file.  The source must
 > change as well.  Here is a complete patch.  With this patch I got the
 > source to compile on Solaris, Linux, HP/UX and Irix.
 >
 > diff -ur 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 */
 >
 > diff -ur src-5.2.1/readline/tilde.c src-5.2.1-local/readline/tilde.c
 > --- src-5.2.1/readline/tilde.c	2002-11-01 13:11:03.000000000 +0100
 > +++ src-5.2.1-local/readline/tilde.c	2002-12-03 18:08:24.000000000 +0100
 > @@ -186,7 +186,7 @@
 >  /* Return a new string which is the result of tilde expanding STRING. */
 >  char *
 >  tilde_expand (string)
 > -     char *string;
 > +     const char *string;
 >  {
 >    char *result;
 >    int result_size, result_index;
 > diff -ur src-5.2.1/readline/tilde.h src-5.2.1-local/readline/tilde.h
 > --- src-5.2.1/readline/tilde.h	2002-11-01 13:11:03.000000000 +0100
 > +++ src-5.2.1-local/readline/tilde.h	2002-12-03 13:43:08.000000000 +0100
 > @@ -72,7 +72,7 @@
 >  extern char **tilde_additional_suffixes;
 >
 >  /* Return a new string which is the result of tilde expanding STRING. */
 > -extern char *tilde_expand __P((char *));
 > +extern char *tilde_expand __P((const char *));
 >
 >  /* Do the work of tilde expansion on FILENAME.  FILENAME starts with a
 >     tilde.  If there is no expansion, call tilde_expansion_failure_hook. */
 >
 
 -- 
 Martin Mokrejs <mmokrejs@natur.cuni.cz>, <m.mokrejs@gsf.de>
 PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
 MIPS / Institute for Bioinformatics <http://mips.gsf.de>
 GSF - National Research Center for Environment and Health
 Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
 tel.: +49-89-3187 3683 , fax: +49-89-3187 3585
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]