[PATCH] s4:heimdal_build: fix --nonshared-binary=smbpasswd failure by rep_closefrom

Jones Syue jonessyue at qnap.com
Fri Apr 12 00:56:15 UTC 2019


Hello Metze,

Can you check if removing this from source4/heimdal_build/wscript_build
> also fixes the problem:
>     if not bld.CONFIG_SET('HAVE_CLOSEFROM'):
>         ROKEN_HOSTCC_SOURCE += '''
>             lib/roken/closefrom.c
>         '''


Thank you for kindly feedback,
removing this from source4/heimdal_build/wsript_build lead to asn1_compile
failure,
including samba-4.10.2, samba-4.10.0, and samba-4.9.6,
logs:
[240/241] Linking bin/default/source4/heimdal_build/asn1_compile
source4/heimdal/lib/roken/simple_exec.c.3.o: In function `rk_pipe_execv':
simple_exec.c:(.text+0x44b): undefined reference to `rep_closefrom'
collect2: error: ld returned 1 exit status

--
Regards,
Jones Syue | 薛懷宗
QNAP Systems, Inc.


More information about the samba-technical mailing list