Issue While cross-compiling Dbus

Afzal Nadirshah Afzal_Nadirshah at mindtree.com
Tue Mar 31 05:41:56 PDT 2009


Hi All,

       I am trying to cross compile Dbus for DM6467. I have downloaded Dbus version dbus-1.2.3.
       I have done the following steps:

1. ./configure CC=arm_v5t_le-gcc  CXX=arm_v5t_le-g++ AR=arm_v5t_le-ar STRIP=arm_v5t_le-strip RANLIB=arm_v5t_le-ranlib LD=arm_v5t_le-ld -host=i386-linux -target=arm-linux

I hope i have given the right options for cross compiling for DM6467. This command seems to work fine.

2. But when I execute "make" I get the following error after a lot of statements are printed.


-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -Wdeclaration-after-statement -fno-common -Wl,--gc-sections  -pie -Wl,-z,relro  -o dbus-daemon activation.o bus.o config-parser.o config-parser-common.o connection.o desktop-file.o dir-watch-dnotify.o dispatch.o driver.o expirelist.o policy.o selinux.o services.o signals.o test.o utils.o config-loader-expat.o main.o  -lexpat     ../dbus/libdbus-convenience.la
arm_v5t_le-gcc -ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -Wdeclaration-after-statement -fno-common -Wl,--gc-sections -pie -Wl,-z -Wl,relro -o dbus-daemon activation.o bus.o config-parser.o config-parser-common.o connection.o desktop-file.o dir-watch-dnotify.o dispatch.o driver.o expirelist.o policy.o selinux.o services.o signals.o test.o utils.o config-loader-expat.o main.o  /usr/local/lib/libexpat.so ../dbus/.libs/libdbus-convenience.a   -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: Warning: gc-sections option ignored
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x58): In function `__libc_csu_init':
elf-init.c: undefined reference to `__init_array_start'
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x5c):elf-init.c: undefined reference to `__init_array_end'
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0xa8): In function `__libc_csu_fini':
elf-init.c: undefined reference to `__fini_array_start'
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/lib/libc_nonshared.a(elf-init.oS)(.text+0xac):elf-init.c: undefined reference to `__fini_array_end'
collect2: ld returned 1 exit status
make[2]: *** [dbus-daemon] Error 1
make[2]: Leaving directory `/usr/priya/dbus-1.2.3/bus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/priya/dbus-1.2.3'
make: *** [all] Error 2

What should I do to avoid this??
Thanks in advance.

Regards,
Afzal Nadirshah


________________________________
http://www.mindtree.com/email/disclaimer.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20090331/698b5941/attachment.htm 


More information about the dbus mailing list