[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#621450: Uses db5.1 headers, but links to db4.8



severity 621450 grave
thank you

There's a bug in xastir configure macros which causes the package to
build against db5.1 headers, but link to libdb4.8 shared library.
Increasing severity of this bug, since this could lead to severe data
loss.

This patch should fix that:

diff -urNap xastir-1.9.4~/acinclude.m4 xastir-1.9.4/acinclude.m4
--- xastir-1.9.4~/acinclude.m4	2008-08-15 04:36:09.000000000 +0000
+++ xastir-1.9.4/acinclude.m4	2011-04-14 12:28:20.777917001 +0000
@@ -1012,7 +1012,7 @@ AC_DEFUN([XASTIR_BERKELEY_DB_CHK_LIB],
 # to specify the function call with the full prototype for it to be found.
         BDB_LIB_FOUND="none"
         AC_MSG_CHECKING([for a library containing db_create])
-        for dbname in db-4.9 db4.9 db49 db-4.8 db4.8 db48 db-4.7
db4.7 db47 db-4.6 db4.6 db46 db-4.5 db4.5 db45 db-4.4 db4.4 db44
db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0
db-4 db40 db4 db
+        for dbname in db
           do
 	    LIBS="$saved_LIBS -l$dbname"
 	    AC_TRY_LINK(


(or add a db-5.1 which will fix this for db5.1, but will break again
for db5.2, etc...)

Ondrej
-- 
Ondřej Surý <ondrej@sury.org>



Reply to: