Configure fails on cross compile with "error: cannot run test program while cross compiling". The variable linux_getgrouplist_ok does not have a cache check, so it cannot be defined in site config(config.site) to avoid the error. Any cross compile host containing linux will have this problem. The following change to source/configure.in resolves this problem: *** configure.in.orig 2007-02-04 12:59:28.000000000 -0600 --- configure.in 2007-04-23 11:11:31.000000000 -0500 *************** *** 1403,1408 **** --- 1403,1409 ---- case "$host_os" in *linux*) # glibc <= 2.3.2 has a broken getgrouplist + AC_CACHE_CHECK([for broken getgrouplist],linux_getgrouplist_ok,[ AC_TRY_RUN([ #include <unistd.h> #include <sys/utsname.h> *************** *** 1419,1425 **** #endif exit(0); } ! ], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no]) if test x"$linux_getgrouplist_ok" = x"yes"; then AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist]) fi --- 1420,1426 ---- #endif exit(0); } ! ], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])]) if test x"$linux_getgrouplist_ok" = x"yes"; then AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist]) fi
Created attachment 2449
Created attachment 2453 [details] override override spam attachement
sure would be nice to get this added ...
Created attachment 4892 [details] samba-cached-getgrouplist.patch this patch is against latest git and uses the name samba_cv_linux_getgrouplist_ok to be consistent with other samba cache variables
The autoconf build system was replace by WAF with Samba 4.0 and has all new and different cross-compilation issues/support.