tags 442863 patch thanks Hello,
with the patch below I was able to build dosemu for amd64. I don't know exactly what I did, but I think my changes are save, as they only change how coprocessor errors are reported. There seem to be no attempts to autobuild the version for amd64 according to http://buildd.debian.org/pkg.cgi?pkg=dosemu . The control file looks good though. Best regards Uwe --- debian/changelog | 6 ++++++ debian/patches/06-ftbfs.x86-64.diff | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 0 deletions(-) create mode 100644 debian/patches/06-ftbfs.x86-64.diff diff --git a/debian/patches/06-ftbfs.x86-64.diff b/debian/patches/06-ftbfs.x86-64.diff new file mode 100644 index 0000000..4021369 --- /dev/null +++ b/debian/patches/06-ftbfs.x86-64.diff @@ -0,0 +1,35 @@ +Fix FTBFS for amd64 + +I don't know what I've done exaclty, but now it compiles and works for me. + +diff --git a/src/arch/linux/async/sigsegv.c b/src/arch/linux/async/sigsegv.c +index b0d284f..5050d03 100644 +--- a/src/arch/linux/async/sigsegv.c ++++ b/src/arch/linux/async/sigsegv.c +@@ -612,7 +612,7 @@ void print_exception_info(struct sigcontext_struct *scp) + unsigned short sw; + error ("@Coprocessor Error:\n"); + #ifdef __x86_64__ +- error ("@cwd=%04x swd=%04x ftw=%04x\n", p->cwd, p->swd, p->ftw); ++ error ("@cwd=%04x swd=%04x\n", p->cwd, p->swd); + error ("@cs:rip=%04x:%08lx ds:data=%04x:%08lx\n", _cs,p->rip,_ds,p->rdp); + sw = p->swd; + #else +@@ -634,6 +634,9 @@ void print_exception_info(struct sigcontext_struct *scp) + if ((sw&0x41)==0x01) error("@Invalid op\n"); + else if ((sw&0x41)==0x41) error("@Stack fault\n"); + } ++#ifdef __x86_64__ ++ error ("@fpr[x] not available/implemented\n"); ++#else + n = (sw >> 11) & 7; + for (i=0; i<8; i++) { + unsigned long long *r = (unsigned long long *)&(p->_st[i].significand); +@@ -641,6 +644,7 @@ void print_exception_info(struct sigcontext_struct *scp) + error ("@fpr[%d] = %04x:%016Lx\n",n,*e,*r); + n = (n+1) & 7; + } ++#endif + } break; + + default: -- 1.5.3.6 -- Uwe Kleine-König, Software Engineer Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]