Your message dated Sat, 24 Dec 2005 07:20:39 -0600
with message-id <[EMAIL PROTECTED]>
and subject line Yes, the new flex is not compatible with the old one
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Dec 2005 21:45:54 +0000
>From [EMAIL PROTECTED] Fri Dec 23 13:45:54 2005
Return-path: <[EMAIL PROTECTED]>
Received: from [69.255.17.110] (helo=crayon.invisible-island.net)
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1EpujZ-0000rA-JI
        for [EMAIL PROTECTED]; Fri, 23 Dec 2005 13:45:54 -0800
Received: from crayon.invisible-island.net ([EMAIL PROTECTED] [127.0.0.1])
        by crayon.invisible-island.net (8.13.5/8.13.5/Debian-3) with ESMTP id 
jBNLjOi5023057;
        Fri, 23 Dec 2005 16:45:34 -0500
Received: (from [EMAIL PROTECTED])
        by crayon.invisible-island.net (8.13.5/8.13.5/Submit) id jBNLjO8t023055;
        Fri, 23 Dec 2005 16:45:24 -0500
X-Authentication-Warning: crayon.invisible-island.net: tom set sender to [EMAIL 
PROTECTED] using -f
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Thomas Dickey <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: "new" flex produces uncompilable code for cases where "old" flex works.
Reply-To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: reportbug 3.18
Date: Fri, 23 Dec 2005 16:45:24 -0500
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: flex
Version: 2.5.31-36
Severity: important


The implementation of the -P option is incompatible with flex 2.5.4a,
since it does not leave the POSIX lex variables yytext and yyleng
accessible in the lexer when this option is used.  Here is a fix:

Index: main.c
--- flex-2.5.31/main.c  2003-04-01 01:51:38.000000000 +0000
+++ flex-2.5.31-20051223/main.c 2005-12-23 21:10:13.000000000 +0000
@@ -1661,6 +1661,15 @@
                                   ("%option yyclass only meaningful for C++ 
scanners"));
        }
 
+       /*
+        * Ensure that lexers work when the -P option is used.
+        * The yytext_ptr variable in this implementation is useless.
+        */
+       if ( strcmp(prefix, "yy") ) {
+               outn ("#define [[yytext]] yytext");
+               outn ("#define [[yyleng]] yyleng");
+       }
+
        if (useecs)
                numecs = cre8ecs (nextecm, ecgroup, csize);
        else


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-td2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

---------------------------------------
Received: (at 344589-done) by bugs.debian.org; 24 Dec 2005 13:25:19 +0000
>From [EMAIL PROTECTED] Sat Dec 24 05:25:19 2005
Return-path: <[EMAIL PROTECTED]>
Received: from host-12-107-230-171.dtccom.net ([12.107.230.171] 
helo=glaurung.internal.golden-gryphon.com)
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1Eq9Og-0003ns-Hu
        for [EMAIL PROTECTED]; Sat, 24 Dec 2005 05:25:19 -0800
Received: from glaurung.internal.golden-gryphon.com ([EMAIL PROTECTED] 
[127.0.0.1])
        by glaurung.internal.golden-gryphon.com (8.13.5/8.13.5/Debian-3) with 
ESMTP id jBODKdOK026994
        (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
        for <[EMAIL PROTECTED]>; Sat, 24 Dec 2005 07:20:40 -0600
Received: (from [EMAIL PROTECTED])
        by glaurung.internal.golden-gryphon.com (8.13.5/8.13.5/Submit) id 
jBODKdg8026991;
        Sat, 24 Dec 2005 07:20:39 -0600
X-Authentication-Warning: glaurung.internal.golden-gryphon.com: srivasta set 
sender to [EMAIL PROTECTED] using -f
From: Manoj Srivastava <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Yes, the new flex is not compatible with the old one
Organization: Manoj Srivastava's Home
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) 
(i686-pc-linux-gnu)
Face: iVBORw0KGgoAAAANSUhEUgAAACYAAAAwCAMAAABKbPgaAAAAM1BMVEUAAADIjH/0rp1KPz79
        
0b+ic2nlpJc2Ly2AY17VlYb4uqi2gHQXFBN2WVXgno5iT02Xa2Nx+jaIAAACVElEQVQ4jeWU23bj
        
IAxFLUAggQX6/6+dI9LGTpo+9mlYiXNhc3TnOP50naZE0tqvgEk+soutnNfQ8yPTWMTENhNrjI+Y
        
+N7POVt8tAzpn2vJlsmttbyfrdkP7hx5iezteGzsbOts7xT+tC1mcG+LtRP2X/16bEQExuyx1uZW
        
vscrAWUT8aE0aDBeBuw8nS5u4WgWyDCllOZUBeyWgbWbGrBsTDpTx0qpphlcYPcgJLvBXFClPMg5
        
