From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Xu Xin Newsgroups: gmane.emacs.bugs Subject: bug#32927: 27.0.50; libxml not found when building on macOS Mojave Date: Mon, 15 Oct 2018 10:52:32 -0400 Message-ID: References: <6oo9cask2c.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1539615068 20474 195.159.176.226 (15 Oct 2018 14:51:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 14:51:08 +0000 (UTC) Cc: 32927@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 16:51:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC4D1-0005DK-GA for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 16:51:03 +0200 Original-Received: from localhost ([::1]:52695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC4F7-0005Ac-UR for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 10:53:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC4F1-0005AM-IB for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 10:53:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC4Ev-0002Po-OU for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 10:53:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46650) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC4Ev-0002Pf-JZ for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 10:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gC4Ev-0003np-Ik for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 10:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Xu Xin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Oct 2018 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32927 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 32927-submit@debbugs.gnu.org id=B32927.153961517214593 (code B ref 32927); Mon, 15 Oct 2018 14:53:01 +0000 Original-Received: (at 32927) by debbugs.gnu.org; 15 Oct 2018 14:52:52 +0000 Original-Received: from localhost ([127.0.0.1]:50908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC4Em-0003nG-Ct for submit@debbugs.gnu.org; Mon, 15 Oct 2018 10:52:52 -0400 Original-Received: from mail-ed1-f54.google.com ([209.85.208.54]:36114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC4Ej-0003mv-Pp for 32927@debbugs.gnu.org; Mon, 15 Oct 2018 10:52:50 -0400 Original-Received: by mail-ed1-f54.google.com with SMTP id c26-v6so18125921edt.3 for <32927@debbugs.gnu.org>; Mon, 15 Oct 2018 07:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:cc; bh=53P9r6D5W16VkjYMdywmXJfExkNSpQuHxC+pq5NlehA=; b=HLhO+DDgBawfpbpbGsXBCSQlyX5hgJm95TprbY72crtbHpFD9mDs/T6zPqUbB1hWM3 6QbOxtks5JODU/BBHphp3gSnXpfyhhyYXs1Yzg4X6n1kR8bnASTwEyWN6FU2vDb0DMdL VCahyjIjHAWB7BTRfXb48fp5oOSvlEkY6OK9co/w0D6DJ1MDjMdzff3LzawezfqQtnP2 FFxlopNeJ0wTuZo2msX2hVF/GINvtr+MgAXl6hopzSz624FWG4T0LnPdkZqefqjKes/8 jha78gCMmRXBmi0CPcZidZiO1sI0aYlHFV24RATj51yjlGiaPxK9lgfEdJLMAHh0CfHz GiYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:cc; bh=53P9r6D5W16VkjYMdywmXJfExkNSpQuHxC+pq5NlehA=; b=GMWzWhqZeDppwBD9WqnbG1bXPpFwE0WG9Z7u9RKA+0zIumqYI+KuhVb2J8SHI6Apw3 wmF23egcSWoSA7cX7A8uTv3rG7y3/o9fbO5L/hV0Awbwy1CvJ4dFxR6lBXY08j9TXqyX i31XyU316+hHDC5+KI0PR3At2+W+i/R3BBmbP+649k3BkPaFwt5z5PNXlsIhxtiL2PEW C4UuQyGuMpeRKna27mI+/w0+wnMUALT/1V6gxRUPWLqGgg4yzIqLKRrM5ian1StMyH8H C8a7E2h3Fncuswqo761BAgpWNA9TVCLGh7jlGPZNtTWrNJe9B0kfbv8UYiBRQ9O5cbvh O2HA== X-Gm-Message-State: ABuFfoicGIES30FpTrjT77i89KEDCmWoOWrMm363EulRK7jFCpi+cx/x m22BsieQEQ1FgWPWL0rKpeyqBARbQI1lARf9zM5UBD/g X-Google-Smtp-Source: ACcGV60RKQ64XVp3oPXmEwHVfsvPgLOdY6ojc9awGXWyCjmeMfG0pevipneTzm+dyEM7kiz1+haKUCP2gomcMz0NNvw= X-Received: by 2002:a50:930e:: with SMTP id m14-v6mr24914911eda.114.1539615163757; Mon, 15 Oct 2018 07:52:43 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151266 Archived-At: On Thu, Oct 4, 2018 at 8:35 PM YAMAMOTO Mitsuharu wrote: > > tags 32927 notabug > close 32927 > quit > > On Fri, 05 Oct 2018 06:22:22 +0900, > Philipp Stephani wrote: > > > Yes, looks like this is the problem: > > > > $ pkg-config --cflags --libs "libxml-2.0 > 2.6.17" > > > > -I/usr/include/libxml2 -lxml2 > > > > $ pkg-config --variable pcfiledir "libxml-2.0 > 2.6.17" > > > > /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12 > > The file libxml-2.0.pc there (installed via Homebrew?) does not make > sense (and actually does harm) unless the header files are installed > into /usr/include. You can do that by following the workaround > mentioned in the Xcode release notes, but I'm not sure this is the way > intended by the Homebrew developers (and I'm not using Homebrew). > Maybe you want to ask it at some Homebrew forum. > > Anyway, this is not a bug in Emacs. Closing. > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp > > > A ticket opened for Homebrew, but looks like there's no plan to fix it for now: https://github.com/Homebrew/brew/issues/5068 A patch like this can also be a hack: % cat pkgconfig_10.14.diff diff --git a/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc b/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc index c297c6b45..7a037a9cf 100644 --- a/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc +++ b/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc @@ -1,7 +1,8 @@ prefix=/usr +xcode_prefix=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk${prefix} exec_prefix=${prefix} libdir=${exec_prefix}/lib -includedir=${prefix}/include +includedir=${xcode_prefix}/include modules=1 Name: libXML Another interesting thing is Homebrew itself able to build emacs successfully by command `brew install --build-from-source emacs` without any header file error and any hack/workaround to *.pc files. Maybe because of some internal settings. - Xin