Skip to content

Fix undefined symbol pthread_attr_get_np on Solaris #13358

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

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

petk
Copy link
Member

@petk petk commented Feb 8, 2024

Solaris doesn't have pthread_attr_get_np().

Checked on Oracle Solaris 11.4.

...php-src/Zend/zend_call_stack.c:674:17: warning: implicit declaration of function ‘pthread_attr_get_np’; did you mean ‘pthread_attr_getname_np’? [-Wimplicit-function-declaration]
  674 |         error = pthread_attr_get_np(pthread_self(), &attr);
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 pthread_attr_getname_np
Undefined                       first referenced
 symbol                             in file
pthread_attr_get_np                 Zend/zend_call_stack.o
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status

Solaris doesn't have pthread_attr_get_np().

Checked on Oracle Solaris 11.4.
@petk petk requested a review from devnexen February 8, 2024 20:08
@petk petk requested a review from iluuu1994 as a code owner February 8, 2024 20:08
@devnexen
Copy link
Member

devnexen commented Feb 8, 2024

Solaris doesn't have pthread_attr_get_np().

Checked on Oracle Solaris 11.4.

...php-src/Zend/zend_call_stack.c:674:17: warning: implicit declaration of function ‘pthread_attr_get_np’; did you mean ‘pthread_attr_getname_np’? [-Wimplicit-function-declaration]
  674 |         error = pthread_attr_get_np(pthread_self(), &attr);
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 pthread_attr_getname_np
Undefined                       first referenced
 symbol                             in file
pthread_attr_get_np                 Zend/zend_call_stack.o
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status

Solaris :-), are the Zend stack_limit tests passing for you ?

@petk
Copy link
Member Author

petk commented Feb 8, 2024 via email

@petk petk merged commit 968f048 into php:master Feb 8, 2024
@petk petk deleted the patch-solaris-call-stack branch February 8, 2024 23:46
devnexen added a commit to devnexen/php-src that referenced this pull request Feb 10, 2024
for threaded context, it solely uses a new api only available on
illumos.
Here using a common older api to get the stack info for the current
thread.
while at it, completing stack_limit_010 test for these platforms.
devnexen added a commit to devnexen/php-src that referenced this pull request Feb 16, 2024
for threaded context, it solely uses a new api only available on
illumos.
Here using a common older api to get the stack info for the current
thread.
while at it, completing stack_limit_010 test for these platforms.
devnexen added a commit that referenced this pull request Feb 16, 2024
for threaded context, it solely uses a new api only available on
illumos.
Here using a common older api to get the stack info for the current
thread.
while at it, completing stack_limit_010 test for these platforms.
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