Source: freetds
Version: 0.91-2
Severity: wishlist
Tags: patch
User: debian-...@lists.debian.org
Usertags: port-x32 ftbfs-libtool

The freetds source package is getting build failures on x32:

<URL:http://buildd.debian-ports.org/status/fetch.php?pkg=freetds&arch=x32&ver=0.91-2&stamp=1358549186>
...
/bin/bash ../../libtool --tag=CC   --mode=link gcc -pthread -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -Wall -DDBLIB_UNIMPLEMENTED=1
-Wdeclaration-after-statement -version-info 4:0:0
-export-symbols-regex '^(cs_|ct_|blk_).*'         -Wl,-z,relro -L/usr/lib -o
libct.la -rpath /usr/lib/x86_64-linux-gnux32 ct.lo cs.lo blk.lo
ctutil.lo  ../tds/libtds.la ../replacements/libreplacements.la
-lgnutls     -lrt  -ldl
../../libtool: line 7502: test: : integer expression expected
../../libtool: line 7502: test: : integer expression expected
../../libtool: line 7607: test: : integer expression expected
../../libtool: line 7679: test: : integer expression expected
../../libtool: line 7679: test: : integer expression expected
../../libtool: line 7679: test: : integer expression expected
libtool: link: /usr/bin/ld -m elf_i386 -r -o .libs/libct.la-1.o .libs/ct.o
/usr/bin/ld: Relocatable linking with relocations from format
elf32-x86-64 (.libs/ct.o) to format elf32-i386 (.libs/libct.la-1.o) is
not supported
make[4]: *** [libct.la] Error 1
make[4]: Leaving directory
`/build/buildd-freetds_0.91-2-x32-fXIZyZ/freetds-0.91/src/ctlib'
...

The fix is to update libtool from the version in sid (>= 2.4.2-1.2).
I'm attaching a debdiff of the changes I'm using to do this at build
time, for the upload to debian-ports/unreleased.
-- 
Daniel Schepler

Attachment: freetds.debdiff
Description: Binary data

Reply via email to