Hello, I have uncovered a bug in gnu.c. Make output: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALEDIR=\"/usr/local/share/locale\" -D_GNU_SOURCE=1 -W -Wall -Wno-unused -Wno-switch -Wno-format -Werror -Wp,-MD,.deps/gnu.pp -c gnu.c -fPIC -DPIC -o .libs/gnu.o gnu.c: In function `_device_probe_geometry': gnu.c:77: error: structure has no member named `heads' gnu.c:77: error: structure has no member named `sectors' make[3]: *** [gnu.lo] Error 1 make[3]: Leaving directory `/home/hde/stable/libparted' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/hde/stable/libparted' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/hde/stable' make: *** [all-recursive-am] Error 2
I have a patch to fix the problem if it is ok with everyone I would like to commit it to cvs. Patch: diff -ur libparted/gnu.c ../patched_parted/stable/libparted/gnu.c --- libparted/gnu.c 2004-08-15 17:45:28.000000000 -0500 +++ ../patched_parted/stable/libparted/gnu.c 2004-09-06 04:58:25.000000000 -0500 @@ -25,6 +25,7 @@ #include <parted/debug.h> #include <parted/gnu.h> + #include <string.h> #include <errno.h> #include <hurd.h> @@ -74,7 +75,7 @@ /* XXX: We have no way to get this! */ dev->bios_geom.sectors = 32; dev->bios_geom.heads = 4; - dev->bios_geom.cylinders = dev->length / (dev->heads * dev->sectors + dev->bios_geom.cylinders = dev->length / (dev->bios_geom.heads * dev->bios_geom.sectors * (dev->sector_size / PED_SECTOR_SIZE)); return 1; Thanks hde _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-hurd