asdf-community / asdf-php

PHP plugin for the asdf version manager
https://github.com/asdf-vm/asdf
Apache License 2.0
216 stars 101 forks source link

Build Failure With libxml2-2.12.3 #171

Open MateusFGoncalves opened 3 months ago

MateusFGoncalves commented 3 months ago

Provide environment information

When trying to install version 7.4.30 on my Manjaro it gives the following error:

/tmp/tmp.VNdgogunqW/php-src-php-7.4.0/ext/libxml/libxml.c:990:49: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]
  990 |                 xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}

To Reproduce

asdf install php 7.4.0

Describe the Bug

To reproduce the error, just run the installation command.

Expected Behaviour

I want you to correctly install the PHP version.

xiaklizrum commented 3 months ago

same case on archlinux with 8.1.10

fix waiting here

Pablo1Gustavo commented 1 month ago

test using a 2.9 version of libxml2

tkikuchi2000 commented 1 month ago

Hi, awesome developer!

same case on archlinux with 8.1.24

I created a function to apply the following patch if libxml2.so.2.12.0 or later is used (#175).

I exclude macOS because I don't own a Mac.

I have confirmed that it works on archlinux.

However, the build is still not successful due to a different error (php-intl related) from this problem.