Wireshark-bugs: [Wireshark-bugs] [Bug 2493] Wireshark compile errors for cygwin flex (v 2.5.35)

Date: Fri, 25 Apr 2008 07:27:44 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2493


Marcus Haebler <haebler@xxxxxxxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |haebler@xxxxxxxxxxxxxxxxxx




--- Comment #15 from Marcus Haebler <haebler@xxxxxxxxxxxxxxxxxx>  2008-04-25 07:27:37 GMT ---
Just ran into that issue when trying to compile a 1.0.0 source tree on Windows
with the setup described in the Wireshark documentation (section 2.2)

On the noyywrap issue:
For the record, the noyywrap flex bug is documented on the GNU flex sf.net
site:

http://sourceforge.net/tracker/index.php?func=detail&aid=1783536&group_id=97492&atid=618177

Using VC++ 2005 EE, you will get a compile error on any warning because
warnings are treated as errors. The [/-]WX compiler switch is set in
Makefile.nmake/CFLAGS in the following files:

epan/dfilter/Makefile.nmake
epan/Makefile.nmake
Makefile.nmake
plugins/mate/Makefile.nmake
plugins/wimaxasncp/Makefile.nmake
wiretap/Makefile.nmake

MS reference on compiler switches:
http://msdn2.microsoft.com/en-us/library/thxezb7y(VS.71).aspx

A hack is to remove the compiler switch temporarily from all the Makefile.nmake
above to get it compiled.

On the unistd.h:
Until this is fully resolved a temporary hack to get things compiled is to
create an empty unistd.h file in the directory where the lex file resides. The
include path includes ".".

For the time being (and to compile 1.0.0) the best workaround is to remove flex
from Cygwin and use the GnuWin32 native version instead:

http://www.wireshark.org/docs/wsdg_html_chunked/ChToolsLexx.html#ChToolsWin32Lexx


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