Bug#496040: error: unknown device hd1
arthur.marsh at internode.on.net
Thu Aug 28 22:07:30 UTC 2008
Robert Millan wrote, on 2008-08-29 00:07:
> On Wed, Aug 27, 2008 at 08:24:11AM +0930, Arthur Marsh wrote:
>> The following error makes sense for a floppy drive with no disk in it,
> Well, I'm still not sure what it's caused by.
> The problem I see now is that the design of grub_find_drive() prevents us
> from detecting NULL pointers as errors, and so we don't know if `name' was
> NULL or otherwise a non-NULL drive was paired with a NULL device.
> So please, try with this patch (in addition to what you had before).
> I realize this is getting annoyingly long; thanks for your patience in
> going through it, it's very appreciated.
I applied the patch on top of the existing patches and ran debuild:
cc -Iutil -I/usr/src/grub2-1.96+20080724/util -I. -Iinclude
-I/usr/src/grub2-1.96+20080724/include -Wall -W
-DGRUB_LIBDIR=\"/usr/lib/`echo grub/i386-pc | sed 's,x,x,'`\" -g -Wall
-O2 -DGRUB_UTIL=1 -MD -c -o grub_probe-util_biosdisk.o
/usr/src/grub2-1.96+20080724/util/biosdisk.c: In function ‘find_free_slot’:
/usr/src/grub2-1.96+20080724/util/biosdisk.c:130: error: ‘i’ undeclared
(first use in this function)
/usr/src/grub2-1.96+20080724/util/biosdisk.c:130: error: (Each
undeclared identifier is reported only once
/usr/src/grub2-1.96+20080724/util/biosdisk.c:130: error: for each
function it appears in.)
make: *** [grub_probe-util_biosdisk.o] Error 1
make: Leaving directory `/usr/src/grub2-1.96+20080724/build/grub-common'
make: *** [build/grub-common] Error 2
debuild: fatal error at line 1295:
couldn't exec debian/rules:
I've attached the patched util/biosdisk.c so you can check if my
patching was correct or if there was some other problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 21024 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080829/a9354beb/attachment-0001.c
More information about the Pkg-grub-devel