7.21 Compilation Issues on Arch

Questions about Wine on Linux
Locked
Ketrel
Level 1
Level 1
Posts: 6
Joined: Thu Oct 27, 2022 4:41 pm

7.21 Compilation Issues on Arch

Post by Ketrel »

This is a continuation of viewtopic.php?t=37065

Since then I've done the following.

1. Fully updated my system
2. Grabbed the latest source from the github mirror: https://github.com/wine-mirror/wine and checked out the tagged 7.21
3. Got a copy of the PKGBUILD file that Arch uses and ensured I had every possible dependency listed installed (64 and 32 bit)
4. Configured with this command

Code: Select all

../configure \                                                                                                                                                                                                                           
    --prefix=/built \                                                                                                                                                                                                                   
    --libdir=/usr/lib \                                                                                                                                                                                                                  
    --with-x \                                                                                                                                                                                                                           
    --with-gstreamer \                                                                                                                                                                                                                   
    --enable-win64                                                                                                                                                                                                                       
5. ran make when eventually fails with

Code: Select all

../dlls/mshtml/dispex.c:120:22: error: ‘IID_IWineMSHTMLMediaQueryList’ undeclared here (not in a function); did you mean ‘IWineMSHTMLMediaQueryList_tid’?
  120 | #define XIID(iface) &IID_ ## iface,
      |                      ^~~~
../dlls/mshtml/dispex.c:120:22: note: in definition of macro ‘XIID’
  120 | #define XIID(iface) &IID_ ## iface,
      |                      ^~~~
../dlls/mshtml/dispex.c:124:1: note: in expansion of macro ‘PRIVATE_TID_LIST’
  124 | PRIVATE_TID_LIST
      | ^~~~~~~~~~~~~~~~
make: *** [Makefile:83409: dlls/mshtml/x86_64-windows/dispex.o] Error 1
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: 7.21 Compilation Issues on Arch

Post by invisible kid »

Issues with preprocessor concatenation syntax again but this time something is adding spaces around the "##" which will definitely cause errors. I would ask on the Arch boards maybe, I've never seen this issue before.
User avatar
DarkShadow44
Level 9
Level 9
Posts: 1338
Joined: Tue Nov 22, 2016 5:39 pm

Re: 7.21 Compilation Issues on Arch

Post by DarkShadow44 »

I highly doubt spaces are the issue here.

How do you compile? Does compiling the PKGBUILD with makepkg work?
Any additions to /etc/makepkg.conf ?

Also, please post a full compile log, including configure. Preferably a fresh compile inside an empty directory.
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: 7.21 Compilation Issues on Arch

Post by invisible kid »

This is his second thread. The first showed similar errors without the spaces. But you are right, it doesn't appear that spaces should matter. It was just an off-the-cuff guess, I wouldn't dwell on it. It just happens to be blowing up in these macro concatenation sections. You just have to figure out why those entities are undefined. It is not correctly finding a library for whatever reason(non-existant, plumbing issue). Figure out what .h file would they be defined in, check the corresponding library blob to see if they are in there or not. I forget the correct command, but you can at least do a strings command on the library and grep for the entities.

viewtopic.php?t=37065&sid=5e0dbed568627 ... 16026e770d
User avatar
DarkShadow44
Level 9
Level 9
Posts: 1338
Joined: Tue Nov 22, 2016 5:39 pm

Re: 7.21 Compilation Issues on Arch

Post by DarkShadow44 »

FWIW, grep won't help if you grep the source tree. And if there's problems with WIDL, it might not be found at all.

For example, "IID_IWineMSHTMLMediaQueryList" is defined in "mshtml_private_iface.idl":

Code: Select all

    uuid(fd55b4b6-2813-4fb4-829d-380099474ab0)
]
interface IWineMSHTMLMediaQueryList : IDispatch
{
which will result in a file called "mshtml_private_iface.h" inside your build folder. This contains the actual definition:

Code: Select all

DEFINE_GUID(IID_IWineMSHTMLMediaQueryList, 0xfd55b4b6, 0x2813, 0x4fb4, 0x82,0x9d, 0x38,0x00,0x99,0x47,0x4a,0xb0);
A full compile log might shed some light, and of course the other questions I asked. :)
Additionally, see if you have "mshtml_private_iface.h" in your build folder somewhere, and share this as well.
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: 7.21 Compilation Issues on Arch

Post by invisible kid »

I don't know what you are talking about. If a library file(*.so) has a symbol in it you can do the strings command on it and then grep for the symbol you are looking for. You can recursively grep the /usr/include directories for the symbols defined in the .h files. If it's not found, google to see which package it is included in and install it. If you can help the OP great, I'm backing out.

Hopefully OP will come back and you can help him.
Ketrel
Level 1
Level 1
Posts: 6
Joined: Thu Oct 27, 2022 4:41 pm

Re: 7.21 Compilation Issues on Arch

Post by Ketrel »

I'm not positive I'm understanding what either of you are asking.

For the full compile log bit, is that just what I ran an then dump the output of the commands to a file, or this a specific log that you can have generated by one of the various commands?
Ketrel
Level 1
Level 1
Posts: 6
Joined: Thu Oct 27, 2022 4:41 pm

Re: 7.21 Compilation Issues on Arch

Post by Ketrel »

Thinking about it now, I'm going to start fresh trying on the 8.0 dev versions.
Locked