[darwinbuild] About the readlink redefinition in darwintrace.c
Axel Luttgens
AxelLuttgens at swing.be
Wed Mar 15 06:03:33 PST 2006
So, I just decided to give a real try to the DarwinBuild system.
This is under Mac OS X 10.3.9, with the darwinbuild-0.7.2.tar.gz release.
While installing the tools, I got an error message about an incompatible
redefinition of "readlink" in darwintrace:
[...]
*** Making all in darwintrace ***
cc -o darwintrace.dylib \
-W -Wall -pedantic -std=c99 \
-flat_namespace \
-fno-common \
-nostdlib \
-undefined suppress \
-dynamiclib \
darwintrace.c
darwintrace.c:219: error: conflicting types for `readlink'
/usr/include/unistd.h:240: error: previous declaration of `readlink'
make[1]: *** [darwintrace.dylib] Error 1
make: *** [all] Error 2
So, my question is: shouldn't line 219 of darwintrace.c read
ssize_t readlink(const char * path, char * buf, ssize_t bufsiz) {
instead of
ssize_t readlink(const char * path, char * buf, size_t bufsiz) {
Axel
More information about the darwinbuild-dev
mailing list