From 03c713f10dcea475780a422be99f2fb6694858f5 Mon Sep 17 00:00:00 2001 From: Nate Eagleson Date: Wed, 3 Jun 2015 08:46:53 +2000 Subject: [PATCH] build failure on Mac OS X 10.6.8 - diagnosis --- f7/9de69b80734d2c4226ac3ae271634319ba5315 | 118 ++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 f7/9de69b80734d2c4226ac3ae271634319ba5315 diff --git a/f7/9de69b80734d2c4226ac3ae271634319ba5315 b/f7/9de69b80734d2c4226ac3ae271634319ba5315 new file mode 100644 index 000000000..e6e8534bf --- /dev/null +++ b/f7/9de69b80734d2c4226ac3ae271634319ba5315 @@ -0,0 +1,118 @@ +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 36F396DE1A7C + for ; Tue, 2 Jun 2015 13:37:34 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.129 +X-Spam-Level: +X-Spam-Status: No, score=-0.129 tagged_above=-999 required=5 + tests=[AWL=-0.551, DATE_IN_PAST_06_12=1.103, 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 uEybvFnonyo9 for ; + Tue, 2 Jun 2015 13:37:31 -0700 (PDT) +Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com + [209.85.192.46]) + by arlo.cworth.org (Postfix) with ESMTPS id 714626DE138F + for ; Tue, 2 Jun 2015 13:37:31 -0700 (PDT) +Received: by qgfa63 with SMTP id a63so64067695qgf.0 + for ; Tue, 02 Jun 2015 13:37:30 -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=ZtpAbHRiZ89cQ0Qzh0dCMNw8K5lg+JksPouXbT/TmYc=; + b=F6CTARUInyfROIwIB6u7whdCpMAPpZNW0q3Gmu/yuhjSJDf/2zX5+L43vTOrw0Z4L2 + ciLCD+PjokkwGoQABQtPcKTp+ZHormGFCtY9PzLR1jekDuoldxXrCMhaqFxILfwEvJb8 + GP2YJo0wesZRAg2URUvnsUWhtFICP/aZA+NlboygMhHr4sylJKRPkA5pgXDwUvewYT/3 + /CEe45o9XA1joiY8LSoJcdHlN/PAT6kNqRay53YhiAC8NuOXF3pWd2NJnXK8hPiayfy+ + 9Hf8G9+lHX9jL/eVonABa1vjq5EfM4jE3JZlpFYIqAjaKdhT1rfLCOcaWR504X/TnWit + MOkw== +X-Received: by 10.140.231.85 with SMTP id b82mr33220873qhc.2.1433277450261; + Tue, 02 Jun 2015 13:37:30 -0700 (PDT) +Received: from [10.46.105.6] ([70.42.157.61]) + by mx.google.com with ESMTPSA id 9sm7873282qhy.1.2015.06.02.13.37.25 + for + (version=TLSv1 cipher=RC4-SHA bits=128/128); + Tue, 02 Jun 2015 13:37:29 -0700 (PDT) +Sender: Nathan Eagleson +From: Nate Eagleson +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: quoted-printable +Subject: build failure on Mac OS X 10.6.8 - diagnosis +Date: Tue, 2 Jun 2015 08:46:53 -0400 +Message-Id: +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:37:34 -0000 + +Hi folks, + +I'm trying to move from Apple's Mail.app in favor of = +offlineimap/notmuch, but +I've run into a notmuch 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 (or earlier) 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 added a hardcoded absolute path to libutil to +FINAL_NOTMUCH_LDFLAGS, and the compile succeeded. + +Thus, it seems like getting the path to the Makefile's parent directory = +and +using it to specify an absolute path to libutil.a in the Makefile 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 + -- 2.26.2