Wireshark-bugs: [Wireshark-bugs] [Bug 2493] New: Wireshark compile errors for cygwin flex (v 2.5
Date: Tue, 22 Apr 2008 11:42:50 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2493

           Summary: Wireshark compile errors for cygwin flex (v 2.5.35)
                    generated . c files
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: wmeier@xxxxxxxxxxx


Build Information:

--
I recently downloaded and installed the latest cygwin flex: version 2.5.35.

I'm now no longer able to compile (it appears) any and all Wireshark .c files
generated from .l files using the updated flex. (Actually: I've only checked a
subset of the .c files generated from the .l files).

I get errors like:

k12text.c(952) : fatal error C1083: Cannot open include file: 'unistd.h': No
such file or directory

ascend-scanner.c(1693) : warning C4003: not enough actual parameters for macro
'ascendwrap'


Flex v2.5.4 is the previous version that I have (on a Windows XP machine) which
generates files which compile.  (I tried cygwin flex v 2.5.33; that gave the
same results as 2.5.35).

(Doing a diff of a generated .c files from the two flex versions shows that the
files appear to be substantially different).

(Since the 2.5.4 cygwin flex is several versions back, I'm going to have to do
some research to see how to fall back on my Vista PC since cygwin setup seems
to only allow falling back to the previous version).

I'm filing this as a bug (rather than fixing it) since I have no experience
working with flex...


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