This is the mail archive of the libc-help@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]

error while build glibc using kernel headers


Hi all,
While I was tring to build glibc-2.11, I encountered the following
error during make:

[diviner@VSATv glibc-build]$ ../glibc-2.11/configure --prefix=/usr
--with-headers=/usr/src/linux/include --enable-kernel=2.6.16
...
[diviner@VSATv glibc-build]$ make
...
make  subdir=nscd -C nscd ..=../ others
make[2]: Entering directory `/home/diviner/Tars/glibc-2.11/nscd'
gcc nscd.c -c -std=gnu99 -fgnu89-inline -O1 -Wall -Winline
-Wwrite-strings -fmerge-all-constants -march=i686 -Wstrict-prototypes
-mpreferred-stack-boundary=2  -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2 -fpie
-fstack-protector   -I../include -I/home/diviner/Tars/glibc-build/nscd
-I/home/diviner/Tars/glibc-build -I../sysdeps/i386/elf
-I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-I../nptl  -I.. -I../libio -I. -nostdinc -isystem
/usr/lib/gcc/i386-redhat-linux/4.3.0/include -isystem
/usr/src/linux/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h   -DNOT_IN_libc=1    -o
/home/diviner/Tars/glibc-build/nscd/nscd.o -MD -MP -MF
/home/diviner/Tars/glibc-build/nscd/nscd.o.dt -MT
/home/diviner/Tars/glibc-build/nscd/nscd.o
In file included from nscd.c:46:
selinux.h:26:29: error: sys/capability.h: No such file or directory
In file included from nscd.c:46:
selinux.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'preserve_capabilities'
selinux.h:51: error: expected ')' before 'new_caps'
make[2]: *** [/home/diviner/Tars/glibc-build/nscd/nscd.o] Error 1
make[2]: Leaving directory `/home/diviner/Tars/glibc-2.11/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/home/diviner/Tars/glibc-2.11'
make: *** [all] Error 2

I want to compile glibc with a new set of kernel headers located at
/usr/src/linux/include, so I set
--with-headers=/usr/src/linux/include. The error message shows missing
of sys/capability.h, but I thought sys/capability.h is not part of
kernel headers, so it definitely could not be found if I use a set of
kernel headers instead of default headers under /usr/include. Am I
understanding this correctly? And how can this problem be fixed?

Thank you for any suggestions!

Shuxian


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