php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78398 libxml does not compile after setting --disable-all
Submitted: 2019-08-10 19:12 UTC Modified: 2019-08-10 22:15 UTC
From: tz at FreeBSD dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 7.4.0beta2 OS: FreeBSD 11.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tz at FreeBSD dot org
New email:
PHP Version: OS:

 

 [2019-08-10 19:12 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-10 19:15 UTC] 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 20:54 UTC] 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 21:23 UTC] cmb@php.net
AFAIK, as of PHP 7.4 it's `--with-libxml`
 [2019-08-10 21:32 UTC] 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:48 UTC] 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:59 UTC] 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 22:15 UTC] tz at FreeBSD dot org
-Status: Open +Status: Closed
 [2019-08-10 22:15 UTC] tz at FreeBSD dot org
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! :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC