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

Error on ipv6 on make test #18111

Open
Soufleuse opened this issue Mar 19, 2025 · 12 comments
Open

Error on ipv6 on make test #18111

Soufleuse opened this issue Mar 19, 2025 · 12 comments

Comments

@Soufleuse
Copy link

Description

I send you the report of make test command. There is an error related to ipv6; maybe you can figure it out.

php_test_results_20250319_0037.txt

PHP Version

8.4.4

Operating System

Debian 12

@Soufleuse
Copy link
Author

Just to say, I downloaded the tar file of php 8.4.4 source code, I've done the configure and make step from https://www.php.net/manual/fr/install.unix.debian.php. So I am at step 4 just after the make command, wondering if I do make install. There was no error on make, but I got the ipv6 error on make test.

@devnexen
Copy link
Member

Hi @Soufleuse and thanks for your report. I have few questions :

  • Are you running it in a container ?
  • What is the cat /proc/net/if_inet6 (or ip -6 addr show eventually) output ?
  • no ipv6 firewall rules ? e.g. sudo ip6tables -F

Thanks

@Soufleuse
Copy link
Author

Hi,

I'm running in a virtual machine configured for development, and I have no Docker-like containers.

cat /proc/net/if_inet6 gives that :
fe800000000000000a0027fffe3e0463 02 40 20 80 enp0s3
00000000000000000000000000000001 01 80 10 80 lo

The result of sudo ip6tables -F is... no output to show.

Hoping it helps,

Steve "Soufleuse" Lemieux

@devnexen
Copy link
Member

That might depend on which virtual machine technology you re using and above all your virtual machine's network settings might make this test fails.

@Soufleuse
Copy link
Author

I'm using Virtual Box version 7.1.6.r167084 on a Ubuntu machine. The network is bridged; I don't know if there is any settings to look at, but I might say I haven't yet used IPv6; so that part might be bugged and I don't think it can cause problems, except if I want to switch to IPv6, which is not the case actually.

@devnexen
Copy link
Member

devnexen commented Mar 20, 2025

Ok.. in theory bridged mode should work if the host itself supports ipv6 multicast.
Couple of things on top of my head to try out eventually.

  • Did you try testing in the host and if yes is this test workable ?
  • Checking your VM instance network setting Promiscuous Mode, try setting to Allow all if not already.
  • In the guest, checking net.ipv6.conf.all.mc_forwarding sysctl value, enabling if disabled.

@Soufleuse
Copy link
Author

I began to install PHP 8.4.4 on the virtual machine, I haven't tested on my host yet. I did not find any net.ipv6.conf.all.mc_forwarding in my config, but I saw net.ipv6.conf.all.forwarding=1 commented in /etc/sysctl.conf, so I guess I have a default value for that fowarding. When I'll save that command, I'll set the Promiscuous Mode to allow all.

@Soufleuse
Copy link
Author

I changed the promiscuity mode and made make test again. I got the same message. Did I have to configure/do make again?

Also, I haven't yet tried to install php 8.4.5 on the host. I'm on that.

php_test_results_20250320_1821.txt

@Soufleuse
Copy link
Author

On my host, here is the error.

php_test_results_20250320_1957.txt

@devnexen
Copy link
Member

devnexen commented Mar 21, 2025

Ok maybe let's check some possible reasons for the host :

  • see if lo appears there and its index cat /proc/net/if_inet6.
  • if multicast is supported for this interface ip link show lo.
  • Any firewall rules ? sudo ip6tables -L -n -v.

Depending on your response, we will see.

@Soufleuse
Copy link
Author

I send you here the result of each command.

ip6tables.txt
linkshow.txt
testinet6.txt

@devnexen
Copy link
Member

I see, it seems the firewall rules might be the cause. It might be possible to allow what is needed for the test for, respectively, inbound and outbound rules.

ip6tables -I INPUT -i lo -d ff00::/8 -j ACCEPT
ip6tables -I OUTPUT -o lo -d ff00::/8 -j ACCEPT

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

No branches or pull requests

2 participants