Re: [PATCH] libreadline buildworld breakage.

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Thu, 21 Oct 2004 12:56:53 +0400
On Thu, Oct 21, 2004 at 12:52:09PM +0400, Andrey Chernov wrote:
> Something wrong on your machine, maybe compiler. I don't see this 
> diagnostic:

>From other side, maybe your copy of complete.c is not updated somehow:
/*const*/ char *rl_completer_word_break_characters = (/*const*/ char 
*)NULL;

> 
> cc -O -pipe -march=pentium3 -I/usr/src/gnu/lib/libreadline/readline/.. 
> -I/usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline 
> -DHAVE_CONFIG_H -DRL_LIBRARY_VERSION='"5.0"'  -c 
> /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline/complete.c
> /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline/complete.c: 
> In function `compute_lcd_of_matches':
> /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline/complete.c:1154: 
> warning: passing arg 1 of pointer to function discards qualifiers from 
> pointer target type
> 
> 
> On Thu, Oct 21, 2004 at 10:40:06AM +0200, Ian FREISLICH wrote:
> >  -O -pipe  -I/usr/src/gnu/lib/libreadline/readline/.. -I/usr/src/gnu/lib/libre
> > adline/readline/../../../../contrib/libreadline -DHAVE_CONFIG_H -DRL_LIBRARY_VER
> > SION='"5.0"'  -c /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libre
> > adline/complete.c
> > /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline/complete.c
> > :218: error: conflicting types for 'rl_completer_word_break_characters'
> > /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline/readline.h
> > :619: error: previous declaration of 'rl_completer_word_break_characters' was he
> > re
> > /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline/complete.c
> > :218: error: conflicting types for 'rl_completer_word_break_characters'
> > /usr/src/gnu/lib/libreadline/readline/../../../../contrib/libreadline/readline.h
> > :619: error: previous declaration of 'rl_completer_word_break_characters' was he
> > re
> > *** Error code 1
> > 
> > Stop in /usr/src/gnu/lib/libreadline/readline.
> > *** Error code 1
> > 
> > 
> > Fix (fixes compile):
> > 
> > 
> > RCS file: /home/ncvs/src/contrib/libreadline/readline.h,v
> > retrieving revision 1.16
> > diff -u -d -r1.16 readline.h
> > --- readline.h  18 Oct 2004 07:25:32 -0000      1.16
> > +++ readline.h  21 Oct 2004 08:23:19 -0000
> > _at__at_ -616,7 +616,7 _at__at_
> >  /* The list of characters that signal a break between words for
> >     rl_complete_internal.  The default list is the contents of
> >     rl_basic_word_break_characters.  */
> > -extern /*const*/ char *rl_completer_word_break_characters;
> > +extern const char *rl_completer_word_break_characters;
> >  
> >  /* Hook function to allow an application to set the completion word
> >     break characters before readline breaks up the line.  Allows
> > 
> > 
> > Ian
> > 
> > --
> > Ian Freislich
> > _______________________________________________
> > freebsd-current_at_freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
> 
> -- 
> Andrey Chernov | http://ache.pp.ru/
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"


-- 
Andrey Chernov | http://ache.pp.ru/
Received on Thu Oct 21 2004 - 06:56:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:18 UTC