Wireshark-bugs: [Wireshark-bugs] [Bug 2493] Wireshark compile errors for cygwin flex (v 2.5.35)
Date: Wed, 23 Apr 2008 19:55:00 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2493


Bill Meier <wmeier@xxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED




--- Comment #12 from Bill Meier <wmeier@xxxxxxxxxxx>  2008-04-23 19:54:58 GMT ---
Of the eleven cygwin flex v2.5.35 generated .c files:
 All but one have the unistd error.
 All but one have the 'not enough actual parameters' warning.
 Six of the files have a 'signed/unsigned mismatch' warning.

1. re: unistd:

   I'll see if I can gin something up for the config.nmake which
   automatically determines if --nounistd is supported by the 
   version of flex being used.

2. re: 'wrap' related warning:

   I'm now inclined to just remove the '%option noyywrap' and to add
   the int xxx_wrap(void) { return 1;} to each of the files (as
   you originally suggested). (This is what is already being done
   in text2pcap-scanner.l).

   (It would be possible to have runlex.sh add the #pragma warning(...)
   to the generated xxx_lex.h file, but I think the above is better).

3. re: signed/unsigned mismatch:

   I'll have to track these down...


I'll work on this tomorrow (Thurs).

Note: FWIW: For the one case I checked the unix flex generated .c file was
about the same as the file generated by cygwin flex v2.5.35 ....


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.