pcaudiolib icon indicating copy to clipboard operation
pcaudiolib copied to clipboard

error: expected parameter declarator, error: expected ')'

Open ryandesign opened this issue 4 years ago • 0 comments

I'm not able to build pcaudiolib 1.2 on OS X 10.8 or earlier. When using the stock clang compiler included with Xcode, the error is as in #9. Using a newer clang compiler fixes that problem on OS X 10.9 but on 10.8 and earlier different errors occur, starting with:

In file included from src/TPCircularBuffer/TPCircularBuffer.c:30:
src/TPCircularBuffer/TPCircularBuffer.h:219:67: error: In file included from src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.c:30:
In file included from src/TPCircularBuffer/TPCircularBuffer+AudioBufferList.h:expected parameter declarator
37:
src/TPCircularBuffer/TPCircularBuffer.h:219:67: error: expected parameter declarator
static __inline__ __attribute__((always_inline)) __deprecated_msg("use TPCircularBufferSetAtomic(false) and TPCircularBufferConsume instead")
                                                                  ^
src/TPCircularBuffer/TPCircularBuffer.h:219:67: static __inline__ __attribute__((always_inline)) __deprecated_msg("use TPCircularBufferSetAtomic(false) and TPCircularBufferConsume instead")
                                                                  ^
error: expected ')'
src/TPCircularBuffer/TPCircularBuffer.h:219src/TPCircularBuffer/TPCircularBuffer.h:219:66: note: to match this '('
:67: error: expected ')'
static __inline__ __attribute__((always_inline)) __deprecated_msg("use TPCircularBufferSetAtomic(false) and TPCircularBufferConsume instead")
                                                                 ^src/TPCircularBuffer/TPCircularBuffer.h:219:66: note
: to match this '('
static __inline__ __attribute__((always_inline)) __deprecated_msg("use TPCircularBufferSetAtomic(false) and TPCircularBufferConsume instead")
                                                                 ^
src/TPCircularBuffer/TPCircularBuffer.h:219:50: src/TPCircularBuffer/TPCircularBuffer.h:219:50: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static __inline__ __attribute__((always_inline)) __deprecated_msg("use TPCircularBufferSetAtomic(false) and TPCircularBufferConsume instead")
~~~~~~~~~~~~~~~~~                                ^static __inline__ __attribute__((always_inline)) __deprecated_msg("use TPCircularBufferSetAtomic(false) and TPCircularBufferConsume instead")
~~~~~~~~~~~~~~~~~                                ^

src/TPCircularBuffer/TPCircularBuffer.h:219:142: error: expected ';' after top level declarator
src/TPCircularBuffer/TPCircularBuffer.h:219:142: error: expected ';' after top level declarator
static __inline__ __attribute__((always_inline)) __deprecated_msg("use TPCircularBufferSetAtomic(false) and TPCircularBufferConsume instead")
                                                                                                                                             ^
                                                                                                                                             ;

A full build log is here:

https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/58025/steps/install-port/logs/stdio

ryandesign avatar Aug 18 '21 03:08 ryandesign