There is no way to get around the check for the required getaddrinfo() replacement that was added for bug 5910 (according to configure comments). Using libreplace_cv_HAVE_GETADDRINFO=yes gets past the first check for a system where getaddrinfo is correct (most any relatively new system is fine) but the extra check ignores this preset value I commented out the abort and Samba 3.6 now compiles (and runs with one more hack!) on OpenWRT
Can you attach a patch for this so I can understand exactly what you're proposing here ? Thanks ! Jeremy.
My workaround was just to comment out the cross-compile restriction, so it isn't a full patch. It does show the problem code though *** samba-3.6.0.orig/source3/configure 2011-08-25 15:24:07.989937998 -0700 --- samba-3.6.0/source3/configure 2011-08-25 15:29:02.737899252 -0700 *************** *** 13269,13278 **** # see bug 5910, use our replacements if we detect # a broken system. if test "$cross_compiling" = yes; then : ! { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ! $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ! as_fn_error "cannot run test program while cross compiling ! See \`config.log' for more details." "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ --- 13269,13275 ---- # see bug 5910, use our replacements if we detect # a broken system. if test "$cross_compiling" = yes; then : ! $as_echo "assuming valid getaddrinfo without bug 5910" >&2 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */
Created attachment 6876 [details] Patch to remove cross-compile check