Linux LVM users
 help / color / mirror / Atom feed
From: "Martin Mosny, PosTel a.s." <mmosny@postel.sk>
To: Anders Widman <linux-lvm@sistina.com>
Subject: Re: [linux-lvm] Problem compiling LVM 1.0.5
Date: Wed Jul 31 06:34:02 2002	[thread overview]
Message-ID: <1611908674.20020731133430@postel.sk> (raw)
In-Reply-To: <549012796.20020731132606@tnonline.net>

Hello Anders,

it's a very simple solution.

in the new RH, glibc-devel and the INCLUDE policy/tactics is to DO NOT
INCLUDE kernel header files to user space program.

you get this error:
#error Invalid kernel header included in userspace

this is only preprocessor directive-it's only to break make.

you can simple use the files from kernel include tree.

change the include path or overwrite the old one.

[root@gis2 root]# more /usr/include/linux/autoconf.h
#error Invalid kernel header included in userspace
[root@gis2 root]#
[root@gis2 root]# more /usr/src/linux/include/linux/autoconf.h
.....

it's save??????

for   now   yes,  all  programers  need  to  change  INCLUDE files for
COMPATIBLE INCLUDE TACTICS. this same problem has a lot of software.
if you want know all about it read some articles on the web! :))

have a nice day!


Martin



Wednesday, July 31, 2002, 1:26:06 PM, you wrote:


AW>    I have a problem with compiling LVM 1.0.5.

AW>    Configure works fine. but when I run make I get this message:


AW> [root@server 1.0.5]# make
AW> make[1]: Entering directory `/usr/src/LVM/1.0.5/tools'
AW> make[2]: Entering directory `/usr/src/LVM/1.0.5/tools/lib'
AW> make[3]: Entering directory `/usr/src/LVM/1.0.5/tools/lib'
AW> gcc -c -pipe -g -O0 -Wall -DDEBUG -I../../tools/lib -I../../tools -I/usr/src/LVM/1.0.5/tools/lib -o basename.o basename.c
AW> In file included from ../../tools/lib/liblvm.h:59,
AW>                  from basename.c:34:
AW> /usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
AW> make[3]: *** [basename.o] Error 1
AW> make[3]: Leaving directory `/usr/src/LVM/1.0.5/tools/lib'
AW> make[2]: *** [all] Error 2
AW> make[2]: Leaving directory `/usr/src/LVM/1.0.5/tools/lib'
AW> make[2]: Entering directory `/usr/src/LVM/1.0.5/tools/man8'
AW> make[3]: Entering directory `/usr/src/LVM/1.0.5/tools/man8'
AW> make[3]: Leaving directory `/usr/src/LVM/1.0.5/tools/man8'
AW> make[2]: Leaving directory `/usr/src/LVM/1.0.5/tools/man8'
AW> make[2]: Entering directory `/usr/src/LVM/1.0.5/tools'
AW> gcc -c -pipe -g -O0 -Wall -DDEBUG -I../tools/lib -I../tools -I/usr/src/LVM/1.0.5/tools/lib -o e2fsadm.o e2fsadm.c
AW> In file included from ../tools/lib/liblvm.h:59,
AW>                  from ../tools/lvm_user.h:43,
AW>                  from e2fsadm.c:55:
AW> /usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
AW> make[2]: *** [e2fsadm.o] Error 1
AW> make[2]: Leaving directory `/usr/src/LVM/1.0.5/tools'
AW> make[1]: *** [all] Error 2
AW> make[1]: Leaving directory `/usr/src/LVM/1.0.5/tools'
AW> make[1]: Entering directory `/usr/src/LVM/1.0.5'

AW> **********************************
AW> There were errors in your compile.
AW> **********************************

AW> make[1]: *** [.touchbuilt] Error 1
AW> make[1]: Leaving directory `/usr/src/LVM/1.0.5'
AW> make: *** [all] Error 2
   

AW> I am running Red Hat 7.3 with GCC 3.1.1 (and tried with the 2.96 that
AW> came with Red Hat..)

AW> Thanks for any help.

AW> //Anders


AW> _______________________________________________
AW> linux-lvm mailing list
AW> linux-lvm@sistina.com
AW> http://lists.sistina.com/mailman/listinfo/linux-lvm
AW> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

  parent reply	other threads:[~2002-07-31  6:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31  6:25 [linux-lvm] Problem compiling LVM 1.0.5 Anders Widman
2002-07-31  6:33 ` Alasdair G Kergon
2002-07-31 12:08   ` Luca Berra
2002-07-31  6:34 ` Martin Mosny, PosTel a.s. [this message]
2002-07-31 10:59   ` bscott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1611908674.20020731133430@postel.sk \
    --to=mmosny@postel.sk \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox