bug-parted
[Top][All Lists]
Advanced

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

Re: Linux 2.6.X compilation


From: Sven Luther
Subject: Re: Linux 2.6.X compilation
Date: Sun, 8 Feb 2004 11:51:35 +0100
User-agent: Mutt/1.5.5.1+cvs20040105i

On Sun, Feb 08, 2004 at 11:46:22AM +0100, Andrzej Szelachowski wrote:
> Hi,
> 
> Is parted supported on linux 2.6.X ??
> 
> When I compile parted on linux 2.6.0 I have a following problems:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -D_REENTRANT 
> -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\" 
> -DLOCALEDIR=\"/usr/share/locale\" -W -Wall -Wno-unused -Wno-switch 
> -Wno-format -Werror -c linux.c  -fPIC -DPIC -o .libs/linux.lo
> linux.c: In function `_device_get_length':
> linux.c:407: syntax error before '[' token
> cc1: warnings being treated as errors
> linux.c:407: warning: signed and unsigned type in conditional expression

This is a known problem, solved by the attached patch.

Actually, userland programs should not use the linux kernel headers, but
incorporate those headers that they use, or so the kernel guys are
saying.

Friendly,

Sven Luther

Attachment: linux-kernel-headers.dpatch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]