Package: stardict-tools Version: 3.0.1-6 Severity: wishlist Tags: patch User: [email protected] Usertags: origin-ubuntu natty ubuntu-patch
Hi, Even after your last update, the package still FTBFS in Ubuntu (and also with binutils-gold) with the following error: ... libtool: link: g++ -g -O2 -Wl,-Bsymbolic-functions -o stardict_dict_update stardict_dict_update.o -pthread /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpangocairo-1.0.so -lgdk_pixbuf-2.0 -lm /usr/lib/libcairo.so -lpng12 /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so -pthread /usr/bin/ld: stardict_dict_update.o: undefined reference to symbol 'gzclose' /usr/bin/ld: note: 'gzclose' is defined in DSO /lib/libz.so.1 so try adding it to the linker command line collect2: ld returned 1 exit status make[4]: *** [stardict_dict_update] Error 1 The following patch fixes the build. *** /tmp/tmpRlX3nk Thanks, Fabrice -- System Information: Debian Release: squeeze/sid APT prefers maverick-updates APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-proposed'), (500, 'maverick') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35-24-generic (SMP w/2 CPU cores) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru stardict-tools-3.0.1/debian/patches/fix-lz-linking.patch stardict-tools-3.0.1/debian/patches/fix-lz-linking.patch --- stardict-tools-3.0.1/debian/patches/fix-lz-linking.patch 2010-12-03 10:14:18.000000000 +0100 +++ stardict-tools-3.0.1/debian/patches/fix-lz-linking.patch 2010-12-09 21:15:39.000000000 +0100 @@ -2,8 +2,19 @@ From: Michal Čihař <[email protected]> The -lz linkage has to be at the end to resolve symbols from static library. ---- a/src/Makefile.am -+++ b/src/Makefile.am +Index: stardict-tools-3.0.1/src/Makefile.am +=================================================================== +--- stardict-tools-3.0.1.orig/src/Makefile.am 2010-12-09 21:14:51.811566996 +0100 ++++ stardict-tools-3.0.1/src/Makefile.am 2010-12-09 21:15:34.191567003 +0100 +@@ -155,7 +155,7 @@ + stardict2txt_SOURCES = stardict2txt.cpp libstardict2txt.cpp libstardict2txt.h libcommon.cpp libcommon.h + + stardict_dict_update_LDFLAGS = +-stardict_dict_update_LDADD = $(STARDICT_LIBS) ++stardict_dict_update_LDADD = $(STARDICT_LIBS) -lz + stardict_dict_update_SOURCES = stardict_dict_update.cpp + + fest2dict_LDFLAGS = @@ -216,7 +216,7 @@ bgl2txt_DEPENDENCIES = libbgl2txt.a

