https://bugs.winehq.org/show_bug.cgi?id=47035
Bug ID: 47035 Summary: widl generates typelib file with enums multiply defined Product: Wine Version: 4.5 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: rpc Assignee: wine-bugs@winehq.org Reporter: richard@torproject.org Distribution: ---
When generating typelibs from idl where enums are defined, the generated tlb ends up with a copy of the enum definition for every instance that the enum is mentioned as a parameter to a function, plus 1.
I've created a branch with a min-repro here:
https://github.com/pospeselr/mingw-widl-bug/tree/enum_bug
Once again, update the Makefile to point to your local copy of widl.
I tested this with the latest mingw ( commit c61763cc740f8f4986755eeafce832baa3655ee8 ) which uses widl version 4.5 plus I've applied the patch from https://bugs.winehq.org/show_bug.cgi?id=47031 (note: this issue occurs even without the patch applied).