Re: Gnome logout script



On Tue, 2003-10-21 at 08:03, Sean Atkinson wrote:
> Using this old version, configure complains it can't find the db3
> library, apparently because the linker is missing '__ctype_b'.  I get
> similar results trying to configure using a fresh build of db-3.1.17,
> only the link fails against pthread references instead.

It's very hacky, it's probably The Wrong Way To Do It, but adding this
patch to your spec file works (at least it does for me).

Evolution has some very hard build-foo.

-- 
Andrew Sobala <as583 cam ac uk>

Given by our hand in the meadow that is called Runnymede, between
Windsor and Staines, on the fifteenth day of June in the seventeenth
year of our reign.
--- evolution/configure.in.configure-pthread	2003-09-30 18:55:04.000000000 +0100
+++ evolution/configure.in	2003-09-30 18:55:11.000000000 +0100
@@ -358,7 +358,7 @@
 	ac_cv_db3_ldadd=""
 
 	for name in db db3 db-3.1; do
-		LIBS="$LIBS_save $with_db3_libs/lib${name}.a"
+		LIBS="$LIBS_save $with_db3_libs/lib${name}.a -pthread"
 		AC_TRY_LINK([
 			#ifdef HAVE_DB3_DB_H
 			#include <db3/db.h>
@@ -369,7 +369,7 @@
 			DB *db;
 			db_create (&db, 0, 0);
 		], [
-			ac_cv_db3_ldadd="$with_db3_libs/lib${name}.a"
+			ac_cv_db3_ldadd="$with_db3_libs/lib${name}.a -pthread"
 			break
 		])
 	done


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