Bug 13897 - samba-4.9.0 --nonshared-binary=smbpasswd failure by rep_closefrom
samba-4.9.0 --nonshared-binary=smbpasswd failure by rep_closefrom
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
4.9.0
All All
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-04-15 01:30 UTC by Jones Syue
Modified: 2019-04-16 07:24 UTC (History)
2 users (show)

See Also:


Attachments
Patch source4/heimdal_build/config.h (1.31 KB, application/mbox)
2019-04-15 01:30 UTC, Jones Syue
no flags Details
Patch source4/heimdal_build/config.h and roken.in.h (2.48 KB, application/mbox)
2019-04-15 01:33 UTC, Jones Syue
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jones Syue 2019-04-15 01:30:06 UTC
Created attachment 15061 [details]
Patch source4/heimdal_build/config.h

Hello list,

This patch fix --nonshared-binary=smbpasswd failure by rep_closefrom,
looks like 3a7ebd0e940e80b185a9240c093e1fee6795fd5b introduced it from samba-4.9.0 and later,
please help review and push, thank you.

logs:
[1727/1727] Linking default/source3/utils/smbpasswd
default/source4/heimdal/lib/roken/closefrom_1.o: In function `rep_closefrom':
closefrom.c:(.text+0x0): multiple definition of `rep_closefrom'
default/lib/replace/closefrom_2.o:closefrom.c:(.text+0x26f): first defined here
collect2: error: ld returned 1 exit status

build steps:
./configure --without-ad-dc --without-json --without-libarchive --without-acl-support --without-ldap --without-ads --without-pam --nonshared-binary="smbpasswd"; \
make smbpasswd

build failed:
samba-4.10.2
samba-4.10.0
samba-4.9.6
samba-4.9.0

build passed:
samba-4.8.11
Comment 1 Jones Syue 2019-04-15 01:33:22 UTC
Created attachment 15062 [details]
Patch source4/heimdal_build/config.h and roken.in.h

This v2.patch will change roken.in.h which is came from upstream Heimdal,
hence might not a good idea.