From: Nate Eagleson Date: Tue, 2 Jun 2015 20:40:59 +0000 (+2000) Subject: build failures on Mac OS X 10.6.8 - diagnosis X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0608d3a9d624eae2411ab42f76a88323b4287012;p=notmuch-archives.git build failures on Mac OS X 10.6.8 - diagnosis --- diff --git a/a6/b30007f3bc02eb87a306cf330b159386a4adcc b/a6/b30007f3bc02eb87a306cf330b159386a4adcc new file mode 100644 index 000000000..6b4f66d59 --- /dev/null +++ b/a6/b30007f3bc02eb87a306cf330b159386a4adcc @@ -0,0 +1,117 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 934B56DE13AF + for ; Tue, 2 Jun 2015 13:41:04 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.152 +X-Spam-Level: +X-Spam-Status: No, score=-0.152 tagged_above=-999 required=5 tests=[AWL=0.529, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, + T_FREEMAIL_FORGED_FROMDOMAIN=0.01, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id VvXD1-AVTAUi for ; + Tue, 2 Jun 2015 13:41:02 -0700 (PDT) +Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com + [209.85.192.50]) + by arlo.cworth.org (Postfix) with ESMTPS id 175E76DE13A3 + for ; Tue, 2 Jun 2015 13:41:02 -0700 (PDT) +Received: by qgfa63 with SMTP id a63so64110645qgf.0 + for ; Tue, 02 Jun 2015 13:41:01 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=sender:from:content-type:content-transfer-encoding:subject:date + :message-id:to:mime-version; + bh=uQQ0U4sr+yOjSsBfoFnWS5g/379EJRyvO3wmq2d0syo=; + b=Pw0FkZNQ4vlMKojXUMbXehV7FhUanc4EjGF5gdkxYlEN+V2KW/48455IY0dU1qIvgM + HOnX+XwttoEUgkeTP95a5qtMl2n3aERFKpoS2TxFC7tOJQdP0cVbicDr8MHMvjCgbXOG + hUsFlxQq9ZnZ07CgTU80pjwHO1095WUjqQ83qStOK5PzLj5xdw4R9VH53s3MvKYIv8Bh + 6HSnzaIcC7bmh13+hbQN5Sy/+sbnesZfQqL6tBME2VpjfMHDJOIkZgz/U7XGAzvCVLtN + ka3H2iW8qdrBzEGQ/QL+8v3yPXciqS6hNyktQajhqmvzoDVVjlJ5VSYRxmR7rEE6kkjT + 7tCg== +X-Received: by 10.55.40.199 with SMTP id o68mr37950813qko.23.1433277661266; + Tue, 02 Jun 2015 13:41:01 -0700 (PDT) +Received: from [10.46.105.6] ([70.42.157.61]) + by mx.google.com with ESMTPSA id p36sm1229539qkp.11.2015.06.02.13.40.58 + for + (version=TLSv1 cipher=RC4-SHA bits=128/128); + Tue, 02 Jun 2015 13:40:59 -0700 (PDT) +Sender: Nathan Eagleson +From: Nate Eagleson +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: quoted-printable +Subject: build failures on Mac OS X 10.6.8 - diagnosis +Date: Tue, 2 Jun 2015 16:40:59 -0400 +Message-Id: <7156CF8E-BE69-48C0-ACB8-88C7E68CD4BB@nateeag.com> +To: notmuch@notmuchmail.org +Mime-Version: 1.0 (Apple Message framework v1085) +X-Mailer: Apple Mail (2.1085) +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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, 02 Jun 2015 20:41:04 -0000 + +Hi folks, + +I'm trying to move from Apple's Mail.app in favor of = +offlineimap/notmuch, but +I've run into a build failure on Mac OS X 10.6.8. + +The failure was reported on this list a few months ago, but no = +explanation or +solution was found: + +http://notmuchmail.org/pipermail/notmuch/2015/020531.html + +By appending `-Wl,-t` to `FINAL_NOTMUCH_LDFLAGS` in Makefile.local, I +got 10.6.8's ld to dump the list of archives and dylibs that are being +linked in the failed compile. + +That list includes `/usr/lib/libutil.dylib`, but not notmuch's built-in +`util/libutil.a`. + +I have not found a sane way to tell 10.6.8's ld to prefer libutil.a over +libutil.dylib. + +My first thought was that there should be an option to prefer archives = +over +dylibs, but that does not seem to exist in 10.6.8's version of ld. + +Instead, people are recommending absolute paths when you need to link an +archive file in preference to existing dylibs: + += +http://lists.apple.com/archives/darwin-development/2003/Sep/msg00008.html +http://stackoverflow.com/questions/844819/how-to-static-link-on-os-x + +As a simple test, I hardcoded an absolute path to libutil in +FINAL_NOTMUCH_LDFLAGS, and the compile succeeded. + +So, it seems like getting the path to the Makefile's parent directory = +and +using it to specify an absolute path to libutil.a would address this = +issue without +introducing new ones. + +Does this sound like a sane solution? Would a patch to do this be = +accepted? + +If not, what would be a better way to solve this? + +Thanks. + +-Nate +