From: Martin Zielinski on
Hello,

change this in your configure line:
--host=i686 --target=arm-linux

This fixes your error (remove the --build=...).

BTW: I pre-set the following variables:

export samba_cv_HAVE_MEMORY_KEYTAB=set
export samba_cv_USE_SETEUID=set
export samba_cv_HAVE_WRFILE_KEYTAB=set
export ac_cv_path_KRB5_CONFIG=${KERBEROS}/tools/krb5-config
export ac_cv_path_CUPS_CONFIG=${CUPS}/cups-config

And fix the config.h:

CFG="include/config.h"
if test -f $CFG ; then
echo "#define HAVE_GETTIMEOFDAY_TZ 1" >> $CFG
echo "#define USE_SETEUID 1" >> $CFG
echo "#define HAVE_IFACE_IFCONF 1" >> $CFG
fi

If you need winbind, you might have to add the
nsswitch/winbind_nss_linux.o - object file to the
WINBIND_NSS_OBJ in the Makefile.

Mitch Trope schrieb:
> Hello all,
> I am attempting to cross-compile Samba 3.0.24 for the ARM
> platform using on an Ubuntu Dapper box using arm-linux-gcc 3.4.0. I
> am using the following script to call configure:
> #!/bin/bash
> ac_cv_func_prctl=no
> linux_getgrouplist_ok=no
> ./configure --without-krb5 --without-ldap --without-ads --disable-cups
> --without-swat --prefix=/home/tropem/samba-build --host=arm-linux
> --build=i386-linux
>
> The console error is:
> checking for __open64... yes
> checking for creat64... yes
> checking for prctl... yes
> configure: error: cannot run test program while cross compiling
> See `config.log' for more details.
[...]
> Thanks,
>
> Mitch Trope


Bye,
Martin

--
Martin Zielinski mz(a)seh.de
Software Development
SEH Computertechnik GmbH www.seh.de

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba