Summary: | sys-libs/libcap-ng-0.7 - fails with >=sys-kernel/linux-headers-3.3: In function ‘init’: cap-ng.c:166:32: error: ‘__NR_gettid’ undeclared (first use in this function) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Mirosław <bug> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Marcin Mirosław
2012-07-31 07:57:06 UTC
Created attachment 319820 [details]
build.log
With sys-kernel/linux-headers-3.1 libcap-ng compiles fine. builds fine for me w/linux-headers-3.5 looking at the code, it does everything right that i can see cap-ng.c includes sys/syscall.h, and sys/syscall.h includes asm/unistd.h, and __NR_gettid is defined for every x86 ABI in the respective asm/unistd.h header go into the build dir and run: $ gcc -DHAVE_CONFIG_H -I. -I.. -fPIC -DPIC -D_GNU_SOURCE -O2 -march=native \ cap-ng.c -E -dD -o cap-ng.i then post the cap-ng.i file as an attachment it should have lines like: # 1 "/usr/include/sys/syscall.h" 1 3 4 # 1 "/usr/include/asm/unistd.h" 1 3 4 # 1 "/usr/include/asm/unistd_64.h" 1 3 4 #define __NR_gettid 186 if your file includes anything from /usr/local/include, then your system is broken I don't have access to this host for a weekend. I'll check it. I don't have /usr/local/include. The strangest thing is libcap-ng now compiles fine, i've only doen emerge --sync... I have no idea what could change. |