Error compiling sem.c on Darwin 10.2
Error compiling sem.c on Darwin 10.2
От:
Mike Johnson <afp@miketec.org>
Дата:
Hello, I've encountered the following error compiling with: gcc -v Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs Thread model: posix Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)" Here's the error: gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -c -o sem.o sem.c In file included from sem.c:30: ../../../../src/include/port/darwin/sem.h:66: warning: `union semun' declared inside parameter list ../../../../src/include/port/darwin/sem.h:66: warning: its scope is only this definition or declaration, which is probably not what you want ../../../../src/include/port/darwin/sem.h:66: warning: parameter has incomplete type sem.c:67: warning: `union semun' declared inside parameter list sem.c:68: parameter `arg' has incomplete type make[4]: *** [sem.o] Error 1 make[3]: *** [darwin.dir] Error 2 make[2]: *** [port-recursive] Error 2 make[1]: *** [all] Error 2 make: *** [all] Error 2 Thanks so much! (Please copy me, I'm not on any of the lists.) Mike Johnson