tags 319527 + patch
thanks

Reinhard Tartler wrote:
> On Fri, Jul 22, 2005 at 09:53:07PM +0100, Roger Leigh wrote:
> 
>>>I'm trying to get qemu build in current sid. First issue is
>>>missing zlib1g-dev. After adding that to debian/control, the build
>>>stops shortly later.
>>
>>Do you have a transcript of the failure?
> 
> 
> Sure, I attached the buildlog showing the failure to this email. This is
> inside an uptodate sid chroot.
> 

Hello,

Qemu does not support GCC 4.0, see http://www.qemu.org/faq.html

I attached a patch that fixes the FTBFS:

   * debian/control (Build-Depends): add missing zlib1g-dev,
     depend on gcc-3.4
   * debian/rules: compile with gcc-3.4
   * debian/patches/34_syscalls_types.patch: new, fix compile error
     with linux-kernel-headers 2.6.12 (it's a hack:
     include linux/types.h before any other glibc header)

Tested with a sid pbuilder.

HTH,
Octavian
diff -urN qemu-0.7.0-orig/debian/control qemu-0.7.0/debian/control
--- qemu-0.7.0-orig/debian/control      2005-07-23 01:13:01.488124413 +0300
+++ qemu-0.7.0/debian/control   2005-07-23 01:58:11.640203677 +0300
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian QEMU Team <[EMAIL PROTECTED]>
 Uploaders: Guilherme de S. Pastore <[EMAIL PROTECTED]>, Guillem Jover <[EMAIL 
PROTECTED]>, Elrond <[EMAIL PROTECTED]>
-Build-Depends: cdbs, debhelper (>= 4.1.0), libx11-dev | xlibs-dev, 
libsdl1.2-dev (>> 1.2.1), texi2html, sharutils, libgpmg1-dev [amd64 i386 
powerpc alpha sparc arm s390]
+Build-Depends: cdbs, debhelper (>= 4.1.0), gcc-3.4, libx11-dev | xlibs-dev, 
libsdl1.2-dev (>> 1.2.1), zlib1g-dev, texi2html, sharutils, libgpmg1-dev [amd64 
i386 powerpc alpha sparc arm s390]
 Standards-Version: 3.6.1.1
 
 Package: qemu
diff -urN qemu-0.7.0-orig/debian/patches/34_syscalls_types.patch 
qemu-0.7.0/debian/patches/34_syscalls_types.patch
--- qemu-0.7.0-orig/debian/patches/34_syscalls_types.patch      1970-01-01 
02:00:00.000000000 +0200
+++ qemu-0.7.0/debian/patches/34_syscalls_types.patch   2005-07-23 
01:56:44.864227756 +0300
@@ -0,0 +1,11 @@
+#DPATCHLEVEL=0
+--- linux-user/syscall.c.orig  2005-07-23 01:55:22.169404147 +0300
++++ linux-user/syscall.c       2005-07-23 01:52:31.157924629 +0300
+@@ -17,6 +17,7 @@
+  *  along with this program; if not, write to the Free Software
+  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+  */
++#include <linux/types.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <stdarg.h>
diff -urN qemu-0.7.0-orig/debian/rules qemu-0.7.0/debian/rules
--- qemu-0.7.0-orig/debian/rules        2005-07-23 01:13:01.493123375 +0300
+++ qemu-0.7.0/debian/rules     2005-07-23 01:58:44.745327472 +0300
@@ -12,7 +12,7 @@
        ppc_rom.bin \
        proll.elf
 
-DEB_CONFIGURE_NORMAL_ARGS := --prefix=$(DEB_CONFIGURE_PREFIX) --enable-slirp
+DEB_CONFIGURE_NORMAL_ARGS := --prefix=$(DEB_CONFIGURE_PREFIX) --cc=gcc-3.4 
--enable-slirp
 
 DEB_MAKE_INSTALL_TARGET := install prefix=$(DEB_DESTDIR)/usr \
                                   bindir=$(DEB_DESTDIR)/usr/bin \

Reply via email to