Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107846 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99295 invoked from network); 21 Nov 2019 12:43:35 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 21 Nov 2019 12:43:35 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id A86C72D1F83 for ; Thu, 21 Nov 2019 02:36:56 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 159.69.0.0/16 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) Received: from srv015.mail.ichtushosting.com (srv015.mail.ichtushosting.com [159.69.182.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 21 Nov 2019 02:36:55 -0800 (PST) Received: from srv021.web.ichtushosting.com ([78.47.76.72]) by srv015.mail.ichtushosting.com stage1 with esmtp (Exim MailCleaner) id 1iXjpU-0005PF-Rf for from ; Thu, 21 Nov 2019 11:36:52 +0100 Received: from ptr-1ewoyg4ak0p8hw4fmu2.18120a2.ip6.access.telenet.be (ptr-1ewoyg4ak0p8hw4fmu2.18120a2.ip6.access.telenet.be [IPv6:2a02:1810:2f21:1400:71cf:2ef2:a581:355a]) (Authenticated sender: brendt@stitcher.io) by srv021.web.ichtushosting.com (Postfix) with ESMTPSA id A2BEF20EE8 for ; Thu, 21 Nov 2019 11:36:52 +0100 (CET) Content-Type: multipart/alternative; boundary="Apple-Mail=_919978B3-FAE1-4298-B2D1-1047D8F2A38E" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-ID: Date: Thu, 21 Nov 2019 11:36:51 +0100 To: PHP Internals List X-Mailer: Apple Mail (2.3445.104.11) X-Envelope-From: Subject: --with-libxml-dir and libxml headers on MacOS From: brendt@stitcher.io (Brent Roose) --Apple-Mail=_919978B3-FAE1-4298-B2D1-1047D8F2A38E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello internals The upgrading guide lists that the option --with-libxml-dir is removed = in PHP 7.4 (https://github.com/php/php-src/blob/PHP-7.4/UPGRADING#L763 = ). = Unfortunately on MacOS, header files are not stored in the usual = locations, which means that compiling PHP fails with the following = error: fatal error: 'libxml/parser.h' file not found With the removal of --with-libxml-dir, I wonder what the right way is to = tell PHP where the header files are located. As a sidenote: some might suggest using the built-in MacOS tool to = install the header files in /usr/include = (https://silvae86.github.io/sysadmin/mac/osx/mojave/beta/libxml2/2018/07/0= 5/fixing-missing-headers-for-homebrew-in-mac-osx-mojave/ = ), though this = tool doesn't seem to work anymore in recent MacOS versions. Kind regards Brent= --Apple-Mail=_919978B3-FAE1-4298-B2D1-1047D8F2A38E--