[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined reference to `_pthread_self' / `__pthread_spin_lock'
From: |
Marcus Brinkmann |
Subject: |
Re: undefined reference to `_pthread_self' / `__pthread_spin_lock' |
Date: |
Tue, 08 Feb 2005 01:52:13 +0100 |
User-agent: |
Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Tue, 08 Feb 2005 00:01:36 +0100,
"R. Koot" <address@hidden> wrote:
>
> Help! Building fails when I comes to physmem. I don't know what's going
> wrong but it seems to have to to something with threading/libc.
Yes. libpthread uses extern inlines without providing a default
implementation in the library. Depending on which gcc you use, it can
trigger these bugs.
Neal, do you want to look at it? I tried, but these cases seem a bit
confusing. _pthread_self can just be attributed always_inline, but
for __pthread_spin_lock I am not sure. The comments in the generic
code don't match the code in the L4 port.
Thanks,
Marcus