Skip to content

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

Description

@ryandesign

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions