Skip to contentSkip to conversation

Compile error on Mac OS X 10.3.9 (Panther) - CoreAudio

Qemu-devel Stealth Dave 3 participants 4 messages Nov 10, 2005 – Nov 11, 2005

lore
Share & tools
lore
#0 lore raw

I'm trying to compile QEMU on Mac OS X 10.3.9, and I'm getting the following error message:

gcc -Wall -O2 -g -fno-strict-aliasing -D__powerpc__ -I. -I/Users/stealthdave/Source/qemu/qemu/target-i386 -I/Users/stealthdave/Source/qemu/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/Users/stealthdave/Source/qemu/qemu/fpu -DHAS_AUDIO -I/Users/stealthdave/Source/qemu/qemu/slirp -c -o coreaudio.o /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c: In function `coreaudio_init_out':
/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: `freq' undeclared (first use in this function)
/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: (Each undeclared identifier is reported only once
/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: for each function it appears in.)
make[1]: *** [coreaudio.o] Error 1
make: *** [all] Error 1

I'm running configure with "./configure --prefix=/sw --enable-cocoa", which also enables coreaudio by default with no way to switch it off (that I could find). After an Google search, I found a Core Audio SDK from Apple, but that didn't seem to help any. Any suggestions on what might be wrong? Is this possibly a bug?

- Dave

#1 lore raw
Quoted 5 lines

I'm trying to compile QEMU on Mac OS X 10.3.9, and I'm getting the following error message:

<snip>
/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c: In function `coreaudio_init_out':
/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: `freq' undeclared (first use in this function)

Line 378 is
coreaudio_logerr2 (status, typ, "Could not set samplerate %d\n", freq);

I'm pretty sure it should say "as->freq" rather than just "freq". It compiled when I made that change anyway. ;)

HTH,
Josh

#2 lore raw
In reply to Stealth Dave
Quoted 15 lines · Stealth Dave

I'm trying to compile QEMU on Mac OS X 10.3.9, and I'm getting the following error message:

gcc -Wall -O2 -g -fno-strict-aliasing -D__powerpc__ -I.

(quoted diff) +0 -4
-I/Users/stealthdave/Source/qemu/qemu/target-i386 
-I/Users/stealthdave/Source/qemu/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -I/Users/stealthdave/Source/qemu/qemu/fpu -DHAS_AUDIO 
-I/Users/stealthdave/Source/qemu/qemu/slirp -c -o coreaudio.o 

/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c: In function `coreaudio_init_out':
/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: `freq' undeclared (first use in this function) /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: (Each undeclared identifier is reported only once /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: for each function it appears in.) make[1]: *** [coreaudio.o] Error 1
make: *** [all] Error 1

Quoted 2 lines

I'm running configure with "./configure --prefix=/sw --enable-cocoa", which also enables coreaudio by default with no way to switch it off (that I could find). After an Google search, I found a Core Audio SDK from Apple, but that didn't seem to help any. Any suggestions on what might be wrong? Is this possibly a bug?

Yes, when i restructured audio i missed this one (i have no MacOS to test the changes), Mike Kronnenberg has since found it and a fix is available
at: http://www.boblycat.org/~malc/code/patches/qemu/ (16d_aqemu)

Sorry for inconvenience.

Signature · 1 line
mailto:[email protected]
#3 lore raw

Those last updates that Fabrice committed solved the problem. Thanks!

- Dave

Quoted 37 lines · malc
Quoted 16 lines · Stealth Dave

I'm trying to compile QEMU on Mac OS X 10.3.9, and I'm getting the following error message:

gcc -Wall -O2 -g -fno-strict-aliasing -D__powerpc__ -I.

(quoted diff) +0 -5
-I/Users/stealthdave/Source/qemu/qemu/target-i386 
-I/Users/stealthdave/Source/qemu/qemu -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-I/Users/stealthdave/Source/qemu/qemu/fpu -DHAS_AUDIO 
-I/Users/stealthdave/Source/qemu/qemu/slirp -c -o coreaudio.o 

/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c: In function `coreaudio_init_out':
/Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: `freq' undeclared (first use in this function) /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: (Each undeclared identifier is reported only once /Users/stealthdave/Source/qemu/qemu/audio/coreaudio.c:378: error: for each function it appears in.) make[1]: *** [coreaudio.o] Error 1
make: *** [all] Error 1

Quoted 2 lines

I'm running configure with "./configure --prefix=/sw --enable-cocoa", which also enables coreaudio by default with no way to switch it off (that I could find). After an Google search, I found a Core Audio SDK from Apple, but that didn't seem to help any. Any suggestions on what might be wrong? Is this possibly a bug?

Yes, when i restructured audio i missed this one (i have no MacOS to test the changes), Mike Kronnenberg has since found it and a fix is available
at: http://www.boblycat.org/~malc/code/patches/qemu/ (16d_aqemu)

Sorry for inconvenience.

Signature · 7 lines
mailto:[email protected]


_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel