ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] warning LNK4291: module may contain '__except' but was not c

From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Fri, 2 Jul 2021 17:28:07 +0100


On Fri, 2 Jul 2021 at 17:21, Maynard, Christopher via Wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> wrote:
> From: Wireshark-dev <wireshark-dev-bounces@xxxxxxxxxxxxx> On Behalf Of Graham Bloice
> Sent: Friday, July 2, 2021 11:53 AM
> To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
> Subject: Re: [Wireshark-dev] warning LNK4291: module may contain '__except' but was not compiled with /guard:ehcont
>
> I'd be interested to know if you see link errors on subsequent rebuilds as noted by Martin M and myself in emails discussions today.
>
> --
> Graham Bloice
>

Yes, I do:

Build FAILED.

       "D:\wireshark\builds\win64\master\Wireshark.sln" (default target) (1) ->
       "D:\wireshark\builds\win64\master\wireshark.vcxproj.metaproj" (default target) (2) ->
       "D:\wireshark\builds\win64\master\wireshark.vcxproj" (default target) (150) ->
       (Link target) ->
         d:\wireshark\src\master\speexdsp\resample.c : fatal error C1001: Internal compiler error. [D:\wireshark\builds\win64\master\wireshark.vcxproj]
         LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage [D:\wireshark\builds\win64\master\wireshark.vcxproj]

    0 Warning(s)
    2 Error(s)

- Chris


My suspicion is that the added compiler and linker flags taint the .obj files in some way that subsequently breaks the compilation.  It may be down to a conflict between the new security flags and link time code generation (so the .obj files are in some "intermediate form").  I didn't try making another code modification and rebuilding after I had gotten my build with /t:Rebuild to work, so I've kicked off one now (unfortunately the update to master has pulled in some CMake changes as well so the regeneration is running which might invalidate my attempt to replicate.

--
Graham Bloice