Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3B55A4196F2 for ; Sun, 11 Apr 2010 16:43:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham 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 L0uFmK-AEsOr for ; Sun, 11 Apr 2010 16:43:29 -0700 (PDT) Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.146]) by olra.theworths.org (Postfix) with ESMTP id 79D3E431FC1 for ; Sun, 11 Apr 2010 16:43:29 -0700 (PDT) Received: by qw-out-1920.google.com with SMTP id 5so1634645qwc.32 for ; Sun, 11 Apr 2010 16:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:user-agent:mime-version:content-type; bh=Ipyce5X02i1XZ6fRqKGcN/EOWRy9C+BjF0aEJnm8yfI=; b=Mh9cIWCCAUvOl4iw+6fiJ1frtVG4STPB1uQfobn1p0TEaQLpgjhbscVvbeb7btmzHt Db0Nipg+EL83Fbqc1fQ1V/e/xfXMiEWPBJchQyj8W9BT20V0tIGO4rxzn6avKkdzM0Sg /W7QcF1IWwqjghAkHIWZXVxmKltOkgcE7XoQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:user-agent:mime-version :content-type; b=Q7HHV8AvB69XAhsixQeIjm/Y9xGCap3UZ4xwZhlHN8nkO+ahv9UR1r+PlDp8IC8NIg wtFrJppkPyxHfIxmUd2hfoAQ5+Qo70llaj5Ewb8YlSvrB2OtgMjinttUNR4ReVxjwDHr PrHSxQ2/XuMfciju7zw5twjflqBsnzXhdhd/U= Received: by 10.224.59.133 with SMTP id l5mr1160217qah.51.1271029409069; Sun, 11 Apr 2010 16:43:29 -0700 (PDT) Received: from localhost (vpm120.wireless-resnet.upenn.edu [165.123.236.140]) by mx.google.com with ESMTPS id 6sm7349737qwk.21.2010.04.11.16.43.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Apr 2010 16:43:28 -0700 (PDT) Message-ID: <4bc25ea0.86c3f10a.45a3.ffff80d3@mx.google.com> Date: Sun, 11 Apr 2010 19:43:27 -0400 From: Aaron Ecay To: notmuch Subject: Build problems on OS X User-Agent: Wanderlust/2.15.7 (Almost Unreal) Emacs/24.0 Mule/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sun, 11 Apr 2010 23:43:30 -0000 In the process of updating to the latest sources, I've discovered that notmuch no longer builds on OS X. As a reply to this email, I'll be sending 4 patches. The first two are bugfixes; the third adds the infrastructure to the Makefiles to build a shared library on OS X, since the Mach-O conventions are somewhat different than the Linux ones. Modulo makefile style quibbles, this patch should be correct. The fourth patch I am not sure of. Even after adding the proper command line flags to build the shared binary on OS X, I get symbol not found errors for Glib/Gmime symbols. The shared binary links against the shared lib, which in turn links against Glib and Gmime, but it appears that at least on OS X the linker won't follow these second-order links, and the notmuch shared binary must be linked against Glib/Gmime directly. This patch fixes the build for me, but it may not be correct on Linux/other Unices. I can resubmit this patch to add the extra linker flags only when building for OS X. If anyone knows how to get the OS X linker to behave like the Linux one in this regard, that will likely be a better solution. Aaron