Strange compilation error with wine-staging 5.0

Questions about Wine on Linux
Locked
Time4Tea
Level 3
Level 3
Posts: 56
Joined: Sat Apr 25, 2020 11:32 am

Strange compilation error with wine-staging 5.0

Post by Time4Tea »

I am trying to build wine-staging v5.0 on Arch Linux, as I want to test compatibility of a game that apparently worked with this version, but I am having sound problems with in the current wine version. However, I am getting what seems to be a very strange compilation error:

Code: Select all

Make[1]: Entering directory '/home/sandbox/Sources/AUR/wine-staging-5.0/src/build-64/dlls/d2d1'
../../tools/winegcc/winegcc -o d2d1.dll --wine-objdir ../.. -b x86_64-w64-mingw32 --lib-suffix=.cross.a \
  -Wl,--wine-builtin -shared ../../../wine/dlls/d2d1/d2d1.spec -mno-cygwin bitmap.cross.o \
  bitmap_render_target.cross.o brush.cross.o dc_render_target.cross.o device.cross.o effect.cross.o \
  factory.cross.o geometry.cross.o hwnd_render_target.cross.o layer.cross.o mesh.cross.o \
  state_block.cross.o stroke.cross.o wic_render_target.cross.o version.res \
  ../../dlls/dwrite/libdwrite.delay.a ../../dlls/d3d10_1/libd3d10_1.cross.a \
  ../../dlls/dxguid/libdxguid.cross.a ../../dlls/uuid/libuuid.cross.a \
  ../../dlls/gdi32/libgdi32.cross.a ../../dlls/user32/libuser32.cross.a \
  ../../dlls/advapi32/libadvapi32.cross.a 
/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: brush.cross.o: in function `d2d_brush_fill_cb':
/home/sandbox/Sources/AUR/wine-staging-5.0/src/build-64/dlls/d2d1/../../../wine/dlls/d2d1/brush.c:1215: undefined reference to `sincosf'
/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: factory.cross.o: in function `D2D1MakeRotateMatrix':
/home/sandbox/Sources/AUR/wine-staging-5.0/src/build-64/dlls/d2d1/../../../wine/dlls/d2d1/factory.c:605: undefined reference to `sincosf'
collect2: error: ld returned 1 exit status
winegcc: x86_64-w64-mingw32-gcc failed
make[1]: *** [Makefile:848: d2d1.dll] Error 2
make[1]: Leaving directory '/home/sandbox/Sources/AUR/wine-staging-5.0/src/build-64/dlls/d2d1'
make: *** [Makefile:9300: dlls/d2d1] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
The error appears to be an undefined reference to a 'sincosf' function. However, I have checked those two .c files and grepped the entire wine source directory and there is no sign of any reference to 'sincosf' anywhere.

Does anyone have any idea what might be causing this?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Strange compilation error with wine-staging 5.0

Post by DarkShadow44 »

Strange, seems to be working for me. How exactly are you trying to build it?
Time4Tea
Level 3
Level 3
Posts: 56
Joined: Sat Apr 25, 2020 11:32 am

Re: Strange compilation error with wine-staging 5.0

Post by Time4Tea »

DarkShadow44 wrote: Sun Sep 12, 2021 4:02 pm Strange, seems to be working for me. How exactly are you trying to build it?
I'm building it with makepkg in Arch Linux. I have a PKGBUILD file that I have modified to download and build that version. I can post that, if it would help?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Strange compilation error with wine-staging 5.0

Post by DarkShadow44 »

Yes, sure.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Strange compilation error with wine-staging 5.0

Post by Bob Wya »

@Time4Tea

You need to apply this (backported) commit patch: wine-4.6-msvcrt_add_sincos_to_importlib.patch
to all mingw builds of Wine / Wine Staging6.8 - if you are using mingw-gcc11 ...

Bob
sh1sh1n11
Newbie
Newbie
Posts: 3
Joined: Tue Dec 28, 2021 2:18 pm

Re: Strange compilation error with wine-staging 5.0

Post by sh1sh1n11 »

@Bob Wya, thanks much for pointing to the solution to this problem. I am facing pretty much the same issue on Arch Linux Kernel: 5.15.11-zen1-1-zen with mingw-w64-gcc version 11.2.0-1.

Below is the code snippet from the part where the compilation of wine-5.0.1 failed.

Code: Select all

make[1]: Entering directory '/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/d2d1'
x86_64-w64-mingw32-gcc -c -o bitmap.cross.o ../../../wine-source/dlls/d2d1/bitmap.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o bitmap_render_target.cross.o ../../../wine-source/dlls/d2d1/bitmap_render_target.c -I. \
  -I../../../wine-source/dlls/d2d1 -I../../include -I../../../wine-source/include \
  -I../../../wine-source/include/msvcrt -D__WINESRC__ -DWINE_CROSS_PE -Wall -fno-strict-aliasing \
  -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \
  -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \
  -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o brush.cross.o ../../../wine-source/dlls/d2d1/brush.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o dc_render_target.cross.o ../../../wine-source/dlls/d2d1/dc_render_target.c -I. \
  -I../../../wine-source/dlls/d2d1 -I../../include -I../../../wine-source/include \
  -I../../../wine-source/include/msvcrt -D__WINESRC__ -DWINE_CROSS_PE -Wall -fno-strict-aliasing \
  -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \
  -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \
  -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o device.cross.o ../../../wine-source/dlls/d2d1/device.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o effect.cross.o ../../../wine-source/dlls/d2d1/effect.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o factory.cross.o ../../../wine-source/dlls/d2d1/factory.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o geometry.cross.o ../../../wine-source/dlls/d2d1/geometry.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -fexcess-precision=standard -DWINE_CROSS_PE -Wall -fno-strict-aliasing \
  -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \
  -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \
  -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o hwnd_render_target.cross.o ../../../wine-source/dlls/d2d1/hwnd_render_target.c -I. \
  -I../../../wine-source/dlls/d2d1 -I../../include -I../../../wine-source/include \
  -I../../../wine-source/include/msvcrt -D__WINESRC__ -DWINE_CROSS_PE -Wall -fno-strict-aliasing \
  -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \
  -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \
  -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o layer.cross.o ../../../wine-source/dlls/d2d1/layer.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o mesh.cross.o ../../../wine-source/dlls/d2d1/mesh.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o state_block.cross.o ../../../wine-source/dlls/d2d1/state_block.c -I. \
  -I../../../wine-source/dlls/d2d1 -I../../include -I../../../wine-source/include \
  -I../../../wine-source/include/msvcrt -D__WINESRC__ -DWINE_CROSS_PE -Wall -fno-strict-aliasing \
  -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \
  -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \
  -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o stroke.cross.o ../../../wine-source/dlls/d2d1/stroke.c -I. -I../../../wine-source/dlls/d2d1 \
  -I../../include -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  -DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
  -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format \
  -gdwarf-2 -gstrict-dwarf -g -O2
x86_64-w64-mingw32-gcc -c -o wic_render_target.cross.o ../../../wine-source/dlls/d2d1/wic_render_target.c -I. \
  -I../../../wine-source/dlls/d2d1 -I../../include -I../../../wine-source/include \
  -I../../../wine-source/include/msvcrt -D__WINESRC__ -DWINE_CROSS_PE -Wall -fno-strict-aliasing \
  -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \
  -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \
  -Wwrite-strings -Wpointer-arith -Wlogical-op -Wno-format -gdwarf-2 -gstrict-dwarf -g -O2
../../tools/wrc/wrc -o version.res -m64 --nostdinc -I. -I../../../wine-source/dlls/d2d1 -I../../include \
  -I../../../wine-source/include -I../../../wine-source/include/msvcrt -D__WINESRC__ \
  ../../../wine-source/dlls/d2d1/version.rc
../../tools/winegcc/winegcc -o d2d1.dll --wine-objdir ../.. -b x86_64-w64-mingw32 --lib-suffix=.cross.a \
  -Wl,--wine-builtin -shared ../../../wine-source/dlls/d2d1/d2d1.spec -mno-cygwin bitmap.cross.o \
  bitmap_render_target.cross.o brush.cross.o dc_render_target.cross.o device.cross.o effect.cross.o \
  factory.cross.o geometry.cross.o hwnd_render_target.cross.o layer.cross.o mesh.cross.o \
  state_block.cross.o stroke.cross.o wic_render_target.cross.o version.res \
  ../../dlls/dwrite/libdwrite.delay.a ../../dlls/d3d10_1/libd3d10_1.cross.a \
  ../../dlls/dxguid/libdxguid.cross.a ../../dlls/uuid/libuuid.cross.a \
  ../../dlls/gdi32/libgdi32.cross.a ../../dlls/user32/libuser32.cross.a \
  ../../dlls/advapi32/libadvapi32.cross.a 
/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: brush.cross.o: in function `d2d_brush_fill_cb':
/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/d2d1/../../../wine-source/dlls/d2d1/brush.c:1215: undefined reference to `sincosf'
/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: factory.cross.o: in function `D2D1MakeRotateMatrix':
/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/d2d1/../../../wine-source/dlls/d2d1/factory.c:621: undefined reference to `sincosf'
collect2: error: ld returned 1 exit status
winegcc: x86_64-w64-mingw32-gcc failed
make[1]: *** [Makefile:1028: d2d1.dll] Error 2
make[1]: Leaving directory '/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/d2d1'
make: *** [Makefile:9209: dlls/d2d1] Error 2
make  228.59s user 25.87s system 99% cpu 4:14.51 total
Could you please tell me how to apply the backported commit patch (wine-4.6-msvcrt_add_sincos_to_importlib.patch) to the mingw build of wine-5.0.1? Any help would be greatly appreciated. Thanks! :)
sh1sh1n11
Newbie
Newbie
Posts: 3
Joined: Tue Dec 28, 2021 2:18 pm

Re: Strange compilation error with wine-staging 5.0

Post by sh1sh1n11 »

Okay, so I learned a little bit about the ".patch" file type, and understood that it was comparing two files using the diff command, and then applying the changes to the original files; thus "patching" them. Sadly, I couldn't get the command to work, but I understood what was going on. So I patched every file manually, and created a new sincos.c file in the appropriate directory.

This time around, the make command ran or 34 minutes, instead of 4 minutes as before. Below is the output of where it failed this time around.

Code: Select all

make[1]: Entering directory '/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/wldap32'
gcc -m64 -c -o add.o ../../../wine-source/dlls/wldap32/add.c -I. -I../../../wine-source/dlls/wldap32 \
  -I../../include -I../../../wine-source/include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \
  -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement \
  -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes \
  -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
  -gdwarf-2 -gstrict-dwarf -g -O2
In file included from ../../../wine-source/dlls/wldap32/add.c:33:
../../../wine-source/dlls/wldap32/winldap_private.h:308:13: error: conflicting types for ‘ldap_connect’; have ‘ULONG(WLDAP32_LDAP *, LDAP_TIMEVAL *)’ {aka ‘unsigned int(struct ldap *, struct l_timeval *)’}
  308 | ULONG CDECL ldap_connect(WLDAP32_LDAP*,LDAP_TIMEVAL*);
      |             ^~~~~~~~~~~~
In file included from ../../../wine-source/dlls/wldap32/add.c:26:
/usr/include/ldap.h:1555:1: note: previous declaration of ‘ldap_connect’ with type ‘int(LDAP *)’ {aka ‘int(struct ldap *)’}
 1555 | ldap_connect( LDAP *ld );
      | ^~~~~~~~~~~~
In file included from ../../../wine-source/dlls/wldap32/add.c:35:
../../../wine-source/include/wine/debug.h:493:48: warning: ‘__wine_dbch___default’ defined but not used [-Wunused-const-variable=]
  493 |     static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch
      |                                                ^~~~~~~~~~~~~~~~~~~~~
../../../wine-source/dlls/wldap32/add.c:37:1: note: in expansion of macro ‘WINE_DEFAULT_DEBUG_CHANNEL’
   37 | WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:201: add.o] Error 1
