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

Bug#35113: libc6-dev: not able to compile itself with headers in this package



Package: libc6-dev
Version: 2.1.1-0.1

running configure fragment for
/home/joey/debian/pentium/TEMP/glibc-2.1.1/glibc-
2.1.1/linuxthreads/sysdeps/unix/sysv/linux
running configure fragment for
/home/joey/debian/pentium/TEMP/glibc-2.1.1/glibc-
2.1.1/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.

I think this test must be seriously broken, because:

joey@kite:~/debian/pentium>cat /usr/include/linux/version.h 
#define UTS_RELEASE "2.2.1"
#define LINUX_VERSION_CODE 131585
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

This is certianly 2.0.10 or later headers. Even odder, if I use the 2.2.1
kernel source package to generate a kernel-headers-2.2.1 package and install
that, the test succeeds. So it seems that if it finds the identical file
here it's happy:

joey@kite:~/debian/pentium>cat
/usr/src/kernel-headers-2.2.1/include/linux/version.h
#define UTS_RELEASE "2.2.1"
#define LINUX_VERSION_CODE 131585
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

I think it'd be a good idea to make it accept finding this file in the
usual location, /usr/include/linux/.

-- System Information
Debian Release: potato
Kernel Version: Linux kite 2.2.3 #1 Fri Mar 12 15:43:27 PST 1999 i686 unknown

Versions of the packages libc6-dev depends on:
ii  libc6           2.1.1-0.1      GNU C Library: shared libraries


Reply to: