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

Re: install-mbr on amd64?



Goswin von Brederlow wrote:
tag 330190 + patch
thanks

Kilian <kil@gnu.ch> writes:

Dear All,

I'm trying to set up a software RAID 1 (two disks) with Debian on a
system with an AMD x86_64 Athlon processor. To install the MBR on both
discs, I need install-mbr (http://packages.debian.org/stable/base/mbr)
if I'm correct, but this package does not exist in the amd64 port... I
then tried to compile it myself, which fails, obviously, because the
package has not been ported to x86_64 yet as it seems (and I lack the
knowledge to do so...).

I'm a bit stuck now.. what other tools can I use?

Thanks for any hint!

Greetz,
Kilian

I went ahead and fixed mbr up for amd64. Apart from the obvious
(Build-depends, gcc -m32) I also fixed up some of the more serious
warnings and included running the testsuite as much as possible.

The package compiles but someone has to risk his/her system and
install the mbr now.

Thanks a lot for your work! I'd be willing to do that, unfortunately it doesn't compile on my box; I get:

Making all in harness
make[1]: Entering directory `/usr/local/src/mbr-1.1.5.orig/harness'
gcc -DPACKAGE=\"mbr\" -DVERSION=\"1.1.5\" -I. -I. -Wall -Wstrict-prototypes -Wmissing-prototypes -g -c bios.c
In file included from bios.c:2:
vm86.h:4:22: asm/vm86.h: No such file or directory
bios.c: In function `handle_int_10':
bios.c:73: error: dereferencing pointer to incomplete type
[...]
bios.c: In function `handle_int_e4':
bios.c:243: error: dereferencing pointer to incomplete type
bios.c:243: error: dereferencing pointer to incomplete type
make[1]: *** [bios.o] Error 1
make[1]: Leaving directory `/usr/local/src/mbr-1.1.5.orig/harness'
make: *** [all-recursive] Error 1

Obviously, asm/vm86.h is not found; I located this file in /usr/include/i386-linux/asm, tried to be ugly and changed the include statement in bios.c to the full path of vm86.h, but then I get:

Making all in harness
make[1]: Entering directory `/usr/local/src/mbr-1.1.5.orig/harness'
gcc -DPACKAGE=\"mbr\" -DVERSION=\"1.1.5\" -I. -I. -Wall -Wstrict-prototypes -Wmissing-prototypes -g -c bios.c
bios.c: In function `handle_int_13':
bios.c:103: error: `CF' undeclared (first use in this function)
bios.c:103: error: (Each undeclared identifier is reported only once
bios.c:103: error: for each function it appears in.)
bios.c: In function `handle_int_16':
bios.c:214: error: `ZF' undeclared (first use in this function)
make[1]: *** [bios.o] Error 1
make[1]: Leaving directory `/usr/local/src/mbr-1.1.5.orig/harness'
make: *** [all-recursive] Error 1

I'm really sorry but my knowledge does not go that far as making a smart interpretation of the above... can you help?

Linux 2.6.8-11-amd64-k8, x86_64, Debian Sarge, gcc version 3.3.5 (Debian 1:3.3.5-13)

Thanks a lot!

	-- Kilian



Reply to: