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

Bug#191114: libc6.1-dev: user space program cannot include linux/module.h



Package: libc6.1-dev
Version: 2.3.1-17
Severity: important

Since /usr/include/linux/module.h includes asm/atomic.h at line 25, a
user-space program that includes linux/module.h will fail to build with
the following include trail:

 In file included from /usr/include/asm/system.h:19,
		  from /usr/include/asm/atomic.h:17,
		  from /usr/include/linux/module.h:25,
		  from linux_module.c:52:
 /usr/include/asm/pal.h:89: syntax error before "pal_status_t"
 /usr/include/asm/pal.h:102: syntax error before "pal_cache_level_t"
 /usr/include/asm/pal.h:110: syntax error before "pal_cache_type_t"
 /usr/include/asm/pal.h:123: syntax error before "pal_cache_line_state_t"
 /usr/include/asm/pal.h:130: syntax error before "u64"
 /usr/include/asm/pal.h:135: syntax error before "u64"

This is because of eventual ifdef(KERNEL) directives in further include
files.  Inclusion of this file used to compile fine in earlier versions
of the libc6.1-dev package.

A user-space program may wish to include the linux/module.h file if it
wants to query the system for loaded module information.

Thanks,
Alex


-- System Information
Debian Release: testing/unstable
Architecture: ia64
Kernel: Linux type3 2.4.20-mckinley-smp #1 SMP Thu Apr 10 16:00:36 MDT 2003 ia64
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6.1-dev depends on:
ii  libc6.1                       2.3.1-17   GNU C Library: Shared libraries an




Reply to: