pkgsrc-Users archive

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

Does qemu build with audio/nas installed? (was: CVS commit: pkgsrc/emulators/qemu)



On Thu, Jan 22, 2009 at 07:27:28AM +0000, Julio M. Merino Vidal wrote:
> 
> Module Name:  pkgsrc
> Committed By: jmmv
> Date:         Thu Jan 22 07:27:28 UTC 2009
> 
> Modified Files:
>       pkgsrc/emulators/qemu: Makefile PLIST distinfo
>       pkgsrc/emulators/qemu/patches: patch-ab patch-ac patch-ae patch-ag
>           patch-ak patch-ao patch-au patch-aw patch-ay
> 
> Log Message:
> Update to 0.9.1:

I tried to build the new version on NetBSD, but it failed very early:

gcc -O2 -I/usr/pkg/include -I/usr/include -Wall -O2 -g -fno-strict-aliasing 
-I/usr/pkg/include -I/usr/include -I. 
-I/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1 -MMD -MP -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-I/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/slirp    -c -o wm8750.o 
/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/hw/wm8750.c
/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/hw/wm8750.c:24: error: parse error 
before "QEMUSoundCard"
/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/hw/wm8750.c:24: warning: no 
semicolon at end of struct or union
/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/hw/wm8750.c:25: warning: type 
defaults to `int' in declaration of `adc_voice'
/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/hw/wm8750.c:25: warning: data 
definition has no type or storage class

Which looked strange. wm8750.c should include audio/audio.h, but using the 
above compile line
with -E shows that it is using /usr/pkg/include/audio/audio.h, which comes from 
the nas package.

The real package build is using

/pkgsrc/emulators/qemu/work.i386/.gcc/bin/gcc -O2 
-I/pkgsrc/emulators/qemu/work.i386/.buildlink/include -Wall -O2 -g 
-fno-strict-aliasing -I. -I/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1 -MMD -MP 
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-I/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/slirp -c -o wm8750.o 
/pkgsrc/emulators/qemu/work.i386/qemu-0.9.1/hw/wm8750.c 
-L/pkgsrc/emulators/qemu/work.i386/.buildlink/lib

The .buildlink/include directory also has the audio/audio.h file from the nas 
package and so
thats where the pkgsrc build failed.
IMHO a -I. should come before the -I for the .buildlink/include directory to 
find the local
header files.

Bernd



Home | Main Index | Thread Index | Old Index