make[1]: Leaving directory '/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/wldap32'
make: *** [Makefile:9209: dlls/wldap32] Error 2
make  1960.02s user 119.75s system 99% cpu 34:51.60 total

Seems to be something to do with 'conflicting types for ‘ldap_connect'. Would you be so kind and point me in the right direction here. Thanks much!
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Strange compilation error with wine-staging 5.0

Post by Bob Wya »

sh1sh1n11 wrote: Wed Dec 29, 2021 4:09 am Okay, so I learned a little bit about the ".patch" file type, and understood that it was comparing two files using the diff command, and then applying the changes to the original files; thus "patching" them. Sadly, I couldn't get the command to work, but I understood what was going on. So I patched every file manually, and created a new sincos.c file in the appropriate directory.
...

Code: Select all

make[1]: Entering directory '/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/wldap32'
gcc -m64 -c -o add.o ../../../wine-source/dlls/wldap32/add.c -I. -I../../../wine-source/dlls/wldap32 \
  -I../../include -I../../../wine-source/include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \
  -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement \
  -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes \
  -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
  -gdwarf-2 -gstrict-dwarf -g -O2
In file included from ../../../wine-source/dlls/wldap32/add.c:33:
../../../wine-source/dlls/wldap32/winldap_private.h:308:13: error: conflicting types for ‘ldap_connect’; have ‘ULONG(WLDAP32_LDAP *, LDAP_TIMEVAL *)’ {aka ‘unsigned int(struct ldap *, struct l_timeval *)’}
  308 | ULONG CDECL ldap_connect(WLDAP32_LDAP*,LDAP_TIMEVAL*);
      |             ^~~~~~~~~~~~
In file included from ../../../wine-source/dlls/wldap32/add.c:26:
/usr/include/ldap.h:1555:1: note: previous declaration of ‘ldap_connect’ with type ‘int(LDAP *)’ {aka ‘int(struct ldap *)’}
 1555 | ldap_connect( LDAP *ld );
      | ^~~~~~~~~~~~
In file included from ../../../wine-source/dlls/wldap32/add.c:35:
../../../wine-source/include/wine/debug.h:493:48: warning: ‘__wine_dbch___default’ defined but not used [-Wunused-const-variable=]
  493 |     static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch
      |                                                ^~~~~~~~~~~~~~~~~~~~~
../../../wine-source/dlls/wldap32/add.c:37:1: note: in expansion of macro ‘WINE_DEFAULT_DEBUG_CHANNEL’
   37 | WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:201: add.o] Error 1
make[1]: Leaving directory '/run/media/shashank/storage/Downloads/wine-5.0.1/wine64-build/dlls/wldap32'
make: *** [Makefile:9209: dlls/wldap32] Error 2
make  1960.02s user 119.75s system 99% cpu 34:51.60 total

Seems to be something to do with 'conflicting types for ‘ldap_connect'. Would you be so kind and point me in the right direction here. Thanks much!
@sh1sh1n11

This is probably related to: Bug 51129 - Function name conflict (ldap_connect) with OpenLDAP 2.5

In which the attached - patch - might help! For non-PE / non-mingw builds.

What Linux Distribution are you building on?

If it's Arch Linux - then it's much easier to just build a custom wine or wine-staging PKGBUILD.
It's easy enough to add in some patch lines to the PKGBUILD.
Versus manually building Wine from source.

Bob
sh1sh1n11
Newbie
Newbie
Posts: 3
Joined: Tue Dec 28, 2021 2:18 pm

Re: Strange compilation error with wine-staging 5.0

Post by sh1sh1n11 »

Thank you very much @Bob! That’s exactly what I needed! And yes, I’m on Arch. I did however use the patch you pointed me to instead. I’ll keep the PKGBUILD route in mind for the next time. Thank you so much once again and have a great rest of the week and a happy new year! :)
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Strange compilation error with wine-staging 5.0

Post by Bob Wya »

Same to you... Happy to help out! 8)
Locked