From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 51B5C431FBC for ; Tue, 1 Dec 2009 01:32:18 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZPI8HGrDQFFk for ; Tue, 1 Dec 2009 01:32:17 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by olra.theworths.org (Postfix) with ESMTP id 8729E431FAE for ; Tue, 1 Dec 2009 01:32:17 -0800 (PST) Received: from pasmtpA.tele.dk (pasmtpa.tele.dk [80.160.77.114]) by mx.perfora.net (node=mxus0) with ESMTP (Nemesis) id 0MAP9G-1NQvPO2JGE-00B7Sr for notmuch@notmuchmail.org; Tue, 01 Dec 2009 04:32:17 -0500 Received: from algorithm (0x5da31b52.cpe.ge-1-1-0-1110.oebrnqu2.customer.tele.dk [93.163.27.82]) by pasmtpA.tele.dk (Postfix) with ESMTP id 48855800333 for ; Tue, 1 Dec 2009 10:32:14 +0100 (CET) Date: Tue, 1 Dec 2009 10:33:05 +0100 From: Steen Manniche To: notmuch@notmuchmail.org Message-ID: <20091201093305.GA16198@algorithm> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Mailman-Approved-At: Tue, 01 Dec 2009 07:15:06 -0800 Subject: Problem building notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 09:32:18 -0000 Hi list, I've been trying to install notmuch but I ran into problems related to talloc and, seemingly with notmuch's understanding of the talloc.h file. ./configure affirms that all needed headers are installed: [...] Checking for Xapian development files... Yes. Checking for GMime 2.4 development files... Yes. Checking for talloc development files... Yes. Checking for valgrind development files... No. [...] but then make complains: [...] CC lib/xutil.o CXX lib/database.o CXX lib/index.o CXX lib/message.o CXX lib/query.o CXX lib/thread.o AR lib/notmuch.a CXX notmuch notmuch.o: In function `main': notmuch.c:(.text+0x326): undefined reference to `_talloc_free' notmuch-config.o: In function `notmuch_config_set_user_other_email': notmuch-config.c:(.text+0x42): undefined reference to `_talloc_free' notmuch-config.o: In function `notmuch_config_close': notmuch-config.c:(.text+0x75): undefined reference to `_talloc_free' notmuch-config.o: In function `notmuch_config_set_user_primary_email': notmuch-config.c:(.text+0x1ab): undefined reference to `_talloc_free' notmuch-config.o: In function `notmuch_config_set_user_name': notmuch-config.c:(.text+0x1fb): undefined reference to `_talloc_free' notmuch-config.o:notmuch-config.c:(.text+0x24b): more undefined references to `_talloc_free' follow lib/notmuch.a(database.o): In function `_resolve_message_id_to_thread_id(_notmuch_database*, void*, char const*)': database.cc:(.text+0x186e): undefined reference to `_talloc_steal_loc' lib/notmuch.a(database.o): In function `_my_talloc_free_for_g_hash(void*)': database.cc:(.text+0x1a4c): undefined reference to `_talloc_free' lib/notmuch.a(database.o): In function `notmuch_database_add_message': database.cc:(.text+0x20e7): undefined reference to `_talloc_free' database.cc:(.text+0x216b): undefined reference to `_talloc_free' lib/notmuch.a(message.o): In function `_notmuch_message_create': message.cc:(.text+0x1ee): undefined reference to `_talloc_free' lib/notmuch.a(message.o): In function `_notmuch_message_create_for_message_id': message.cc:(.text+0x299): undefined reference to `_talloc_steal_loc' message.cc:(.text+0x372): undefined reference to `_talloc_free' lib/notmuch.a(message.o): In function `_notmuch_message_set_filename': message.cc:(.text+0xd9e): undefined reference to `_talloc_free' lib/notmuch.a(message.o): In function `_notmuch_message_add_term': message.cc:(.text+0x157e): undefined reference to `_talloc_free' lib/notmuch.a(message.o): In function `_notmuch_message_remove_term': message.cc:(.text+0x193b): undefined reference to `_talloc_free' lib/notmuch.a(message.o): In function `notmuch_message_destroy': message.cc:(.text+0x1b5a): undefined reference to `_talloc_free' lib/notmuch.a(query.o):query.cc:(.text+0x8fb): more undefined references to `_talloc_free' follow lib/notmuch.a(thread.o): In function `_thread_add_message(_notmuch_thread*, _notmuch_message*)': thread.cc:(.text+0x10c): undefined reference to `_talloc_steal_loc' lib/notmuch.a(thread.o): In function `notmuch_thread_destroy': thread.cc:(.text+0x854): undefined reference to `_talloc_free' lib/notmuch.a(message-file.o): In function `notmuch_message_file_close': message-file.c:(.text+0x5f5): undefined reference to `_talloc_free' collect2: ld returned 1 exit status make: *** [notmuch] Error 1 I have the talloc.h in /usr/include and talloc_free as well as _talloc_free is in there: % egrep "*talloc_free" /usr/include/talloc.h #define talloc_free(ctx) _talloc_free(ctx, __location__) #define talloc_destroy(ctx) talloc_free(ctx) #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) int _talloc_free(void *ptr, const char *location); void talloc_free_children(void *ptr); % Probably unusable system info: % uname -a Linux algorithm 2.6.31-ARCH #1 SMP PREEMPT Fri Oct 23 11:12:58 CEST 2009 i686 Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz GenuineIntel GNU/Linux What am I doing wrong? Best regards and thanks for the effort with notmuch! Steen