bug-parted
[Top][All Lists]
Advanced

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

Re: still - Linux 2.6.X compilation problems


From: Sven Luther
Subject: Re: still - Linux 2.6.X compilation problems
Date: Fri, 13 Feb 2004 11:38:46 +0100
User-agent: Mutt/1.5.5.1+cvs20040105i

On Fri, Feb 13, 2004 at 11:26:49AM +0100, Andrzej Szelachowski wrote:
> Hi Sven,
> 
> I've exchanged the line 167 form /libparted/linux.c with the one form the 
> patch that you have send me, but I still experienced very similar problems:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -O2 -march=i486 -mcpu=i686 
> -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
> cc1: warnings being treated as errors
> linux.c: In function `_device_get_length':
> linux.c:407: warning: signed and unsigned type in conditional expression
> make[3]: *** [linux.lo] Error 1
> make[3]: Leaving directory `/data/parted-1.6.6/libparted'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/data/parted-1.6.6/libparted'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/data/parted-1.6.6'
> make: *** [all-recursive-am] Error 2
> 
> Is there anything alse that can be changed???
> 
> best regards
> 
> Andrzej
> 
> P.S.
> I'm running Slackware 9.1 with 2.6.0 kernel on Duron 1600.

Yeah, the 2.6.0 kernel headers are broken and need to be fixed. The fix
is in debian's linux-kernel-headers, which is why i didn't tell you
about it before, and also in september LKML, but the kernel guys,
altough saying it is ok, were in no hurry to apply it, not caring about
userland.

Basically, you have to go into /usr/include/asm/ioctl.h, and change the
signed int to a unsigned int there. It is the one just above the ioctl's
if i remember well. 

Friendly,

Sven Luther




reply via email to

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