Re: Compile Issues

Robert Scussel <[email protected]>
Newsgroups gmane.linux.enbd.general
Organization OmniTI, Inc.
Message-ID <[email protected]>
Hating to reply to my own message, it seems that the nbd on sourceforge 
is different than the one off of Peter's website.

I apologize for the clutter,
B

Robert Scussel wrote:
> Hello,
> 
> I am new to ENBD, and after reading all the directions and the INSTALL 
> directions with the distro I am having some issues compiling. First some 
> info:
> Platform: Quad-opteron
> kernel:  2.6.9-11.ELsmp x86_64 ( rpm that came with install)
> gcc version: gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)
> 
> Source is in /usr/src/linux, I have done make modules, make bzImage in 
> case there are any generated files...
> 
> 
> When I try to simply make I get the following error, or similar ones:
>   In file included from /usr/src/linux/include/asm/atomic.h:4,
>                  from /var/tmp/nbd-2.4.31/nbd/enbd-server.c:44:
> /usr/src/linux/include/linux/config.h:6:2: #error including kernel 
> header in userspace; use the glibc headers instead!
> 
> Now, according to the instructions it states:
> 
>   Also set the environment variable LINUXDIR to the location of the
>   kernel source directory for your target kernel, because nowadays
>   /usr/src/linux (the classical location) seems to be some fake that
>   points to whatever glibc was compiled against
> 
> This causes various errors and then make of enbd-server.o bombs 
> out...I've tried various things, and think that it's something with the 
> headers...any help would be appreciated.
> 
> Thanks,
> B
> 
> 


-- 
Robert Scussel
1024D/BAF70959/0036 B19E 86CE 181D 0912  5FCC 92D8 1EA1 BAF7 0959
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.