Control: clone -1 -2
Control: reassign -2 android-libutils 21-1
Control: retitle -2 android-libutils: undefined references in 
/usr/lib/android/libutils.so
Control: block -1 by -2

Lucas Nussbaum <lu...@lucas-nussbaum.net> (2014-11-12):
> Source: android-platform-build
> Version: 21-2
> Severity: serious
> Tags: jessie sid
> User: debian...@lists.debian.org
> Usertags: qa-ftbfs-20141112 qa-ftbfs
> Justification: FTBFS in jessie on i386
> 
> Hi,
> 
> During a rebuild of all packages in jessie (in a jessie chroot, not a
> sid chroot), your package failed to build on i386.
> 
> Relevant part (hopefully):
> > g++ -fPIC -Wl,-rpath=/usr/lib/android -Wl,-z,relro -o zipalign ZipAlign.o 
> > ZipEntry.o ZipFile.o -lz -lpthread -L/usr/lib/android -llog -lutils 
> > -lcutils 
> > /usr/lib/android/libutils.so: undefined reference to `android_atomic_or'
> > /usr/lib/android/libutils.so: undefined reference to `android_atomic_dec'
> > /usr/lib/android/libutils.so: undefined reference to `android_atomic_inc'
> > /usr/lib/android/libutils.so: undefined reference to 
> > `android_atomic_release_cas'
> > /usr/lib/android/libutils.so: undefined reference to `android_atomic_add'
> > collect2: error: ld returned 1 exit status

Looking at the contents of the android-libutils package one can see a
.so and a .a; the .so contains undefined references to various
android_atomic_* things, which don't seem to be available anywhere in
the dependencies declared either at the ELF level or in the package
dependencies:
| $ nm -D /usr/lib/android/libutils.so|grep android_atomic_
|          U android_atomic_add
|          U android_atomic_dec
|          U android_atomic_inc
|          U android_atomic_or
|          U android_atomic_release_cas

Furthermore it looks like ELF dependencies contain more entries than
what would be available if only the package dependencies would be
installed:
| $ objdump -x /usr/lib/android/libutils.so|grep NEEDED
|   NEEDED               librt.so.1
|   NEEDED               libdl.so.2
|   NEEDED               libz.so.1
|   NEEDED               libpthread.so.0
|   NEEDED               libcutils.so
|   NEEDED               liblog.so
|   NEEDED               libstdc++.so.6
|   NEEDED               libm.so.6
|   NEEDED               libgcc_s.so.1
|   NEEDED               libc.so.6

found in the following packages:
| $ dpkg -S libcutils.so liblog.so
| android-libcutils: /usr/lib/android/libcutils.so
| android-liblog: /usr/lib/android/liblog.so

as opposed to declared dependencies:
| $ apt-cache show android-libutils|grep Depends
| Depends: libc6 (>= 2.7), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), zlib1g 
(>= 1:1.1.4)

therefore doing the clone/reassign/retitle/block dance.

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature

Reply via email to