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

./configure error when building with NixOS #15946

Open
iluuu1994 opened this issue Sep 18, 2024 · 2 comments · May be fixed by #13476
Open

./configure error when building with NixOS #15946

iluuu1994 opened this issue Sep 18, 2024 · 2 comments · May be fixed by #13476

Comments

@iluuu1994
Copy link
Member

iluuu1994 commented Sep 18, 2024

Description

./configure emits an error on NixOS when executing /usr/bin/file conftest.o:

case `/usr/bin/file conftest.o` in

./configure: line 84230: /usr/bin/file: No such file or directory

The build succeeds regardless, so it's not a huge issue.

file does not live in /usr/bin on NixOS, as the binaries depend on the environment. Instead, they can be looked up with /usr/bin/env. /usr/bin/env file conftest.o works as expected, but it seems that passing further arguments to env is not portable. Maybe we can just depend on file being provided in the current $PATH?

@petk I already pinged on on Slack about this, but you might not be very active there. 🙂

PHP Version

PHP 8.2+

Operating System

NixOS

@petk
Copy link
Member

petk commented Sep 18, 2024

This is fixed in Libtool 2.4.7 and can be done via #13476

@iluuu1994
Copy link
Member Author

That's great! Thank you!

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

Successfully merging a pull request may close this issue.

2 participants