pkgsrc-Users archive

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

Re: qemu build error in sys/lock.h



Oliver Gould wrote:
>   ===> 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

Take a look at work/.work.log to see what the real command for this
invocation of gcc looked like and repeat that with option "-E". This
will show you the preprocessor output, where the problem should be
clearly identifiable.

ciao
     Klaus



Home | Main Index | Thread Index | Old Index