Subject: Re: pkg/36602 (qemu does not compile on NetBSD before 4.0)
To: None <heinz@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Pierre Pronchery <khorben@defora.org>
List: pkgsrc-bugs
Date: 10/11/2007 15:15:15
The following reply was made to PR pkg/36602; it has been noted by GNATS.

From: Pierre Pronchery <khorben@defora.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/36602 (qemu does not compile on NetBSD before 4.0)
Date: Thu, 11 Oct 2007 15:56:02 +0200

 heinz@netbsd.org wrote:
 > Does this also work for you an amd64?
 
 I can confirm that it compiles on i386 now. I cannot test it on amd64
 though, because I am now running 4.99.31 on my only amd64 machine.
 
 For what should be another PR however, I cannot compile it on amd64 for
 a different reason:
 
 ===> Building for qemu-0.9.0
 gcc -DQEMU_TOOL -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY
 -I/usr/include -Wall -O2 -g -fno-strict-aliasing -I/usr/pkg/include
 -DGLX_GLXEXT_LEGACY -I/usr/include -I. -D_GNU_SOURCE
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 -L/usr/pkg/gcc3/lib/gcc-lib/x86_64--netbsdelf2.0/3.3.6
 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/x86_64--netbsdelf2.0/3.3.6
 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib
 -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -g  -o qemu-img qemu-img.c
 cutils.c block.c block-raw.c block-cow.c block-qcow.c aes.c block-vmdk.c
 block-cloop.c block-dmg.c block-bochs.c block-vpc.c block-vvfat.c
 block-qcow2.c -lz  -lrt
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from qemu-img.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from cutils.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 cutils.c: In function `stristart':
 cutils.c:75: warning: subscript has type `char'
 cutils.c:75: warning: subscript has type `char'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/iostat.h:49,
                  from /usr/include/sys/disk.h:94,
                  from block.c:32:
 /usr/include/sys/lock.h:117: error: syntax error before "pri_t"
 /usr/include/sys/lock.h:132: error: syntax error before '}' token
 /usr/include/sys/lock.h:151: error: syntax error before '}' token
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-raw.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-cow.c:25:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-qcow.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from aes.c:30:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-vmdk.c:26:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-cloop.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-dmg.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-bochs.c:25:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-vpc.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/sys/stat.h:46,
                  from block-vvfat.c:25:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 block-vvfat.c: In function `vvfat_open':
 block-vvfat.c:1020: warning: subscript has type `char'
 In file included from /usr/include/sys/select.h:39,
                  from /usr/include/sys/time.h:258,
                  from /usr/include/time.h:131,
                  from vl.h:34,
                  from block-qcow2.c:24:
 /usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
 gmake: *** [qemu-img] Error 1
 *** Error code 2
 
 Stop.
 make: stopped in /usr/pkgsrc/emulators/qemu
 *** Error code 1
 
 Stop.
 make: stopped in /usr/pkgsrc/emulators/qemu
 
 
 -- 
 khorben