Bug 7320 - build fails because lib/nss_wrapper/testsuite.c doesnt honour HAVE_GETGROUPLIST
Summary: build fails because lib/nss_wrapper/testsuite.c doesnt honour HAVE_GETGROUPLIST
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: Other Solaris
: P3 normal (vote)
Target Milestone: ---
Assignee: Andrew Tridgell
QA Contact: samba4-qa@samba.org
Depends on:
Reported: 2010-04-01 15:44 UTC by Bernd Markgraf
Modified: 2013-02-18 13:30 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Markgraf 2010-04-01 15:44:59 UTC
linking smbtorture fails:
Linking bin/smbtorture
Undefined			first referenced
 symbol  			    in file
getgrouplist                        bin/mergedobj/torture_local.o
ld: fatal: symbol referencing errors. No output written to bin/smbtorture
collect2: ld returned 1 exit status

nss_wrapper.c has
#define getgrouplist(user, group, groups, ngroups)	0

testsuite.c is missing that check and fails because Solaris has no getgrouplist.
why don't we use the getgrouplist_internals function from ./source3/lib/system_smbd.c when getgrouplist isn't available on the target?
Comment 1 Matthias Dieter Wallnöfer 2010-04-06 05:05:33 UTC
Tridge, please fix them when you are able to do so.
Comment 2 Matthias Dieter Wallnöfer 2010-05-03 10:32:35 UTC
Do you face the problems also on the new WAF-based buildsystem? Since the old autoconf-based system will not be maintained anymore.
Comment 3 Matthias Dieter Wallnöfer 2010-05-30 04:15:39 UTC
This should be fixed now. The problem was when you didn't compile this with the NSS wrapper headers the build used the system headers.