dbus-1.1.4 compilation scratchbox gcc-3.4.6 ARM9 toolchain

Trilok Soni soni.trilok at gmail.com
Fri Feb 15 06:23:20 PST 2008


Hi All,

I am trying to cross compile dbus-1.1.4 with scratchbox and gcc-3.4.6
based ARM9 toolchain. I am getting the following error while linking
dbus-daemon I think:

<sbox> # gcc -v
Reading specs from
/scratchbox/compilers/ing07ctgcc3.4-glibc2.3.6-arm/bin/../lib/gcc/arm-linux/3.4.6/specs
Reading specs from /scratchbox/compilers/ing07ctgcc3.4-glibc2.3.6-arm/gcc.specs
rename spec cpp to old_cpp
Configured with:
/home/jose/crosstool/build/crosstool-0.42/build/arm-linux/gcc-3.4.6-glibc-2.3.6/gcc-3.4.6/configure
--target=arm-linux --host=i686-host_pc-linux-gnu
--prefix=/opt/ingenient/toolchain-arm9/gcc-3.4.6-glibc-2.3.6/arm-linux
--with-cpu=arm926ejs --enable-cxx-flags=-mcpu=arm926ejs
--with-headers=/opt/ingenient/toolchain-arm9/gcc-3.4.6-glibc-2.3.6/arm-linux/arm-linux/include
--with-local-prefix=/opt/ingenient/toolchain-arm9/gcc-3.4.6-glibc-2.3.6/arm-linux/arm-linux
--disable-nls --enable-threads=posix --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
--enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.6


<sbox># ./configure --prefix=/usr --disable-xml-docs
--disable-doxygen-docs --without-x --localstatedir=/tmp
--enable-verbose-mode
             # make

<snip...>
          /bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -Wdeclaration-after-statement -fno-common -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
gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
-Wfloat-equal -Wsign-compare -Wdeclaration-after-statement -fno-common
-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/lib/libexpat.so ../dbus/.libs/libdbus-convenience.a
/scratchbox/compilers/ing07ctgcc3.4-glibc2.3.6-arm/bin/../lib/gcc/arm-linux/3.4.6/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oST):
In function `__libc_csu_init':
elf-init.c:(.text+0x54): undefined reference to `__init_array_start'
elf-init.c:(.text+0x58): undefined reference to `__init_array_end'
/scratchbox/compilers/ing07ctgcc3.4-glibc2.3.6-arm/bin/../lib/gcc/arm-linux/3.4.6/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oST):
In function `__libc_csu_fini':
elf-init.c:(.text+0xa8): undefined reference to `__fini_array_start'
elf-init.c:(.text+0xac): undefined reference to `__fini_array_end'
collect2: ld returned 1 exit status
make[2]: *** [dbus-daemon] Error 1


Anybody having some clue? This looks like some gcc option side-effect
for libraries?

-- 
--Trilok Soni


More information about the dbus mailing list