android-ndk-6b

Thomas Senyk thomas.senyk at nokia.com
Fri Sep 16 11:29:13 UTC 2011


Hi Ray,

i tried to compile for android-9 on android-ndk-6b but had a couple of 
multiple-definitions

/home/tsenyk/projects/android/android-ndk-r6b/platforms/android-9/arch-
arm//usr/lib/crtbegin_so.o: In function `__dso_handle':
(.bss+0x0): multiple definition of `__dso_handle'
/home/tsenyk/projects/android/android-ndk-r6b/platforms/android-9/arch-
arm//usr/lib/crtbegin_so.o:(.bss+0x0): first defined here
/home/tsenyk/projects/android/android-ndk-r6b/platforms/android-9/arch-
arm//usr/lib/crtbegin_so.o: In function `__INIT_ARRAY__':
(.init_array+0x0): multiple definition of `__INIT_ARRAY__'
/home/tsenyk/projects/android/android-ndk-r6b/platforms/android-9/arch-
arm//usr/lib/crtbegin_so.o:(.init_array+0x0): first defined here
/home/tsenyk/projects/android/android-ndk-r6b/platforms/android-9/arch-
arm//usr/lib/crtbegin_so.o: In function `__FINI_ARRAY__':
(.fini_array+0x0): multiple definition of `__FINI_ARRAY__'
/home/tsenyk/projects/android/android-ndk-r6b/platforms/android-9/arch-
arm//usr/lib/crtbegin_so.o:(.fini_array+0x0): first defined here
collect2: ld returned 1 exit status



The same checkout is building with 6, so it's some difference in the NDK.
It also builds for android-9 with 6b.

So only the combination android-9 + ndk-6b is failing.

So I guessed it's in android-ndk-r6(b)/platforms/android-9/arch-arm/usr/lib/

I did a objdump -x on all file for each ndk and did a diff ... it's attached.
The only diff I can identify are regarding __dso_handle
.. maybe the rest is just follow-up error?

http://developer.android.com/sdk/ndk/index.html   .. mentions this for NDK-6b:
"Fixed the standalone toolchain linker warnings about missing the definition 
and size for the __dso_handle symbol (ARM only)."

This is somewhat in line with what I can read from the objdump .. but I got no 
idea how to fix it :)



Greets
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndk6_vs_ndk6b__android-9_arch-arm_usr_lib.diff
Type: text/x-patch
Size: 4432 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20110916/353f9ffb/attachment.diff>


More information about the Necessitas-devel mailing list