Opened 2 years ago
Last modified 22 months ago
#68383 new defect
python312 fails on 10.6.8 Rosetta: error: implicit declaration of function 'pthread_threadid_np'; did you mean 'pthread_is_threaded_np'?
| Reported by: | barracuda156 | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.8.1 |
| Keywords: | snowleopard, powerpc, rosetta | Cc: | ryandesign (Ryan Carsten Schmidt), jmroot (Joshua Root) |
| Port: | python312 |
Description
In file included from Python/thread.c:43:
Python/thread_pthread.h: In function 'PyThread_get_thread_native_id':
Python/thread_pthread.h:339:12: error: implicit declaration of function 'pthread_threadid_np'; did you mean 'pthread_is_threaded_np'? [-Werror=implicit-function-declaration]
339 | (void) pthread_threadid_np(NULL, &native_id);
| ^~~~~~~~~~~~~~~~~~~
| pthread_is_threaded_np
Looks like the patch has to be updated now to work correctly.
- S. The same problem occurs on 10.6 PPC (natively), but I have confirmed it also happens on the standard 10.6.8.
No problem on 10.5.8 for ppc. It is specific to 10.6.x.
Change History (2)
comment:1 Changed 2 years ago by barracuda156
| Summary: | python312 fails on 10.6.8 Rosetta → python312 fails on 10.6.8 Rosetta: error: implicit declaration of function 'pthread_threadid_np'; did you mean 'pthread_is_threaded_np'? |
|---|
comment:2 Changed 22 months ago by barracuda156
Note: See
TracTickets for help on using
tickets.

No surprise it is not available: Apple explicitly disabled it: https://github.com/apple-oss-distributions/Libc/blob/Libc-594.9.5/pthreads/pthread.h#L475-L477