[Samba] Cross-compile and directory locations

Gilles gilles.ganault at free.fr
Tue Aug 9 04:09:03 MDT 2011


On Tue, 09 Aug 2011 00:32:24 +0200, Gilles <gilles.ganault at free.fr>
wrote:
>I untarred the tarball. What parameters should I pass to autogen.sh
>before calling configure so that cross-compiling works OK?

I went ahead and used the following commands to run autogen.sh and
configure:
===========
/usr/src/samba-3.5.11/source3# CC=bfin-linux-uclibc-gcc
CFLAGS="-I/usr/src/uClinux-dist-2010R1-RC5/linux-2.6.x/include"
./autogen.sh --build=i686-pc-linux --host=bfin-linux-uclibc

./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'include/version.h' created for Samba("3.5.11")
./autogen.sh: running autoheader -Im4 -I../m4 -I../lib/replace
-I../source4
samba4.m4:6: warning: file `../m4/check_python.m4' included several
times
samba4.m4:83: warning: file `../lib/tdb/libtdb.m4' included several
times
../source4/build/m4/public.m4:70: SMB_EXT_LIB_FROM_PKGCONFIG is
expanded from...
samba4.m4:83: the top level
../lib/tevent/samba.m4:3: warning: file `../lib/tevent/libtevent.m4'
included several times
../lib/tevent/samba.m4:3: the top level
./autogen.sh: running autoconf -Im4 -I../m4 -I../lib/replace
-I../source4
samba4.m4:6: warning: file `../m4/check_python.m4' included several
times
samba4.m4:83: warning: file `../lib/tdb/libtdb.m4' included several
times
../source4/build/m4/public.m4:70: SMB_EXT_LIB_FROM_PKGCONFIG is
expanded from...
samba4.m4:83: the top level
../lib/tevent/samba.m4:3: warning: file `../lib/tevent/libtevent.m4'
included several times
../lib/tevent/samba.m4:3: the top level
Now run ./configure (or ./configure.developer) and then make.
===========
/usr/src/samba-3.5.11/source3# CC=bfin-linux-uclibc-gcc
CFLAGS="-I/usr/src/uClinux-dist-2010R1-RC5/linux-2.6.x/include
-I./include" ./configure --build=i686-pc-linux
--host=bfin-linux-uclibc

...

checking that the C compiler understands negative enum values...
configure: error: in `/usr/src/samba-3.5.11/source3':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
===========

Any idea what is causing "configure" to fail?

Thank you.



More information about the samba mailing list