<bits/libc-lock.h> and <bp-sym.h>
Greg McGary
greg@mcgary.org
Mon Jul 17 01:33:00 GMT 2000
"H . J . Lu" <hjl@valinux.com> writes:
> <bits/libc-lock.h> includes <bp-sym.h> and uses BP_SYM. But <bp-sym.h>
> is not found anywhere.
For what compilation does it fail?
There are three bits/libc-lock.h files:
sysdeps/generic/bits/libc-lock.h
sysdeps/mach/bits/libc-lock.h
linuxthreads/sysdeps/pthread/bits/libc-lock.h
You must be referring to the linuxthreads one, since that's the
only one with BP_SYM & <bp-sym.h>.
The #include is well guarded, and should only happen in the context
where bp-sym.h can be found in sysdeps/generic/bp-sym.h:
------------------------------------------------------------------------------
...
#ifndef __NO_WEAK_PTHREAD_ALIASES
# ifdef weak_extern
# if _LIBC
# include <bp-sym.h>
# else
# define BP_SYM (sym) sym
# endif
...
------------------------------------------------------------------------------
How did you get it to fail? What host & target?
Greg
More information about the Libc-hacker
mailing list