[pkg-firebird-general] Bug#567732: firebird2.5: FTBFS: src/common/utils.cpp:682: undefined reference to `AO_compare_and_swap_emulation'

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Sat Jan 30 23:20:59 UTC 2010


Source: firebird2.5
Version: 2.5.0.25784~ReleaseCandidate1.ds2-6
Severity: important
Tags: patch
User: debian-sh4 at superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh at lists.debian.org

Hi,

firebird2.5 FTBFS on SH4.
Because AO_compare_and_swap_emulation is necessary, sh4 has to link libatomic_ops.a

http://buildd.debian-ports.org/fetch.php?pkg=firebird2.5&arch=sh4&ver=2.5.0.25784~ReleaseCandidate1.ds2-6&stamp=1264775198&file=log&as=raw

-----
g++ -ggdb -O3 -DNDEBUG -DLINUX -pipe -MMD -fPIC -DFB_SEND_FLAGS=MSG_NOSIGNAL -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -pthread -g -O2   -DBOOT_BUILD  -fno-rtti -c ../src/common/classes/SafeArg.cpp -o ../temp/boot/common/classes/SafeArg.o
g++ -ggdb -O3 -DNDEBUG -DLINUX -pipe -MMD -fPIC -DFB_SEND_FLAGS=MSG_NOSIGNAL -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -pthread -g -O2   -DBOOT_BUILD  -fno-rtti -c ../src/common/classes/MsgPrint.cpp -o ../temp/boot/common/classes/MsgPrint.o
g++ -ggdb -O3 -DNDEBUG -DLINUX -pipe -MMD -fPIC -DFB_SEND_FLAGS=MSG_NOSIGNAL -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -pthread -g -O2   -DBOOT_BUILD  -fno-rtti -c ../src/common/classes/BaseStream.cpp -o ../temp/boot/common/classes/BaseStream.o
g++ -ggdb -O3 -DNDEBUG -DLINUX -pipe -MMD -fPIC -DFB_SEND_FLAGS=MSG_NOSIGNAL -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -pthread -g -O2   -DBOOT_BUILD  -fno-rtti -c ../src/common/cvt.cpp -o ../temp/boot/common/cvt.o
g++      -pthread ../temp/boot/jrd/dsc.o ../temp/boot/jrd/gds.o ../temp/boot/jrd/isc.o ../temp/boot/gpre/cmd.o ../temp/boot/gpre/cme.o ../temp/boot/gpre/cmp.o ../temp/boot/gpre/c_cxx.o ../temp/boot/gpre/exp.o ../temp/boot/gpre/gpre.o ../temp/boot/gpre/hsh.o ../temp/boot/gpre/int_cxx.o ../temp/boot/gpre/jrdmet.o ../temp/boot/gpre/movg.o ../temp/boot/gpre/msc.o ../temp/boot/gpre/par.o ../temp/boot/gpre/pat.o ../temp/boot/gpre/sqe.o ../temp/boot/gpre/sql.o ../temp/boot/gpre/pretty.o ../temp/boot/gpre/gpre_meta_boot.o ../temp/boot/jrd/config_root.o ../temp/boot/jrd/path_utils.o ../temp/boot/jrd/mod_loader.o ../temp/boot/jrd/fbsyslog.o ../temp/boot/jrd/guid.o ../temp/boot/jrd/os_utils.o ../temp/boot/common/dllinst.o ../temp/boot/common/fb_exception.o ../temp/boot/common/thd.o ../temp/boot/common/classes/MetaName.o ../temp/boot/common/StatusHolder.o ../temp/boot/common/classes/init.o ../temp/boot/common/StatusArg.o ../temp/boot/common/utils.o ../temp/boot/common/config/config.o ../temp/boot/common/config/config_file.o ../temp/boot/common/config/dir_list.o ../temp/boot/common/classes/alloc.o ../temp/boot/common/classes/locks.o ../temp/boot/common/classes/semaphore.o ../temp/boot/common/classes/fb_string.o ../temp/boot/common/classes/timestamp.o ../temp/boot/common/classes/PublicHandle.o ../temp/boot/common/classes/TempFile.o ../temp/boot/common/classes/SafeArg.o ../temp/boot/common/classes/MsgPrint.o ../temp/boot/common/classes/BaseStream.o ../temp/boot/common/cvt.o -o ../gen/firebird/bin/gpre_boot -L../gen/firebird/lib -lm -ldl  
../temp/boot/common/utils.o: In function `fb_utils::genUniqueId()':
/build/buildd-firebird2.5_2.5.0.25784~ReleaseCandidate1.ds2-6-sh4-NSqS1F/firebird2.5-2.5.0.25784~ReleaseCandidate1.ds2/gen/../src/common/utils.cpp:682: undefined reference to `AO_compare_and_swap_emulation'
../temp/boot/common/classes/alloc.o: In function `Firebird::Mutex::enter()':
/build/buildd-firebird2.5_2.5.0.25784~ReleaseCandidate1.ds2-6-sh4-NSqS1F/firebird2.5-2.5.0.25784~ReleaseCandidate1.ds2/gen/../src/include/../common/classes/locks.h:170: undefined reference to `AO_compare_and_swap_emulation'
/build/buildd-firebird2.5_2.5.0.25784~ReleaseCandidate1.ds2-6-sh4-NSqS1F/firebird2.5-2.5.0.25784~ReleaseCandidate1.ds2/gen/../src/include/../common/classes/locks.h:170: undefined reference to `AO_compare_and_swap_emulation'
/build/buildd-firebird2.5_2.5.0.25784~ReleaseCandidate1.ds2-6-sh4-NSqS1F/firebird2.5-2.5.0.25784~ReleaseCandidate1.ds2/gen/../src/include/../common/classes/locks.h:170: undefined reference to `AO_compare_and_swap_emulation'
/build/buildd-firebird2.5_2.5.0.25784~ReleaseCandidate1.ds2-6-sh4-NSqS1F/firebird2.5-2.5.0.25784~ReleaseCandidate1.ds2/gen/../src/include/../common/classes/locks.h:170: undefined reference to `AO_compare_and_swap_emulation'
../temp/boot/common/classes/alloc.o:/build/buildd-firebird2.5_2.5.0.25784~ReleaseCandidate1.ds2-6-sh4-NSqS1F/firebird2.5-2.5.0.25784~ReleaseCandidate1.ds2/gen/../src/include/../common/classes/locks.h:170: more undefined references to `AO_compare_and_swap_emulation' follow
collect2: ld returned 1 exit status
make[4]: *** [../gen/firebird/bin/gpre_boot] Error 1
make[3]: *** [boot_phase1_build.stamp] Error 2

-----

A patch(debian/patches/link_atomic_ops.patch) same as other arch is necessary for sh. 
I add support of SH to the patch which I attached.
Could you apply this patch?

Best regards,
 Nobuhiro


-- 
Nobuhiro Iwamatsu
	GPG ID: 3170EBE9 / 40AD1FA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: firebird2.5_link_atomic_ops+sh4.patch
Type: text/x-diff
Size: 3919 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-firebird-general/attachments/20100131/b4845a76/attachment.patch>


More information about the pkg-firebird-general mailing list