astropy/astropy — Issue #65: VO build error on OS X Lion
Author: jiffyclub
Created: 2011-11-15 01:09:35+00:00
State: open

I'm getting the follow error trying to build the latest astropy on Lion:

```
astropy 54 >:python setup.py build
running build
running build_py
running build_ext
building 'astropy.io.vo.iterparser' extension
gcc-4.2 -DNDEBUG -g -O3 -O -ansi -DHAVE_EXPAT_CONFIG_H=1 -DBYTEORDER=1234 -DHAVE_UNISTD_H -Iastropy/io/vo/src -Icextern/expat/lib -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c astropy/io/vo/src/iterparse.c -o build/temp.macosx-10.6-intel-2.7/astropy/io/vo/src/iterparse.o
astropy/io/vo/src/iterparse.c:268: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PyObject'
astropy/io/vo/src/iterparse.c: In function 'startElement':
astropy/io/vo/src/iterparse.c:416: warning: passing argument 3 of 'PyTuple_SetItem' makes pointer from integer without a cast
astropy/io/vo/src/iterparse.c: In function 'endElement':
astropy/io/vo/src/iterparse.c:495: warning: passing argument 3 of 'PyTuple_SetItem' makes pointer from integer without a cast
error: command 'gcc-4.2' failed with exit status 1
```

I can get that particular command to work if I remove the `-ansi` flag.

Also, setup.py does not sense that I have Lion, I have to manually `export CC=gcc-4.2` so that wcs will build.