Package: db5.3
Version: 5.3.21-1
Severity: minor
Tags: patch upstream
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu saucy ubuntu-patch

Hi,

libdb_sql-5.3 doesn't link with libraries it uses. I'm not sure why but
I don't see this problem in sid, hence the severity. I suspect it's due
to Ubuntu's newer binutils being more strict, which sid will have at
some point. The FTBFS is:

,----
| libtool: link: cc -g -O2 -fstack-protector --param=ssp-buffer-size=4
| -Wformat -Werror=format-security -I/usr/li
| b/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -o
| .libs/dbsql -Wl,-Bsymbolic-functions -W
| l,-z -Wl,relro .libs/shell.o  ./.libs/libdb_sql-5.3.so -ldl -lpthread 
| ./.libs/libdb_sql-5.3.so: undefined reference to `dlopen'
| ./.libs/libdb_sql-5.3.so: undefined reference to `dlclose'
| ./.libs/libdb_sql-5.3.so: undefined reference to `dlerror'
| ./.libs/libdb_sql-5.3.so: undefined reference to `dlsym'
`----

Because earlier in the build the library isn't linked with -ldl. Patch
attached.

Cheers,

-- 
Iain Lane                                  [ i...@orangesquash.org.uk ]
Debian Developer                                   [ la...@debian.org ]
Ubuntu Developer                                   [ la...@ubuntu.com ]
diff -Nru db5.3-5.3.21/debian/changelog db5.3-5.3.21/debian/changelog
diff -Nru db5.3-5.3.21/debian/control db5.3-5.3.21/debian/control
--- db5.3-5.3.21/debian/control	2013-02-12 16:23:55.000000000 +0000
+++ db5.3-5.3.21/debian/control	2013-06-14 18:13:37.000000000 +0100
@@ -1,8 +1,7 @@
 Source: db5.3
 Section: libs
 Priority: standard
-Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
-XSBC-Original-Maintainer: Debian Berkeley DB Group <pkg-db-de...@lists.alioth.debian.org>
+Maintainer: Debian Berkeley DB Group <pkg-db-de...@lists.alioth.debian.org>
 Uploaders: Ondřej Surý <ond...@debian.org>
 Standards-Version: 3.9.3
 # For cross building one also needs tcl8.4:native (ie. such that it
diff -Nru db5.3-5.3.21/debian/patches/link-sql-libs db5.3-5.3.21/debian/patches/link-sql-libs
--- db5.3-5.3.21/debian/patches/link-sql-libs	1970-01-01 01:00:00.000000000 +0100
+++ db5.3-5.3.21/debian/patches/link-sql-libs	2013-06-14 18:13:16.000000000 +0100
@@ -0,0 +1,14 @@
+Description: Link libdb_sql-5.3 with the right libraries.
+Author: Iain Lane <iain.l...@canonical.com>
+
+--- db5.3-5.3.21.orig/dist/Makefile.in
++++ db5.3-5.3.21/dist/Makefile.in
+@@ -897,7 +897,7 @@ $(libsql_version): $(SQL_OBJS)
+ 
+ # Shared SQL library.
+ $(libsqlso_target): $(SQL_OBJS)
+-	$(SOLINK) $(SOFLAGS) $(LDFLAGS) -o $@ $(SQL_OBJS) $(LIBCSO_LIBS)
++	$(SOLINK) $(SOFLAGS) $(LDFLAGS) -o $@ $(SQL_OBJS) $(LIBCSO_LIBS) @SQL_LIBS@
+ 	$(RM) $(libsql)
+ 	$(LN) -s .libs/$(libsql_version) $(libsql)
+ 
diff -Nru db5.3-5.3.21/debian/patches/series db5.3-5.3.21/debian/patches/series
--- db5.3-5.3.21/debian/patches/series	2013-02-12 16:13:14.000000000 +0000
+++ db5.3-5.3.21/debian/patches/series	2013-06-14 17:49:04.000000000 +0100
@@ -3,3 +3,4 @@
 004-tclsleep.patch
 005-pg_crypt_size.patch
 006-mutex_alignment.patch
+link-sql-libs

Reply via email to