android-ndk-6b

Thomas Senyk thomas.senyk at nokia.com
Fri Sep 16 11:48:30 UTC 2011


On Friday, September 16, 2011 01:29:13 PM Thomas Senyk wrote:
> 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.
typo, I meant: It also builds for android-8 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


More information about the Necessitas-devel mailing list