Wireshark-dev: [Wireshark-dev] Trunk Windows CMake builds are broken
From: Guy Harris <[email protected]>
Date: Thu, 21 Aug 2014 01:13:05 -0700
         alert_box.c
    55>c:\buildbot\wireshark\wireshark-master-64\win7x64\build\config.h(256): warning C4005: 'VERSION' : macro redefinition (..\..\..\ui\gtk\capture_dlg.c) [C:\buildbot\wireshark\wireshark-master-64\win7x64\build\cmbuild\ui\gtk\gtkui.vcxproj]
                 C:\buildbot\wireshark\wireshark-master-64\win7x64\build\cmbuild\config.h(9) : see previous definition of 'VERSION'
    55>c:\buildbot\wireshark\wireshark-master-64\win7x64\build\config.h(264): warning C4005: 'HTML_VIEWER' : macro redefinition (..\..\..\ui\gtk\capture_dlg.c) [C:\buildbot\wireshark\wireshark-master-64\win7x64\build\cmbuild\ui\gtk\gtkui.vcxproj]
                 C:\buildbot\wireshark\wireshark-master-64\win7x64\build\cmbuild\config.h(321) : see previous definition of 'HTML_VIEWER'
       ClCompile:
         capture.c
    58>CustomBuild:
         Generating moc_capture_filter_edit.cpp
    55>..\..\..\ui\gtk\capture_dlg.c(565): error C2065: 'airpcap_if_active' : undeclared identifier [C:\buildbot\wireshark\wireshark-master-64\win7x64\build\cmbuild\ui\gtk\gtkui.vcxproj]
    55>..\..\..\ui\gtk\capture_dlg.c(566): warning C4013: 'airpcap_set_toolbar_stop_capture' undefined; assuming extern returning int [C:\buildbot\wireshark\wireshark-master-64\win7x64\build\cmbuild\ui\gtk\gtkui.vcxproj]

	...

We appear to have too many config.h files, and they're defining things inconsistently.  This might be causing problems if, for example, one of them is included in a .c file, and another one is included in a .h file, and they define something such as HAVE_AIRPCAP differently, such that the .h file is built with it not defined and the .c file is built with it defined.