[php-src] PR #13358: Fix undefined symbol pthread_attr_get_np on Solaris
| From: | petk | Date: | Thu, 08 Feb 2024 20:22:34 +0000 |
| Subject: | [php-src] PR #13358: Fix undefined symbol pthread_attr_get_np on Solaris | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25028@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13358
Author: petk
Solaris doesn't have pthread_attr_get_np().
Checked on Oracle Solaris 11.4.
```sh
...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
```
```sh
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
```