我正在尝试在运行 Snow Leopard 的 Mac 上安装 Python-Gammu。我使用 cmake 和 GCC 4 成功配置了 gammu,但在安装时出现此错误。它似乎表明 gcc 配置不正确,但我不确定对此能做些什么。
有没有其他人在mac上遇到过类似的GCC问题?
[ 90%] Built target smscgid
[ 91%] Building C object python/gammu/CMakeFiles/python_gammu.dir/src/gammu.o
In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57,
from /Users/jgordon/Downloads/gammu-1.27.0/python/gammu/src/gammu.c:23:
/Library/Frameworks/Python.framework/Headers/pyport.h:761:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make[3]: *** [python/gammu/CMakeFiles/python_gammu.dir/src/gammu.o] Error 1
make[2]: *** [python/gammu/CMakeFiles/python_gammu.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [install] Error 2
谢谢