mac-fdisk uses u8 * that were 32bit on ppc32 and are now 64bit... so the DPME record is not 512 bytes anymore and that makes mac-fdisk complain for a good reason. I have a patch for this and it should also allow mac-fdisk to be compile with CFLAGS -Wall It would probably work on x86-linux too to partition external firewire/usb disks in DOS/BSD or mac partition format.
Created attachment 32240 [details, diff] Cleanup and 64bitness "safe" This should fix nearly all trouble related to use this on 64 bit machine that have 32bit int, And might even work on x86.
I've appled this patch to mac-fdisk and make it specific for ppc64. Someone from ppc land should probably decide if they would like to pick this up for themselves as well.
least for the ppc64 case, mac-fdisk now seems well behaved I have *NOT* extensively tested on a clean disk.
I would make mac-fdisk version <0.1-r1 wihtout ppc64 flag at all since it is unusable. once this patch is checked properly then make it ~ppc ppc64. There is a next patch comming for ~x86 soon (maybe).
Created attachment 32345 [details, diff] This does the previous patch + remove fdisk from mac-fdisk ...
It also works on x86 for those USB and FW disk partitioned under mac OS* since fdisk from x86 is better and works on ppc and ppc64 too, why bother ?
working well .. time to close