Bug 6992 - Check for working getgrouplist breaks cross compilation.
Summary: Check for working getgrouplist breaks cross compilation.
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Build environment (show other bugs)
Version: unspecified
Hardware: All Linux
: P3 minor
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2009-12-16 12:17 UTC by Jonas Gorski
Modified: 2009-12-17 05:15 UTC (History)
0 users

See Also:

Make the test cachable (905 bytes, patch)
2009-12-16 12:21 UTC, Jonas Gorski
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Gorski 2009-12-16 12:17:53 UTC
The configure script tries to compile and run a program to get the glibc version, when compiling for linux. Obviously this fails when cross compiling.
This applies to 3.4 and 3.5 (and current master).
Comment 1 Jonas Gorski 2009-12-16 12:21:51 UTC
Created attachment 5092 [details]
Make the test cachable

This patch makes the check cachable and introduces the paramter samba_cv_linux_getgrouplist_ok=yes|no, which can be supplied to the configure script to override the check.

I did successfully generate a configure-script with it and checked for all three that it was set correctly (supplied with yes, no, and not supplied).
Comment 2 Volker Lendecke 2009-12-17 04:39:18 UTC
Thanks. Pushed the patch. Will be in 3.5.

Comment 3 Björn Jacke 2009-12-17 05:15:13 UTC
closing bug, accordingly...