From owner-freebsd-ports@FreeBSD.ORG Fri Jan 20 17:44:58 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B422316A41F for ; Fri, 20 Jan 2006 17:44:58 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1EBE43D53 for ; Fri, 20 Jan 2006 17:44:56 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id k0KHirs11550; Fri, 20 Jan 2006 09:44:53 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id RAA11472; Fri, 20 Jan 2006 17:44:09 GMT Message-Id: <200601201744.RAA11472@sopwith.solgatos.com> To: Akim Demaille In-reply-to: Your message of "Fri, 20 Jan 2006 14:57:39 +0100." Date: Fri, 20 Jan 2006 09:44:09 +0000 From: Dieter Cc: bug-bison@gnu.org, freebsd-ports@freebsd.org Subject: Re: portability fix for bison-1.75 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 17:44:58 -0000 In message , Akim Demaille writes: > Thanks, but the current version of Bison is 2.1. And in 2.1, both are > ints, so I don't see the need for this patch. Unless you have a > modified version of Bison using size_t or something? I was building gcc and the FreeBSD ports system automagically built bison-1.75. Interesting, in 1.75 they were size_t, in 2.1 they are int. So yes, 2.1 doesn't need the patch. Compiling 2.1 gives: ../../lib/getopt.c:127: warning: function declaration isn't a prototype ../../lib/quotearg.c:591: warning: comparison is always false due to limited range of data type ../../lib/strndup.c:39: warning: no previous prototype for 'strndup' ../../lib/strnlen.c:42: warning: no previous prototype for 'rpl_strnlen'