From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uIfZCa8hsmFBSgEAgWs5BA (envelope-from ) for ; Thu, 09 Dec 2021 16:33:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4JJ4Ba8hsmH/IgAAbx9fmQ (envelope-from ) for ; Thu, 09 Dec 2021 15:33:03 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DA30EA560 for ; Thu, 9 Dec 2021 16:33:02 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0F82A2956A; Thu, 9 Dec 2021 10:32:41 -0500 (EST) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by mail.notmuchmail.org (Postfix) with ESMTPS id CC9DF29553 for ; Thu, 9 Dec 2021 09:40:39 -0500 (EST) Received: by mail-wm1-x32b.google.com with SMTP id p3-20020a05600c1d8300b003334fab53afso6701153wms.3 for ; Thu, 09 Dec 2021 06:40:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=HelSR4/d24QPbr+plpMxdJxgVMEGTg7RVJUCq6MwnxY=; b=cY096BeWTWLSOApthdPXzsV9a9dv0mYQb8JvOAcmocLTx+rafVN/ax14HHPzbGMvPc 5OwqnB6ayJaaJ0LQnKUfBkmVfujxAApPRys1F3PqsfZs1pDxSr+E0SsHzqEXFAC8lsjS 3LnSxtRqKxBLI86PxLf4sYtJJENxN/dzAfkUowWH6GZT5g+8Wel2DHtmgbzRqAKtDDNN O9Yvh82JhELMJzZozQfJ/Zwr++eHM2aVUyUAGt5DlqOxnJ2H70e9LSFLRxMfF+uUhZg2 JervdLhIgGpzkxebr9q99dg5SO+cpFAyg8eBz2Mx1+SlDU/lMvpedkSSSiSL5T8KnVdE m1VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=HelSR4/d24QPbr+plpMxdJxgVMEGTg7RVJUCq6MwnxY=; b=VeiYsPKCC2BKbr5zrJCq9W3voupvLqoc3spLhPEjmjqmTK/3f265+1ahhUf8900u6H 9Vi6xcBueWmtkwyjkUUpCMuz26iauYMbVCxIZm7SudpLp5HJT1Fk0W5Cq4XZeiw66dcS 5X8+0F18hqK85Z8j+0CSlJR064iFxzDxgAlhxEUloePpg6xih8WSZHpIhC3W18HGO8Qg O9R/1A18sGNO3QFXi8GnPMyUFb6gIdKo63m3qV1raS3wCFdT1miBQc1VRsUgLRq3iViW SA9k4wj0LBCEzZSAACvSnydg81YE4X1XtJez1a3Hrc26D26j7TWTdV+QcAV5jrLwpmcl Yq1w== X-Gm-Message-State: AOAM531oB8d4dGYp83TkBU/sLah/1Po2PN1BpGhR1KM3C+bu7HxZx7DQ 40onIa9sS+FpOyAiPBbE3GWP9VG0uc4= X-Google-Smtp-Source: ABdhPJzAfMEGG2+kArBwDjuMr6MfLmZZWgf97RELntlIxDs9G0s8MIl+W2F50eaud2oE52xxLi9hIA== X-Received: by 2002:a05:600c:4e07:: with SMTP id b7mr7416284wmq.16.1639060838112; Thu, 09 Dec 2021 06:40:38 -0800 (PST) Received: from lxstaff02.gmail.com ([137.195.26.27]) by smtp.gmail.com with ESMTPSA id r15sm8625283wmh.13.2021.12.09.06.40.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Dec 2021 06:40:37 -0800 (PST) User-agent: mu4e 1.7.4; emacs 27.2 From: Al Haji-Ali To: notmuch@notmuchmail.org Subject: Make fails with xapian custom installation Date: Thu, 09 Dec 2021 14:23:32 +0000 Message-ID: MIME-Version: 1.0 X-MailFrom: abdo.haji.ali@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: RXB5XGMQ3UHCH7FS4I4LC7DI2VY2MICV X-Message-ID-Hash: RXB5XGMQ3UHCH7FS4I4LC7DI2VY2MICV X-Mailman-Approved-At: Thu, 09 Dec 2021 10:32:38 -0500 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639063982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=cuxLFQ2kURGJHrA4Te1YhvVAa4CMTPorgjZIwTGVxsA=; b=pyhBWNDBQzgsY2Cb8DZj7wyAHq0eUJagJ+zNyFgC8PYKGUydNxSLCAXJTRsT4G3RTZq6G7 2dpyPfdbacYhiyM/Rl+/VMBvBwE7fFAzvj9F9KUShQ3F9XwGQM1plc6IFBfNaBhtGmm/ZK dITsIv1za5ex74dyeEmVzZH5peDXfy1Jw6ejmcePJQ4sw33VHXZqh+H0y1TlDw7bjedrTh 1xdO38yqwUMbuPaWLpNHYd84ygqxpXJetxPMx3kdHhCRON6nE5m+s1bmWz8qfrC5ve8gfW v9uAnxkYScQZ1I8ds80SskEZbwmenPzj8q5v9ecVCb0DHvJpogyoiCHvGrAM3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639063982; a=rsa-sha256; cv=none; b=URQPXcwp4N1yxcUOHrGya8EsulGPyRAOXZiiwowUeAAUDUfQjDnkcLw2pxSeXURsI2zgVm JYgm0i53kwE773otoQfux4XKpezZVmNEodQTHLBrlMBwXK5y1ZkCjMAxnB5ikOkcczdcfg EFXOj1f+iQ1CNmjmHiU/8O1+hVJf/+JEGS7EWy/gtp7SUEnAygnhawRQwBbMmVVkU8KEuL z9Pd5t39GyT+C5G2+Iazs+y8iK6HB2DUlgsCiIgElHhv0AWoDeMIIwapxqct6zZFCTftn1 BLM16/VgEph/chla8/zIM3IyRXZqmpVm+XAD2O4Qxkx8X+wUtb6GWFT3pD337g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=cY096BeW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=cY096BeW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: DA30EA560 X-Spam-Score: 1.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: IpuwhxE138vw Hello, I have an old version of Xapian installed in root and a new one installed in my home folder which I want to use. My pkgconfig is configured correctly ,---- | ~ pkg-config --libs xapian-core | -L/home/al/.local/stow/xapian/lib -lxapian `---- So compiling notmuch works until linking when the following command fails ,---- | ~ c++ lib/filenames.o lib/string-list.o lib/message-file.o lib/message-id.o lib/messages.o lib/sha1.o lib/built-with.o lib/string-map.o lib/indexopts.o lib/tags.o lib/database.o lib/parse-time-vrp.o lib/directory.o lib/index.o lib/message.o lib/add-message.o lib/message-property.o lib/query.o lib/query-fp.o lib/config.o lib/regexp-fields.o lib/thread.o lib/thread-fp.o lib/features.o lib/prefix.o lib/open.o lib/init.o lib/parse-sexp.o -Wl,--as-needed -L/home/al/.local/stow/gmime/lib -L/usr/lib64 -lgmime-3.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -L/usr/lib64 -ltalloc -L/usr/lib64 -lz -L/home/al/.local/stow/xapian/lib -lxapian -shared -Wl,--version-script=./lib/notmuch.sym,-soname=libnotmuch.so.5 -Wl,--no-undefined -o lib/libnotmuch.so.5.5.0 util/libnotmuch_util.a parse-time-string/libparse-time-string.a `---- The problem is that GCC orders the library folders left-to-right and the directory `/usr/lib64` is added (multiple times) before the my local directory `/home/al/.local/stow/xapian/lib`. So that the Xapian library file in the /usr/lib64 has a higher priority and is used. Removing all `-L/usr/lib64` manually and running the linking commands, I am able to compile notmuch correctly. Is there a better way to do this via configure? Thanks, -- Al