From 189f725f40bca9238293fb172360367ca9ef5025 Mon Sep 17 00:00:00 2001 From: "J. Lewis Muir" Date: Thu, 5 Mar 2015 12:23:36 +1800 Subject: [PATCH] Re: [PATCH] lib: make notmuch shared library install_name be full path on Mac OS X --- 8c/7ce78e504adf17ed63081c5cad23ce67fbe40b | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 8c/7ce78e504adf17ed63081c5cad23ce67fbe40b diff --git a/8c/7ce78e504adf17ed63081c5cad23ce67fbe40b b/8c/7ce78e504adf17ed63081c5cad23ce67fbe40b new file mode 100644 index 000000000..8b872a1dd --- /dev/null +++ b/8c/7ce78e504adf17ed63081c5cad23ce67fbe40b @@ -0,0 +1,87 @@ +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 4757A431FAE + for ; Wed, 4 Mar 2015 10:24:43 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.438 +X-Spam-Level: ** +X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled +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 NqxZFdjGPelr for ; + Wed, 4 Mar 2015 10:24:40 -0800 (PST) +Received: from tuna.imca.aps.anl.gov (tuna.imca.aps.anl.gov [164.54.200.33]) + by olra.theworths.org (Postfix) with ESMTP id 27B59431FAF + for ; Wed, 4 Mar 2015 10:24:40 -0800 (PST) +Received: from gromit.local (seal.imca.aps.anl.gov [164.54.200.39]) + by tuna.imca.aps.anl.gov (Postfix) with ESMTP id EB11D20067 + for ; Wed, 4 Mar 2015 12:23:36 -0600 (CST) +Message-ID: <54F74DA8.6020706@imca-cat.org> +Date: Wed, 04 Mar 2015 12:23:36 -0600 +From: "J. Lewis Muir" +MIME-Version: 1.0 +To: notmuch@notmuchmail.org +Subject: Re: [PATCH] lib: make notmuch shared library install_name be full + path on Mac OS X +References: <1409541227-38895-1-git-send-email-jlmuir@imca-cat.org> + <87twyao35q.fsf@maritornes.cs.unb.ca> + <20150226181423.GA2822@bass.imca.aps.anl.gov> + +In-Reply-To: +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 7bit +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: Wed, 04 Mar 2015 18:24:43 -0000 + +On 2/26/15 1:04 PM, Tomi Ollila wrote: +> The commit message is just (IMO) somewhat confusing; what is this +> +> $ otool -L /opt/notmuch-current/lib/libnotmuch.dylib +> +> is there files /opt/notmuch-current/lib/libnotmuch.dylib and +> /opt/notmuch-current/lib/libnotmuch.3.dylib in the fs + +Hi, Tomi. + +Those files are actually known to you because they are what "make +install" installed. The "./configure" script was invoked with the +option "--prefix=/opt/notmuch-current". + +> and what does otool -L opt/notmuch-current/bin/notmuch output + +The otool program is kind of like the ldd program on Unix-like OSes. +When invoked with the -L option, otool prints the shared libraries that +the object file uses. When invoked on a shared library, it also shows +the install name of the shared library. This is what I was trying to +show was not an absolute path. + +In hindsight, maybe it would have been more clear if I had shown the +output of "otool -L" on the notmuch binary itself. It would have shown +all the shared library dependencies with absolute paths except for +libnotmuch.dylib which was just the file name which is why the dynamic +linker couldn't find it when running the notmuch binary. But I was +showing the "otool -L" output on libnotmuch.dylib because that was the +source of the problem (i.e. the install name was not set to an absolute +path). + +I'm sorry for the confusing commit message. As per David's subsequent +email on this thread, I'll try submitting again with a better one. + +Regards, + +Lewis -- 2.26.2