[fdo] error on cross compiling libdbus

hong zhang henryzhang62 at yahoo.com
Tue Aug 7 17:53:03 PDT 2007


List,

I want to cross compiling libdbus for arm processor
with Montavista toolchain. But I went into error.
Says,

checking for posix getpwnam_r... configure: error:
cannot run test program while cross compiling

Commmand I use is 

configure --host=arm-linux
--prefix=/root/Desktop/bluez-3.13/dbus-glib-0.72
CC=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc
AR=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-ar
STRIP=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-strip
RANLIB=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-ranlib
LD=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-ld

Following is result.

checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip...
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-strip
checking whether to enable maintainer-specific
portions of Makefiles... no
checking for arm-linux-gcc...
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc
checking for C compiler default output file name...
a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler...
yes
checking whether
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc
accepts -g... yes
checking for
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc
option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc...
gcc3
checking for arm-linux-g++... no
checking for arm-linux-c++... no
checking for arm-linux-gpp... no
checking for arm-linux-aCC... no
checking for arm-linux-CC... no
checking for arm-linux-cxx... no
checking for arm-linux-cc++... no
checking for arm-linux-cl... no
checking for arm-linux-FCC... no
checking for arm-linux-KCC... no
checking for arm-linux-RCC... no
checking for arm-linux-xlC_r... no
checking for arm-linux-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler...
yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for library containing strerror... none
required
checking how to run the C preprocessor...
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc
-E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether gcc understands -Wfloat-equal... yes
checking for a sed that does not truncate output...
/bin/sed
checking for ld used by
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-gcc...
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-ld
checking if the linker
(/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-ld)
is GNU ld... yes
checking for
/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-ld
option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependent libraries...
pass_all
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
......
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for vsnprintf... yes
checking for vasprintf... yes
checking for nanosleep... yes
checking for usleep... yes
checking for poll... yes
checking for setenv... yes
checking for unsetenv... yes
checking for socketpair... yes
checking for getgrouplist... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for backtrace... yes
checking for posix getpwnam_r... configure: error:
cannot run test program while cross compiling
See `config.log' for more details.

Thanks.

-----henry



       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  


More information about the freedesktop mailing list