Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on Mac os X #18

Open
oantoshchenko opened this issue May 13, 2013 · 0 comments
Open

Compilation error on Mac os X #18

oantoshchenko opened this issue May 13, 2013 · 0 comments

Comments

@oantoshchenko
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant