Skip to content

Compilation error on Mac os X #18

@oantoshchenko

Description

@oantoshchenko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions