ebranca / owasp-pysec

OWASP Python Security Project
Apache License 2.0
406 stars 108 forks source link

Build failed in mac os x #43

Closed Murthysagi closed 8 years ago

Murthysagi commented 8 years ago

running install running build running build_py running build_ext building 'pysec.core.unistd' extension cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pysec/core/unistd.c -o build/temp.macosx-10.11-intel-2.7/pysec/core/unistd.o pysec/core/unistd.c:547:27: warning: implicit declaration of function 'fdatasync' is invalid in C99 [-Wimplicit-function-declaration] return PyInt_FromLong(fdatasync(fildes) == 0 ? 0 : errno); ^ 1 warning generated. pysec/core/unistd.c:317:13: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] if((end=strspn(salt, VALID_SALT_CHARS)) != strlen(salt)) ~^~~~~~~~~~ pysec/core/unistd.c:436:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] if((block_len = strlen(block)) != 64) ~ ^~~~~ pysec/core/unistd.c:439:13: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] if((end=strspn(block, "01")) != strlen(block)) ~^~~~~~~ pysec/core/unistd.c:547:27: warning: implicit declaration of function 'fdatasync' is invalid in C99 [-Wimplicit-function-declaration] return PyInt_FromLong(fdatasync(fildes) == 0 ? 0 : errno); ^ pysec/core/unistd.c:1171:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] res = sysconf(name); ~ ^~~~~ 5 warnings generated. cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.11-intel-2.7/pysec/core/unistd.o -lcrypt -o build/lib.macosx-10.11-intel-2.7/pysec/core/unistd.so ld: library not found for -lcrypt clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'cc' failed with exit status 1