william-os4y/fapws3 — Issue #31: Install fails on OS X Lion 10.7.2
Author: mettienne
Created: 2011-12-28 01:19:42+00:00
State: open

Trying to install fapws3 on OS X Lion 10.7.2:

python
Python 2.7.1 (r271:86832, Jun 25 2011, 05:09:01)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

brew list
libev	pkg-config

sudo python setup.py build
Find python 2.4 or higher
----------Find ev.h in /usr/include/sys
----------Find Python.h in /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
----------Find libev.a in /usr/local/lib
running build
running build_py
running egg_info
writing fapws3.egg-info/PKG-INFO
writing top-level names to fapws3.egg-info/top_level.txt
writing dependency_links to fapws3.egg-info/dependency_links.txt
writing entry points to fapws3.egg-info/entry_points.txt
reading manifest file 'fapws3.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fapws3.egg-info/SOURCES.txt'
running build_ext
building 'fapws._evwsgi' extension
llvm-gcc-4.2 -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 -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/usr/include/sys -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c fapws/extra.c -o build/temp.macosx-10.7-intel-2.7/fapws/extra.o
fapws/extra.c: In function ‘cur_time’:
fapws/extra.c:124: warning: implicit declaration of function ‘time’
fapws/extra.c:125: warning: implicit declaration of function ‘gmtime’
fapws/extra.c:125: warning: assignment makes pointer from integer without a cast
fapws/extra.c:131: warning: implicit declaration of function ‘strftime’
fapws/extra.c:131: warning: incompatible implicit declaration of built-in function ‘strftime’
fapws/extra.c: In function ‘time_rfc1123’:
fapws/extra.c:150: warning: assignment makes pointer from integer without a cast
fapws/extra.c:151: warning: incompatible implicit declaration of built-in function ‘strftime’
fapws/extra.c:152: error: dereferencing pointer to incomplete type
fapws/extra.c:153: error: dereferencing pointer to incomplete type
fapws/extra.c: In function ‘cur_time’:
fapws/extra.c:124: warning: implicit declaration of function ‘time’
fapws/extra.c:125: warning: implicit declaration of function ‘gmtime’
fapws/extra.c:125: warning: assignment makes pointer from integer without a cast
fapws/extra.c:131: warning: implicit declaration of function ‘strftime’
fapws/extra.c:131: warning: incompatible implicit declaration of built-in function ‘strftime’
fapws/extra.c: In function ‘time_rfc1123’:
fapws/extra.c:150: warning: assignment makes pointer from integer without a cast
fapws/extra.c:151: warning: incompatible implicit declaration of built-in function ‘strftime’
fapws/extra.c:152: error: dereferencing pointer to incomplete type
fapws/extra.c:153: error: dereferencing pointer to incomplete type
lipo: can't open input file: /var/tmp//cctEwHqX.out (No such file or directory)
error: command 'llvm-gcc-4.2' failed with exit status 1

Seems like a problem with the #include .
Same errors and warnings installing from the python3 branch.
Any suggestions?

Mikko