Created attachment 16258 [details]
Patch to fix compilation with --without-winexe
Dear Ladies and Gentlemen,
I'd like to bring the following gentoo bug to your attention which is
obviously an upstream problem:
There is a patch attached to that bug report, which is an easy fix
I attach it here again for your reference.
Also, here is the text of the bug report:
It seems that in May, patch samba-4.13-winexe_option.patch was added allowing to disable winexe, and the ebuild passes --without-winexe to configure. This added an "enabled=bld.env.build_winexe" option to bld.SAMBA3_BINARY(), apparently in an attempt to not build that binary when --without-winexe is configured.
However, on my system having both bld.env.WINEXE_CC_WIN32 and bld.env.WINEXE_CC_WIN64 (i.e., both i686-w64-mingw32-10.1.0 and x86_64-w64-mingw32-10.1.0 available in gcc-config -l), the build fails trying to build winexesvc32_exe. In the attached patch (to be applied on top of samba-4.13-winexe_option.patch), I only add build rules at all if bld.env.build_winexe is set. This allows samba to compile.
Thanks and best regards,
Seems to be fixed somewhere >=samba-4.14.1