[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#58636: Can't build glibc 2.1.3-2



Package: glibc
Version: 2.1.3-2

Can't build source. The source build fails claiming the kernel headers are
too old, displaying the following:

checking for gcc -fexceptions... yes
checking for DWARF2 unwind info support... static
checking for __builtin_expect... no
running configure fragment for /Debian/pkgwork/glibc/glibc-2.1.3/glibc-2.1.3/linuxthreads/sysdeps/unix/sysv/linux
running configure fragment for /Debian/pkgwork/glibc/glibc-2.1.3/glibc-2.1.3/sysdeps/unix/sysv/linux
checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.0.10 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 2.0.10 or later.  This check uses <linux/version.h>, so
make sure that file was built correctly when installing the kernel header
files.  To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.
make: *** [/Debian/pkgwork/glibc/glibc-2.1.3/i386-linux/configured-source] Error 1

I get these same messages on both my Intel machine and my Sparc. The
/usr/include/linux/version.h file on the Intel machine looks like:

#define UTS_RELEASE "2.2.10"
#define LINUX_VERSION_CODE 131594
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

while the version.h file on my Sparc is for 2.2.14, both of which are
newer than 2.0.10

Even declaring KERNEL_SOURCE=/usr/local/src/linux, which is where my
2.2.14 kernel source is stashed, doesn't help, and the error messages
remain the same.

It seems that I have properly satisfied these criterion, but the configure
script fails to recognize this fact.

In any case the message seems to be flawed, or glibc is. The headers used
to create /usr/include/asm and /usr/include/linux should come from Kernel
Headers or Kernel Source, and NOT from the last libc6 version.

Waiting is,

Dwarf
--
_-_-_-_-_-   Author of "The Debian Linux User's Guide"  _-_-_-_-_-_-

aka   Dale Scheetz                   Phone:   1 (850) 656-9769
      Flexible Software              11000 McCrackin Road
      e-mail:  dwarf@polaris.net     Tallahassee, FL  32308

_-_-_-_-_-_- See www.linuxpress.com for more details  _-_-_-_-_-_-_-


Reply to: