Discussion:
sir, error while selecting options during LiS compilation
kishore
2005-12-22 10:08:00 UTC
Permalink
sir,
During LiS compilation, it will prompt to select certain options( in
general default) .

I got a message as following :

/*---------*/

Do you intend to run LiS on this machine with
the currently running kernel? [default: y]
Will use /usr/src/kernels/2.6.9-16.EL-i686/include for header files.
No kernel support for SMP detected.
In file included from <command line>:1:
/usr/src/kernels/2.6.9-16.EL-i686/include/linux/config.h:6:2: #error
including kernel header in userspace; use the glibc headers instead!
Kernel support for mod-versions detected.
Kernel support for IP version 6 detected.
Kernel support for IP version 6 modules detected.
Kernel version verified between kernel source and running kernel
In file included from <command line>:1:
/usr/src/kernels/2.6.9-16.EL-i686/include/linux/config.h:6:2: #error
including kernel header in userspace; use the glibc headers instead!
Kernel compiled using register passing for parameters
Running kernel is version 2.6.9-16.EL
/*---------*/

I used default option only.
I am not able to understand the words
" error including kernel header in userspace; use the glibc headers
instead! ". let me know, what it means.

Can some one provide help in resolving this issue.

regards,
kishore.
Paul Landay
2005-12-23 14:49:51 UTC
Permalink
Here is what I change in the LiS Configure script
for this problem:

+++ LiS-2.18-CS621/Configure 2005-04-11 02:46:49.335246168 -0400
@@ -464,7 +464,7 @@
ac_get_config()
{
if [ -f $KSRC/include/linux/config.h ]; then
- cc -I$KSRC/include -E -dM \
+ cc -D__KERNGLUE__ -I$KSRC/include -E -dM \
-include $KSRC/include/linux/config.h dummy.c >kconfig
x=`grep $1 kconfig 2>&1`
if [ $? -eq 0 ]; then # found it
@@ -600,7 +600,7 @@
get_vers_h()
{
if [ -f $1 ]; then
- cc -I$KSRC/include -E -dM -include $1 dummy.c > kver
+ cc -D__KERNGLUE__ -I$KSRC/include -E -dM -include $1 dummy.c > kver
KVER_H=`grep UTS_RELEASE kver | \
sed -e 's/^.*UTS_RELEASE.//' -e's/"//g' -e's/ *$//'`
NKVER_H=`echo $KVER_H | sed -e 's/-.*//'`


and this to the LiS config.mk file:

@@ -141,7 +141,8 @@
#
PROBLEMS = -Wpointer-arith
PROBLEMS =
-XOPTS = -Wall -Wstrict-prototypes $(PROBLEMS)
+# Added -D__KERNGLUE__ to keep RHEL4 happy
+XOPTS = -Wall -Wstrict-prototypes $(PROBLEMS) -D__KERNGLUE__
XOPTS+= -fno-strict-aliasing -Wno-sign-compare -fno-common


Paul Landay

Loading...