[Samba] configure for ARM Linux

stanliao stanliao at jmicron.com
Tue Aug 12 06:54:10 GMT 2008


Hi, all,

 

Samba version 3.2.1 tar ball is downloaded. Next, I'm facing how to
configure it for ARM Linux, but it's not so smooth for me. : (

The following is my environment information:

1. Development environment : Linux PC

2. Cross compiler : scratchbox/compilers/arm-gcc3.4-uclibc0.9.28

3. Configure options : (almost of them are googled)

  $ ./configure --without-krb5 --without-ldap --without-ads --disable-cups
--without-swat --host=i686 --target=arm-linux
--prefix=/home/stanliao/work1/lsp/ap-util/install/etc/samba
--exec-prefix=/home/stanliao/work1/lsp/ap-util/install
CC=/opt/crosstool/scratchbox/compilers/arm-gcc3.4-uclibc0.9.28/bin/sbox-arm-
linux-uclibc-gcc
AR=/opt/crosstool/scratchbox/compilers/arm-gcc3.4-uclibc0.9.28/bin/sbox-arm-
linux-uclibc-ar
LD=/opt/crosstool/scratchbox/compilers/arm-gcc3.4-uclibc0.9.28/bin/sbox-arm-
linux-uclibc-ld
LDFLAGS=-L/opt/crosstool/scratchbox/compilers/arm-gcc3.4-uclibc0.9.28/lib
CPPFLAGS=-I/opt/crosstool/scratchbox/compilers/arm-gcc3.4-uclibc0.9.28/inclu
de -verbose

 

However, configuration fails with the following message:

checking that the C compiler understands negative enum values... configure:
error: cannot run test program while cross compiling

 

1.      Would anyone guide me where to find the information "how to
configure/cross compile Samba"?    or

2.      Would anyone teach what's wrong with my configuration options?

3.      Is it possible to add one chapter or illustrate one example in the
doc teaching how to cross compile Samba? (I suppose it can reduce "google"
effort.)

 

Best Regards,

Stan Liao



More information about the samba mailing list