Skip to content

Configure error grep illegal option q #15515

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

Closed
petk opened this issue Aug 21, 2024 · 0 comments
Closed

Configure error grep illegal option q #15515

petk opened this issue Aug 21, 2024 · 0 comments

Comments

@petk
Copy link
Member

petk commented Aug 21, 2024

Description

The following code:

./buildconf
./configure

Resulted in this output:

...
checking whether we are using musl libc... grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
no
...

But I expected this output instead:

checking whether we are using musl libc... no

PHP Version

PHP 8.2+

Operating System

Oracle Solaris 10

petk added a commit to petk/php-src that referenced this issue Aug 21, 2024
On Solaris default grep doesn't support the -q option. In such cases
the grep output can be redirected to /dev/null and the exit status is
checked.
@petk petk closed this as completed in 63841ba Aug 21, 2024
petk added a commit that referenced this issue Aug 21, 2024
* PHP-8.2:
  Fix GH-15515: Configure error grep illegal option q (#15516)
petk added a commit that referenced this issue Aug 21, 2024
* PHP-8.3:
  Fix GH-15515: Configure error grep illegal option q (#15516)
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