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

Tests fail to compile: error: use of undeclared identifier 'pthread_attr_get_np' #517

Open
yurivict opened this issue Jul 26, 2023 · 0 comments

Comments

@yurivict
Copy link

In file included from /usr/ports/devel/eastl/work/EASTL-3.21.12/test/packages/EAThread/source/eathread_callstack.cpp:33:
/usr/ports/devel/eastl/work/EASTL-3.21.12/test/packages/EAThread/source/unix/eathread_pthread_stack_info.cpp:96:18: error: use of undeclared identifier 'pthread_attr_get_np'; did you mean 'pthread_attr_getscope'?
                                int result = pthread_attr_get_np(pthread_self(), &attr); // __BSD__ or __FreeBSD__
                                             ^~~~~~~~~~~~~~~~~~~
                                             pthread_attr_getscope
/usr/include/pthread.h:333:6: note: 'pthread_attr_getscope' declared here
int             pthread_attr_getscope(const pthread_attr_t * __restrict,
                ^
In file included from /usr/ports/devel/eastl/work/EASTL-3.21.12/test/packages/EAThread/source/eathread_callstack.cpp:33:
/usr/ports/devel/eastl/work/EASTL-3.21.12/test/packages/EAThread/source/unix/eathread_pthread_stack_info.cpp:96:38: error: cannot initialize a parameter of type 'const pthread_attr_t *' (aka 'pthread_attr *const *') with an rvalue of type 'pthread_t' (aka 'pthread *')
                                int result = pthread_attr_get_np(pthread_self(), &attr); // __BSD__ or __FreeBSD__
                                                                 ^~~~~~~~~~~~~~
/usr/include/pthread.h:333:61: note: passing argument to parameter here
int             pthread_attr_getscope(const pthread_attr_t * __restrict,
                                                                       ^
2 errors generated.

This module needs #include <pthread_np.h>.

Version: 3.21.12
FreeBSD 13.2

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

No branches or pull requests

1 participant