Bug #78398 [Opn]: libxml does not compile after setting --disable-all
| From: | tz at FreeBSD dot org | Date: | Sat, 10 Aug 2019 21:48:18 +0000 |
| Subject: | Bug #78398 [Opn]: libxml does not compile after setting --disable-all | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222177@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78398&edit=1
ID: 78398
User updated by: tz at FreeBSD dot org
Reported by: tz at FreeBSD dot org
Summary: libxml does not compile after setting --disable-all
Status: Open
Type: Bug
Package: Compile Failure
Operating System: FreeBSD 11.2
PHP Version: 7.4.0beta2
Block user comment: N
Private report: N
New Comment:
Aloha,
--with-libxml is the way to go! But it is sadly undocumented:
[/usr/ports/lang/php74/work/php-7.4.0beta2]$ ./configure --help | grep xml
--without-libxml Build without LIBXML support
--disable-simplexml Disable SimpleXML support
--disable-xml Disable XML support
--with-expat XML: use expat instead of libxml2
--disable-xmlreader Disable XMLReader support
--with-xmlrpc[=DIR] Include XMLRPC-EPI support
--with-expat XMLRPC-EPI: use expat instead of libxml2
--disable-xmlwriter Disable XMLWriter support
Can you please add it to the help text of ./configure?
Greetings,
Torsten
Previous Comments:
------------------------------------------------------------------------
[2019-08-10 21:32:23] phpbugreports at gmail dot com
what about "./configure --help | grep xml" and just type "--with-libxml" and if
needed with "--with-libxml-dir=/usr"
------------------------------------------------------------------------
[2019-08-10 21:23:23] cmb@php.net
AFAIK, as of PHP 7.4 it's
--with-libxml
------------------------------------------------------------------------
[2019-08-10 20:54:37] tz at FreeBSD dot org
Aloha,
i'am sorry, but are you aware, that --enable=libxml just abort ./configure? There seems to be
no documented switch to enable building of libxml after setting --disable-all as far as i can see.
Maybe you can provide me an example how to enable build of libxml in combination with -disable-all?
Thank you,
Torsten
------------------------------------------------------------------------
[2019-08-10 19:15:26] phpbugreports at gmail dot com
when you start with --disable-all you are supposed to know what you are doing
./configure --disable-all --enable=xyz
------------------------------------------------------------------------
[2019-08-10 19:12:24] tz at FreeBSD dot org
Description:
------------
Aloha,
in FreeBSD all PHP versions are compiled with --disable-all as default. Same for PHP 7.4.
This also seems to disable libxml. Which is needed for dom, xml, etc. Since there is no way anymore
to enable libxml all this extensions fail to compile.
There are two possibilities for solving the issue:
1. --disable-all does not disable libxml
2. There is a way to enable libxml
Greetings,
Torsten
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78398&edit=1