Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failure With libxml2-2.12.3 #171

Open
MateusFGoncalves opened this issue Jun 17, 2024 · 4 comments
Open

Build Failure With libxml2-2.12.3 #171

MateusFGoncalves opened this issue Jun 17, 2024 · 4 comments

Comments

@MateusFGoncalves
Copy link

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
Copy link

same case on archlinux with 8.1.10

fix waiting here

@Pablo1Gustavo
Copy link

test using a 2.9 version of libxml2

@tkikuchi2000
Copy link

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).

  • php/php-src@ 8a95e61
  • php/php-src@ 0a39890

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.

@lejoko
Copy link

lejoko commented Nov 19, 2024

Same problem on MacOS Sonoma 14.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants