[parted-devel] Parted on GNU Hurd based systems

David Cantrell dcantrell at redhat.com
Sat Feb 24 12:01:06 CET 2007


On Sat, 2007-02-24 at 02:08 +0530, Debarshi 'Rishi' Ray wrote:
> Hello folks,
> 
> I was trying to find out how well Parted performs on GNU (Hurd based) systems.
> 
> I tried the 1.8.2 tarball and this is what I got:
> rishi at flubber:~/devel/parted/parted-1.8.2$ ./configure && make
> ...
> ...
> fdasd.c: In function 'fdasd_get_geometry':
> fdasd.c:897: error: '_IOT__IOTBASE_dasd_information_t' undeclared (first use in this function)
> fdasd.c:897: error: (Each undeclared identifier is reported only once
> fdasd.c:897: error: for each function it appears in.)
> make[3]: *** [fdasd.lo] Error 1
> make[3]: Leaving directory `/home/rishi/devel/parted/parted-1.8.2/libparted/labels'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/rishi/devel/parted/parted-1.8.2/libparted'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rishi/devel/parted/parted-1.8.2'
> make: *** [all] Error 2
> rishi at flubber:~/devel/parted/parted-1.8.2$

Linux-specific _IOR() macro.  See include/parted/fdasd.h

> I went back to the 1.7.1 tarball, and got this:
> rishi at flubber:~/devel/parted/parted-1.7.1$ ./configure && make
> ...
> ...
> arch/gnu.c: In function 'gnu_write':
> arch/gnu.c:659: error: 'PED_SECTOR_SIZE' undeclared (first use in this function)
> arch/gnu.c:659: error: (Each undeclared identifier is reported only once
> arch/gnu.c:659: error: for each function it appears in.)
> cc1: warnings being treated as errors
> arch/gnu.c: At top level:
> arch/gnu.c:859: warning: initialization from incompatible pointer type
> make[3]: *** [gnu.lo] Error 1
> make[3]: Leaving directory `/home/rishi/devel/parted/parted-1.7.1/libparted'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/rishi/devel/parted/parted-1.7.1/libparted'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rishi/devel/parted/parted-1.7.1'
> make: *** [all] Error 2
> rishi at flubber:~/devel/parted/parted-1.7.1$
> 
> The problem in 1.7.1 is that in libparted/arch/gnu.c function gnu_write has
> PED_SECTOR_SIZE in line number 657. This should be PED_SECTOR_SIZE_DEFAULT,
> which is #define'd in include/parted/unit.h. There is no #define for
> PED_SECTOR_SIZE. This is issue persists in the Git snapshot too.

Yeah, this should change to PED_SECTOR_SIZE_DEFAULT

> I am lost about the other problem in libparted/labels/fdasd.c. Could not find
> '_IOT__IOTBASE_dasd_information_t' on the specified line number. Can someone
> enlighten me?

See /usr/include/asm-generic/ioctl.h on Linux.  We should probably
restrict DASD support to Linux only.

-- 
David Cantrell <dcantrell at redhat.com>
Red Hat / Westford, MA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20070224/448b2370/attachment.pgp


More information about the parted-devel mailing list