Skip to content

Zend/zend_call_stack.c: fix build without pthread #13843

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
wants to merge 1 commit into from
Closed

Zend/zend_call_stack.c: fix build without pthread #13843

wants to merge 1 commit into from

Conversation

ffontaine
Copy link
Contributor

Fix the following build failure without pthread raised since version 8.3.0 and a11c8a3:

/home/buildroot/instance-0/output-1/build/php-8.3.4/Zend/zend_call_stack.c:39:11: fatal error: pthread.h: No such file or directory
   39 | # include <pthread.h>
      |           ^~~~~~~~~~~

Fixes:

Fix the following build failure without pthread raised since version
8.3.0 and
a11c8a3:

/home/buildroot/instance-0/output-1/build/php-8.3.4/Zend/zend_call_stack.c:39:11: fatal error: pthread.h: No such file or directory
   39 | # include <pthread.h>
      |           ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/a4ef648a9da50b26ed56d5d490e4cf5a1bfff970

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
@devnexen
Copy link
Member

I m surprised it misses pthread.h, what is your configuration ?

@ffontaine
Copy link
Contributor Author

Build failure is raised with uclibc-ng toolchain which can be built without threads support.

@devnexen
Copy link
Member

ah interesting :) your fix makes sense then.

Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, test failures completely unrelated.

@devnexen devnexen closed this in 5a043c2 Mar 30, 2024
@ffontaine ffontaine deleted the fix-build-without-threads branch March 31, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants