https://bugs.winehq.org/show_bug.cgi?id=52381
Bug ID: 52381 Summary: wineg++: Compile error in tom.h Product: Wine Version: 6.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winelib Assignee: wine-bugs@winehq.org Reporter: sacrom@gmail.com Distribution: ---
Compiling an application based in winelib (copiled with wineg++), since Wine 6.19 causes a compile error at header "tom.h".
I've narrowed and minified the source file to generate the error.
-----------------------------
[sc@generic_linux1_64]/sc/tmp/wine$ cat compile_error.c #include <windows.h> #include <tom.h>
int main() { return 0; }
[sc@generic_linux1_64]/sc/tmp/wine$ wine --version wine-6.19
[sc@generic_linux1_64]/sc/tmp/wine$ winegcc compile_error.c
[sc@generic_linux1_64]/sc/tmp/wine$ wineg++ compile_error.c In file included from compile_error.c:2: /opt/wine-devel/include/wine/windows/tom.h:1889:22: error: invalid use of incomplete type ‘struct ITextSelection’ 1889 | ITextRange2 : public ITextSelection | ^~~~~~~~~~~~~~ In file included from compile_error.c:2: /opt/wine-devel/include/wine/windows/tom.h:79:19: note: forward declaration of ‘struct ITextSelection’ 79 | typedef interface ITextSelection ITextSelection; | ^~~~~~~~~~~~~~ winegcc: /usr/bin/g++ failed
-----------------------------
While in Wine 6.18:
[sc@generic_linux1_64]/sc/tmp/wine$ wine --version wine-6.18 [sc@generic_linux1_64]/sc/tmp/wine$ winegcc compile_error.c [sc@generic_linux1_64]/sc/tmp/wine$ wineg++ compile_error.c [sc@generic_linux1_64]/sc/tmp/wine$ cat compile_error.c #include <windows.h> #include <tom.h>
int main() { return 0; }
-----------------------------
Probably the cause lies in this commit: https://source.winehq.org/git/wine.git/commit/5a8dcb062793fbb68997e1b54ebc26...
https://bugs.winehq.org/show_bug.cgi?id=52381
Marcos Gutiérrez Batz sacrom@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu CC| |sacrom@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=52381
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression, | |source
https://bugs.winehq.org/show_bug.cgi?id=52381
--- Comment #1 from Marcos Gutiérrez Batz sacrom@gmail.com --- Created attachment 71599 --> https://bugs.winehq.org/attachment.cgi?id=71599 Reorder tom.idl interfaces to prevent c++ compile error
To fix the issue, the only needed operation is to reorder the interfaces from tom.idl making sure that an interface is inheriting a previously defined interface
https://bugs.winehq.org/show_bug.cgi?id=52381
--- Comment #2 from Marcos Gutiérrez Batz sacrom@gmail.com --- The submitted patch is based on the latest Wine 7.0-RC5
https://bugs.winehq.org/show_bug.cgi?id=52381
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |5a8dcb062793fbb68997e1b54eb | |c2666a2b2834d
https://bugs.winehq.org/show_bug.cgi?id=52381
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |048f5436fa447b325964c6d2247 | |a94eff521339c Resolution|--- |FIXED CC| |z.figura12@gmail.com
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- Should be fixed by https://source.winehq.org/git/wine.git/commitdiff/048f5436fa447b325964c6d2247a94eff521339c.
https://bugs.winehq.org/show_bug.cgi?id=52381
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc6.