Bug #78398 [Opn->Csd]: libxml does not compile after setting --disable-all
| From: | tz at FreeBSD dot org | Date: | Sat, 10 Aug 2019 22:15:06 +0000 |
| Subject: | Bug #78398 [Opn->Csd]: libxml does not compile after setting --disable-all | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222179@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
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: FreeBSD 11.2
PHP Version: 7.4.0beta2
Block user comment: N
Private report: N
New Comment:
I'm sorry - i see, you are right.
It is quite confusing that some options are only documented with "enable-xyz" while others
are only documented with "disable-xyz".
Thank you for your help! I'm an important step further in order to bring PHP 7.4 to FreeBSD! :)
Previous Comments:
------------------------------------------------------------------------
[2019-08-10 21:59:00] phpbugreports at gmail dot com
"--with-libxml is the way to go! But it is sadly undocumented" is not true as you quote
"--without-libxml Build without LIBXML support" and all the disable/enable and
with/without are always pairs
when the default is enbaled it and you have a switch to disable it but you start with "disable
everything" the logical turnaround is to enable otherwise by default enabled things explicit
that's how configure works in general and is not php specific
------------------------------------------------------------------------
[2019-08-10 21:48:18] tz at FreeBSD dot org
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
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78398
--
Edit this bug report at https://bugs.php.net/bug.php?id=78398&edit=1