Subject: Re: qemu build error in sys/lock.h
To: Oliver Gould <ogould@olix0r.net>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: pkgsrc-users
Date: 04/22/2007 06:18:17
Hello,

At Sat, 21 Apr 2007 13:59:53 -0400,
Oliver Gould wrote:
> I'm getting the following error building qemu on netbsd-4.99.16.
> CC_VERSION, in this case, is gcc-3.3.5 (from pkgsrc), as specified in
> the Makefile.
> 
>   ===> Building for qemu-0.8.2nb2
>   gcc -DQEMU_TOOL -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY
>   -I/usr/include -Wall -O2 -fno-strict-aliasing -I.
>   -L/usr/pkg/gcc3/lib/gcc-lib/i386--netbsdelf2.0/3.3.5
>   -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/i386--netbsdelf2.0/3.3.5
>   -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 -L/usr/X11R6/lib
>   -Wl,-R/usr/X11R6/lib -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
>   -D_LARGEFILE_SOURCE -o qemu-img qemu-img.c block.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 -lz 
>   In file included from /usr/include/sys/disk.h:92,
>                    from block.c:33:
>   /usr/include/sys/lock.h:117: error: parse error before "pri_t"
>   /usr/include/sys/lock.h:132: error: parse error before '}' token
>   /usr/include/sys/lock.h:151: error: parse error before '}' token

I experienced this before.

  http://mail-index.netbsd.org/current-users/2007/03/02/0001.html

You need to re-compile the gcc3 package.

  http://mail-index.netbsd.org/current-users/2007/03/02/0014.html

best regards.
-- 
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp