[Samba] Re: failed to cross compile 3.0.7

youren wu wuyouren2004 at yahoo.com
Mon Oct 25 16:47:25 GMT 2004


I checked the "configure" executable file, and figured
that when I cross compile 3.0.7 for mips, it breaks
out  at the following lines in "configure":

=======================================================
case "$host_os" in
    *linux*)
       # glibc <= 2.3.2 has a broken getgrouplist
       if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test
program while cross compiling" >&5
echo "$as_me: error: cannot run test program while
cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

#include <unistd.h>
#include <sys/utsname.h>
main() {
       /* glibc up to 2.3 has a broken getgrouplist */
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
       int libc_major = __GLIBC__;
       int libc_minor = __GLIBC_MINOR__;

       if (libc_major < 2)
              exit(1);
       if ((libc_major == 2) && (libc_minor <= 3))
              exit(1);
#endif
       exit(0);
}
======================================================

My understanding is that this is used to check the
glibc version by running a test program.  However when
cross compiling, most time you won't be able to run
this test during the configuration, so my question is:
does 3.0.7 not meant to be cross compiling? Or maybe I
misunderstood something.

Thanks

Youren

 
--- youren wu <wuyouren2004 at yahoo.com> wrote:

> Hi, All,
> 
> 
> I try to crosee compile 3.0.7 for mips, but failed
> and
> got the following message:
> 
> Configure: error: cannot run test program while
> cross
> compiling
> 
> Can anybody give me a hint about what I did may be
> wrong?
> 
> Thanks
> 
> Youren
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> 



		



More information about the samba mailing list