我尝试在Mac OS X Mountain Lion上构建Clementine,
最终在其gstreamer依赖关系中出现了许多错误。 Clementine错误看起来像
/usr/lib/clang/4.2/include/stddef.h:31: syntax error, unexpected '(' in 'typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;' at '('
/usr/lib/clang/4.2/include/stddef.h:35: syntax error, unexpected SIZEOF in 'typedef __typeof__(sizeof(int)) size_t;' at 'sizeof'
/usr/include/time.h:131: syntax error, unexpected identifier in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at 'size_t'
/usr/include/time.h:131: syntax error, unexpected ',', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at ','
/usr/include/time.h:131: syntax error, unexpected ',', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at ','
/usr/include/time.h:131: syntax error, unexpected ')', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) __asm("_" "strftime" );' at ')'
/usr/include/pthread.h:256: syntax error, unexpected identifier in ' size_t * restrict);' at 'size_t'
/usr/include/pthread.h:265: syntax error, unexpected identifier in ' void ** restrict, size_t * restrict);' at 'size_t'
/usr/include/pthread.h:269: syntax error, unexpected identifier in ' size_t * restrict);' at 'size_t'
/usr/include/pthread.h:273: syntax error, unexpected identifier in 'int pthread_attr_setguardsize(pthread_attr_t *, size_t );' at 'size_t'
/usr/include/pthread.h:282: syntax error, unexpected identifier in ' void *, size_t );' at 'size_t'
/usr/include/pthread.h:285: syntax error, unexpected identifier in 'int pthread_attr_setstacksize(pthread_attr_t *, size_t );' at 'size_t'
/usr/include/pthread.h:377: syntax error, unexpected identifier in 'int pthread_getname_np(pthread_t,char*,size_t) __attribute__((availability(macosx,introduced=10.6)));' at 'size_t'
/usr/include/pthread.h:384: syntax error, unexpected identifier in 'size_t pthread_get_stacksize_np(pthread_t);' at 'size_t'
/usr/include/stdio.h:255: syntax error, unexpected identifier in 'size_t fread(void * restrict, size_t, size_t, FILE * restrict);' at 'size_t'
/usr/include/stdio.h:255: syntax error, unexpected ',', expecting identifier or '(' in 'size_t fread(void * restrict, size_t, size_t, FILE * restrict);' at ','
在我的系统上,我使用命令行工具安装了Xcode4.6,还安装了MacPorts和HomeBrew。难道这三个系统之间存在冲突吗?我试图在项目makefile中添加更多-I,但它们似乎没有修复错误。