pylibssh2 icon indicating copy to clipboard operation
pylibssh2 copied to clipboard

Compilation error on Mac os X

Open oantoshchenko opened this issue 11 years ago • 0 comments

Hello,

I've used this lib on my Ubuntu -- all worked good, but I can't install on my new mac. There are compilation errors while installing.

  • I sue Python 2.6.7
  • Mac OS X 10.8.3

Error:

clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DMAJOR_VERSION=2 -DMINOR_VERSION=0 -DPATCH_VERSION=2 -I/opt/local/include/ -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/listener.c -o build/temp.macosx-10.8-intel-2.6/src/listener.o clang: warning: argument unused during compilation: '-mno-fused-madd' clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DMAJOR_VERSION=2 -DMINOR_VERSION=0 -DPATCH_VERSION=2 -I/opt/local/include/ -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/pylibssh2.c -o build/temp.macosx-10.8-intel-2.6/src/pylibssh2.o clang: warning: argument unused during compilation: '-mno-fused-madd' src/pylibssh2.c:229:15: error: no member named 'st_atim' in 'struct stat' attr->st_atim.tv_sec + attr->st_mtim.tv_nsec * 0.000000001)); ~~~~ ^ src/pylibssh2.c:229:38: error: no member named 'st_mtim' in 'struct stat' attr->st_atim.tv_sec + attr->st_mtim.tv_nsec * 0.000000001)); ~~~~ ^ src/pylibssh2.c:231:15: error: no member named 'st_mtim' in 'struct stat' attr->st_mtim.tv_sec + attr->st_mtim.tv_nsec * 0.000000001)); ~~~~ ^ src/pylibssh2.c:231:38: error: no member named 'st_mtim' in 'struct stat' attr->st_mtim.tv_sec + attr->st_mtim.tv_nsec * 0.000000001)); ~~~~ ^ 4 errors generated. error: command 'clang' failed with exit status 1

oantoshchenko avatar May 13 '13 21:05 oantoshchenko