Bug#220624: libc6-dev: breaks builds on 2.4 systems because depending on linux-kernel-headers which contain 2.5 headers
Package: libc6-dev
Version: 2.3.2.ds1-10
Severity: normal
Seems that libc6-dev depends on linux-kernel-headers which contain 2.5
kernel headers. On a 2.4 system, and perhaps this also applies to
2.5/2.6 systems too, any source that includes <linux/module.h> breaks
with compiler errors. Attached below is some test code that makes use
of the public interface of query_module(). This builds on pre-ds1-*
libc6-dev systems, but breaks immediately on the current ds1-10 version.
Thanks,
Alex Tsariounov
---8<---- compile this:
#include <stdio.h>
#include <linux/module.h>
main(int argc, char *argv[])
{
struct module_info mbuf;
size_t ret;
if (argc<2) {
printf("Usage: %s module_name\n", argv[0]);
exit(1);
}
if (query_module(argv[1], QM_INFO, &mbuf, sizeof(mbuf), &ret)) {
printf("Can't find module %s in kernel\n", argv[1]);
return 1;
}
else {
printf("Found %s loaded in kernel\n", argv[1]);
}
exit(0);
}
---8<------8<------
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux finback 2.4.22-1-686 #6 Sat Oct 4 14:09:08 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages libc6-dev depends on:
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
di linux-kernel-headers 2.5.999-test7-bk-8 Linux Kernel Headers for developme
-- no debconf information
Reply to: