From owner-freebsd-current@FreeBSD.ORG Thu Oct 21 08:56:56 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4727716A4CE for ; Thu, 21 Oct 2004 08:56:56 +0000 (GMT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93C9743D1F for ; Thu, 21 Oct 2004 08:56:55 +0000 (GMT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.1/8.13.1) with ESMTP id i9L8usbT067993; Thu, 21 Oct 2004 12:56:54 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.13.1/8.13.1/Submit) id i9L8us4Z067988; Thu, 21 Oct 2004 12:56:54 +0400 (MSD) (envelope-from ache) Date: Thu, 21 Oct 2004 12:56:53 +0400 From: Andrey Chernov To: Ian FREISLICH , current@FreeBSD.ORG Message-ID: <20041021085653.GA67949@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Ian FREISLICH , current@FreeBSD.ORG References: <20041021085209.GA67772@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041021085209.GA67772@nagual.pp.ru> User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter (version: 1.1; AVE: 6.28.0.7; VDF: 6.28.0.26; host: pobrecita.freebsd.ru) Subject: Re: [PATCH] libreadline buildworld breakage. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 08:56:56 -0000 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 > > @@ -616,7 +616,7 @@ > > /* 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@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > -- > Andrey Chernov | http://ache.pp.ru/ > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Andrey Chernov | http://ache.pp.ru/