This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH 2/2] Remove ancient GCC string inlines


On Mon, 12 Oct 2015, Wilco Dijkstra wrote:

> ../sysdeps/unix/sysv/linux/i386/sysdep.h:409:12: error: '__NR_set_thread_area' undeclared (first use
> in this function)

If you have a compiler installation with working -m32 support, it should 
be searching a copy of kernel headers (installed with the Linux kernel's 
headers_install target) containing asm/unistd.h that looks like

#ifndef _ASM_X86_UNISTD_H
#define _ASM_X86_UNISTD_H

/* x32 syscall flag bit */
#define __X32_SYSCALL_BIT       0x40000000

# ifdef __i386__
#  include <asm/unistd_32.h>
# elif defined(__ILP32__)
#  include <asm/unistd_x32.h>
# else
#  include <asm/unistd_64.h>
# endif

#endif /* _ASM_X86_UNISTD_H */

and where unistd_32.h contains the definition of __NR_set_thread_area, and 
where an include of sys/syscall.h from within glibc ends up including that 
<asm/unistd.h>.

So, you need to find out why your compiler installation isn't finding an 
appropriate asm/unistd.h, and fix that problem.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]