Package: libbson
Version: 1.6.1-1
Severity: important
Tags: sid
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch

Hello,

Package libbson_1.6.1-1 FTBFS on mips and mipsel with following error:

> /bin/bash ./libtool  --tag=CC   --mode=link gcc  -g -O2 
> -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat 
> -Werror=format-security -O2 -g  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o 
> test-libbson tests/test_libbson-TestSuite.o tests/test_libbson-test-libbson.o 
> tests/test_libbson-test-atomic.o tests/test_libbson-test-bson.o 
> tests/test_libbson-test-endian.o tests/test_libbson-test-clock.o 
> tests/test_libbson-test-decimal128.o tests/test_libbson-test-error.o 
> tests/test_libbson-test-iso8601.o tests/test_libbson-test-iter.o 
> tests/test_libbson-test-json.o tests/test_libbson-test-oid.o 
> tests/test_libbson-test-reader.o tests/test_libbson-test-string.o 
> tests/test_libbson-test-type.o tests/test_libbson-test-utf8.o 
> tests/test_libbson-test-value.o tests/test_libbson-test-version.o 
> tests/test_libbson-test-writer.o tests/test_libbson-test-bcon-basic.o 
> tests/test_libbson-test-bcon-extract.o tests/test_libbson-json-test.o  
> libbson-1.0.la libbson.la -latomic 
> libtool: link: gcc -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. 
> -fstack-protector-strong -Wformat -Werror=format-security -O2 -g -Wl,-z 
> -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/test-libbson 
> tests/test_libbson-TestSuite.o tests/test_libbson-test-libbson.o 
> tests/test_libbson-test-atomic.o tests/test_libbson-test-bson.o 
> tests/test_libbson-test-endian.o tests/test_libbson-test-clock.o 
> tests/test_libbson-test-decimal128.o tests/test_libbson-test-error.o 
> tests/test_libbson-test-iso8601.o tests/test_libbson-test-iter.o 
> tests/test_libbson-test-json.o tests/test_libbson-test-oid.o 
> tests/test_libbson-test-reader.o tests/test_libbson-test-string.o 
> tests/test_libbson-test-type.o tests/test_libbson-test-utf8.o 
> tests/test_libbson-test-value.o tests/test_libbson-test-version.o 
> tests/test_libbson-test-writer.o tests/test_libbson-test-bcon-basic.o 
> tests/test_libbson-test-bcon-extract.o tests/test_libbson-json-test.o  
> ./.libs/libbson-1.0.so ./.libs/libbson.a -latomic -pthread
> tests/test_libbson-test-atomic.o: In function `test2':
> ./tests/test-atomic.c:38: undefined reference to `__sync_add_and_fetch_8'
> ./tests/test-atomic.c:38: undefined reference to `__sync_add_and_fetch_8'
> collect2: error: ld returned 1 exit status
> Makefile:1238: recipe for target 'test-libbson' failed
> make[2]: *** [test-libbson] Error 1
> make[2]: Leaving directory '/«PKGBUILDDIR»'
> dh_auto_build: make -j1 returned exit code 2
> debian/rules:30: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 2


I suggested '0002_use_libatomic.patch' patch for bug #832747 to resolve symbols 
mismatching.
>From version 1.5.4-1, symbols file was removed and there is no need for this 
>patch.

When patch 0002_use_libatomic.patch is removed, build successfully passes for 
mips and mipsel.


Regards,
Radovan

Reply via email to