Re: [pthread problem] Re: problem building mesa-24.1.7

"Pocket" ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>

On 2/3/25 13:16, tjoen ([email protected] via lfs-support Mailing List) wrote:
> On 2/3/25 12:13 PM, Xi Ruoyao ([email protected] via lfs-support 
> Mailing List) wrote:
>> On Mon, 2025-02-03 at 12:03 +0100, tjoen wrote:
> ...
>>> Mesa did a search for pkg-config and stops if not found
>>
>> It shouldn't stop.  It should download the dependency.
>>
>> If it stops either you have a network connection issue or you are doing
>> something different from the book.
> 
> I see it has downloaded syn and building it
> Yesterday I had a problem with certs. I think that was the problem
> 
> But now pthread problem:
> undefined reference to `__pthread_mutex_timedlock64
> 
> pthread.h
> ..
> #ifdef __USE_XOPEN2K
> /* Wait until lock becomes available, or specified time passes. */
> # ifndef __USE_TIME64_REDIRECTS
> extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
>                                      const struct timespec *__restrict
>                                      __abstime) __THROWNL __nonnull ((1, 
> 2));
> # else
> #  ifdef __REDIRECT_NTHNL
> extern int __REDIRECT_NTHNL (pthread_mutex_timedlock,
>                               (pthread_mutex_t *__restrict __mutex,
>                                const struct timespec *__restrict 
> __abstime),
>                               __pthread_mutex_timedlock64) __nonnull 
> ((1, 2));
> #  else
> #   define pthread_mutex_timedlock __pthread_mutex_timedlock64
> #  endif
> # endif
> #endif
> ..
> 
> So __USE_XOPEN2K and __USE_TIME64_REDIRECTS  are defined
> But where is __pthread_mutex_timedlock64 ? Not in libpthread?
> I remember the same problem a while ago. I think I postponed the
> solution.
> 

grep -R  __pthread_mutex_timedlock64 /usr/include/
/usr/include/pthread.h: 
__pthread_mutex_timedlock64) __nonnull ((1, 2));
/usr/include/pthread.h:#   define pthread_mutex_timedlock 
__pthread_mutex_timedlock64


-- 
Hindi madali ang maging ako

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.