From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sergey Poznyakoff Newsgroups: gmane.lisp.guile.devel Subject: Re: build errors (error: conflicting types for 'yyget_leng') Date: Fri, 26 Mar 2010 11:20:34 +0200 Organization: GNU.org.ua Message-ID: <20100326112034.7621@Pirx.gnu.org.ua> References: <82d7a2d21003252059rc39b0c0se48ec303bc7d0a58@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1269595357 28957 80.91.229.12 (26 Mar 2010 09:22:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Mar 2010 09:22:37 +0000 (UTC) Cc: guile-devel@gnu.org To: "Andrew Milkowski" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Mar 26 10:22:32 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nv5kN-0000eZ-J5 for guile-devel@m.gmane.org; Fri, 26 Mar 2010 10:22:32 +0100 Original-Received: from localhost ([127.0.0.1]:51119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nv5jo-0002ug-09 for guile-devel@m.gmane.org; Fri, 26 Mar 2010 05:21:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nv5jD-0002dR-4r for guile-devel@gnu.org; Fri, 26 Mar 2010 05:21:19 -0400 Original-Received: from [140.186.70.92] (port=50880 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nv5jB-0002cP-Cj for guile-devel@gnu.org; Fri, 26 Mar 2010 05:21:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nv5j9-0003wb-P3 for guile-devel@gnu.org; Fri, 26 Mar 2010 05:21:17 -0400 Original-Received: from pirx.gnu.org.ua ([213.130.31.41]:39818) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nv5j9-0003vn-Ci for guile-devel@gnu.org; Fri, 26 Mar 2010 05:21:15 -0400 X-Mailutils-Message-Id: o2Q9KZXD007624 Original-Received: from Pirx.gnu.org.ua (localhost [127.0.0.1]) by Pirx.gnu.org.ua with ESMTP id o2Q9KZXD007624; Fri, 26 Mar 2010 11:21:10 +0200 Original-Received: (from gray@localhost) by Pirx.gnu.org.ua (8.14.3/8.12.10/Submit) id o2Q9KYLW007623; Fri, 26 Mar 2010 11:20:34 +0200 In-reply-to: Your message of Thu, 25 Mar 2010 23:59:36 -0400 <82d7a2d21003252059rc39b0c0se48ec303bc7d0a58@mail.gmail.com> X-Mailer: MH-E 8.0.3; GNU Mailutils 2.1; GNU Emacs 22.1.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10084 Archived-At: Andrew Milkowski ha escrit: > :2051: error: conflicting types for 'yyget_leng' > ./c-tokenize.lex:32: error: previous declaration of 'yyget_leng' was here This function (yyget_leng) is provided by flex parser skeleton. As such, flex also provides a forward declaration for it. Since c-tokenize.lex has a declaration on its own, the resulting file c-tokenize.c ends up having two declarations for that function (the same holds true for other parser functions: yyget_in, yyget_out, etc.). These declarations are not necessarily the same, because the ones generated by flex may differ in some slight ways from the ones hardcoded in c-tokenize.lex. To summarize: I'd propose to remove the spurious declarations of the 'yy*' functions (between lines 27 and 39 in c-tokenize.lex). Regards, Sergey