6WH2JidLIAaDF5aAed7uPTH4bjw0bZvfajp2tHc1F+cBm+Vr9YomGSwNhbmcczYEWUu5MBpYvCLV
        
F+ZIKwQfYB+CBXnIRQFvIRhK6l96PemsFLEPFxi+MPxiTYH0Ave1InPsIYes3NJb42ytBSmmysyj
        
lIQYHJm6Im1WbQ0kWMesKFRFPKTDzJ3GhWUn2KWKEkWlKthoACLm2eWJQQh2qKbAUgQxa+8TVjn1
        
aySm8656ookCfCc5TRzvnZ6YOu3NpHg+uR5YuRkNF/b5IHq5Y7Ve6c2+sR4hqIZ3+5DCt3ukh8Eo
        
vFIXVJxqfMdbkd/BF3YaQkB/2RIUHPMS7RLVAHefrYzWZVQ/ei4peBsROFLi90ltQyvF5I05t4Zs
        
L4C9DODJ2AZCUf8UitGjCIdfx15QQkfZibTOGT3edxns5fY6F2rstKcTwiiaJnQwvYkdzTlaTqNH
        
IkSmGdLrON45tGsMNDoSYr4bxH5emHEFaoFjKBahHXFXfLx9cR9p6ejJXihuxPz57gWHZkWovbPl
        9gsU8eImtBi++3D+f+sfT/Mg79fyEz8AAAAASUVORK5CYII=
X-URL: http://www.golden-gryphon.com/
Mail-Copies-To: nobody
X-Face: [EMAIL PROTECTED]/;Y^gTjR\T^"B'fbeuVGiyKrvbfKJl!^e|e:iu(kJ6c|QYB57LP*|t
 &YlP~HF/=h:[EMAIL PROTECTED]:6Cj0kd#4]>*D,|0djf'CVlXkI,>aV4\}?d_KEqsN{Nnt7
 78"OsbQ["56/!nisvyB/uA5Q.{)gm6?q.j71ww.>b9b]-sG8zNt%KkIa>xWg&1VcjZk[hBQ>]j~`Wq
 Xl,y1a!(>6`UM{~'X[Y_,Bv+}=L\SS*mA8=s;!=O`ja|@PEzb&i0}Qp,`Z\:6:OmRi*
X-Hashcash: 1:25:051224:[EMAIL 
PROTECTED]::ikCgsg41vA1k6EbQ:0000000000000000000000000000000000EKJD
Date: Sat, 24 Dec 2005 07:20:39 -0600
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-CRM114-Score: -35.1426
X-CRM114-Status: Good  ( pR: -35.1426 )
X-SA-Orig: -8.399, -35.1426
X-Spam-Value: -14.7958111111111
X-Grey: White
X-SA-Rep: -14.7958111111111 ALL_TRUSTED,BAYES_00,HASHCASH_25
X-Scanned-By: MIMEDefang version 2.53 (www . roaringpenguin . com / mimedefang) 
on 192.168.1.10
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02

Hi,

        This is not a bug, this is a feature. Compatibility with the
 old flex has not been retained.

        The behaviour of flex has changed in the latest release, yes.
 This is part of the gcc migration process; flex has been updated (the
 buggy, rickety set of patches required to make it work with gcc was
 dumped in favour of a well engineered upstream migration). Please
 look at the upstream Changelog for details.

        Flex has also grown an extensive test suite, and there is a
 test for each of the features reported below. I strongly think that
 these changes, which require changes in source, and not a bug, are
 causing the vast majority of failures.

 As you may see, flex scanners have become reentrant, the c++ versions
 are compatible with recent c++ compilers (conform to ANSI C++, gcc
 3.2), supports bison variables yylval and yylloc. Some variables have
 been renamed. Flex generates C99 defs now; see
 YY_TRADITIONAL_FUNC_DEFS yylineno is present in all
 scanners. yylineno is per-buffer in reentrant scanners. flex tries
 its best to output only the relevant portions of the skeleton when
 generating a scanner, thus avoiding as much conditional compilation
 as possible

       The signature of all functions has changed. flex has new
 command line options, and option parsing has changed (now also
 supports POSIX conventions optionally). Handles POSIXLY_CORRECT
 environment variable.  Various i18n translations are included in the
 distribution. flex now works with recent bison versions

        This is not a single short lived change.

        I understand that this requires all packages using lex to
 massage their lexers to conform to the new behaviour of flex; but the
 gains in reduced complexity of the scanner and reentrancy and
 standards compliance are well worth it.

        In case you can't change the source code of your application
 to conform to the new flex, the package flex-old exists.

        manoj
-- 
There is no education that is not political.  An apolitical education
is also political because it is purposely isolating.
Manoj Srivastava     <[EMAIL PROTECTED]>    <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to