mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
f31333d40e
If Samba was configured with "--nonshared-binary=winexe" to build winexe as a static binary, and the replacement closefrom() function was used (which is default on most GNU/Linux systems without the libbsd development package installed), then winexe would fail to link with the error message shown below. [2631/3059] Linking bin/default/examples/winexe/winexe source4/heimdal/lib/roken/closefrom.c.1.o: In function `rep_closefrom': closefrom.c:(.text+0x0): multiple definition of `rep_closefrom' lib/replace/closefrom.c.2.o:closefrom.c:(.text+0x292): first defined here collect2: error: ld returned 1 exit status The real problem here was not with the winexe build itself - that was merely the application that I was attempting to build statically when I encountered it. As Andrew Bartlett very helpfully pointed out to me, this regression was introduced when "lib/replace/closefrom.c" was added in commit |
||
---|---|---|
.. | ||
krb5 | ||
asn1_compile_wrapper.sh | ||
config.h | ||
crypto-headers.h | ||
et_compile_wrapper.sh | ||
gssapi-glue.c | ||
hdb-glue.c | ||
ifaddrs.hin | ||
kafs.h | ||
krb5-glue.c | ||
krb5-types.h | ||
lexyacc.sh | ||
perl_path_wrapper.sh | ||
print_version.h | ||
replace.c | ||
roken.h | ||
version.c | ||
vis.h | ||
wscript_build | ||
wscript_configure |