samba cross compiling

James Peach jpeach at samba.org
Wed Mar 28 20:39:57 GMT 2007


On Mar 28, 2007, at 8:44 AM, mokhtar wrote:

>
> Hi
>
> I need to build samba on a board with mips processor
>
> so I executed configures with theses options ( samba-3.0.24)
>
> ./configure --with-sendfile-support --without-winbind CC=mips-linux- 
> gcc
> CPP=mips-linux-cpp --host=mips-linux
>
> I got a warning
>
> configure: WARNING: If you wanted to set the --build type, don't use  
> --host.

Remove --host=mips-linux from the configure line.

>
>    If a cross compiler is detected then cross compile mode will be  
> used.
> SAMBA VERSION: 3.0.24
>
> and an error
> checking for prctl... yes
> configure: error: cannot run test program while cross compiling

You'll need to create a config.site file to preload the results of all  
the tests that require an AC_TRY_RUN.

--
James Peach | jpeach at samba.org



More information about the samba-technical mailing list