bug-fdisk
[Top][All Lists]
Advanced

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

Re: [bug-fdisk] fdisk 1.2.5 compile error with libparted 3.x


From: Christian
Subject: Re: [bug-fdisk] fdisk 1.2.5 compile error with libparted 3.x
Date: Wed, 14 Sep 2011 20:05:56 +0200

> Hi,
>     GNU fdisk 1.2.5 with fdisk-1.2.5-PED_ASSERT-remove-action-argument.patch 
> and fdisk-1.2.5-update-sys-types.patch, compile error in Archlinux x86_64
> with gcc 4.6.1 and libparted 3.0.1-08c0 (from git repo). 

Hi,
        Thanks for reporting!

We will try to compile the GNU fdisk with 3.x parted libraries, and
correct these errors.

> Parted 3.x does not spport any filesystem operation and all FS support has 
> been
> removed.

I suppose that if the gparted library does not support file system
operations, we need to remove the management from GNU Fdisk too.

> gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I../../src
> -I..  -I../lib -I../../lib   -D_FILE_OFFSET_BITS=no -MT fdisk.o -MD
> -MP -MF .deps/fdisk.Tpo -c -o fdisk.o ../../src/fdisk.c
> ../../src/fdisk.c: In function 'do_mkpart':
> ../../src/fdisk.c:725:45: error: 'const struct _PedFileSystemOps' has
> no member named 'create'
> ../../src/fdisk.c: In function 'do_resize':
> ../../src/fdisk.c:1564:26: error: 'const struct _PedFileSystemOps' has
> no member named 'resize'
> ../../src/fdisk.c:1571:24: warning: initialization makes pointer from
> integer without a cast [enabled by default]
> ../../src/fdisk.c:1572:15: warning: assignment makes pointer from
> integer without a cast [enabled by default]
> ../../src/fdisk.c: In function '_init_messages':
> ../../src/fdisk.c:2080:19: error: 'const struct _PedFileSystemOps' has
> no member named 'create'
> ../../src/fdisk.c:2117:19: error: 'const struct _PedFileSystemOps' has
> no member named 'resize'
> make[2]: *** [fdisk.o] Error 1
> make[2]: Leaving directory
> `/media/Source_Codes/Source_Codes/Archstuff/My_PKGBUILDs/AUR/gnu-fdisk/src/fdisk-1.2.5/BUILD/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/media/Source_Codes/Source_Codes/Archstuff/My_PKGBUILDs/AUR/gnu-fdisk/src/fdisk-1.2.5/BUILD'
> make: *** [all] Error 2
> 
> Also does GNU fdisk and cfdisk support GPT disks (since its based in
> libparted). Thats the main reason I want to try GNU fdisk over
> util-linux fdisk, and GPT fdisk (from Rod Smith). 1 fdisk/cfdisk
> program to support both MBR and GPT. Thanks in advance.

GNU Fdisk should theoretically support GPT partitions. However, each
kind of partitioning requires specific code in certain operations and
I'm not sure this is present in the 1.x versions of GNU Fdisk.

Currently we are working on a new 2.x series. In this new release the
code was written from scratch, considering all these critical issues. 

Unfortunately I can not tell when we are ready for a 2.x release. If you
are interested you can find the code in this repository:
http://bitbucket.org/_Christian/gnufdisk

Regards

Christian.





reply via email to

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