gjhiggins/rdflib — Issue #66: gcc error when building 2.4.1
Author: gjhiggins
Created: 2011-10-19 01:10:13+00:00
State: open

Originally filed by rubinsztajn on 2009-06-17T16:38:38

What steps will reproduce the problem?

1. python setup.py install
2. easy_install -U "rdflib>=2.4"

Here is the beginning of the gcc output:

running install
running bdist_egg
running egg_info
writing rdflib.egg-info/PKG-INFO
writing top-level names to rdflib.egg-info/top_level.txt
writing dependency_links to rdflib.egg-info/dependency_links.txt
writing entry points to rdflib.egg-info/entry_points.txt
reading manifest file 'rdflib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'example.py'
writing manifest file 'rdflib.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-ppc/egg
running install_lib
running build_py
running build_ext
building 'rdflib.sparql.bison.SPARQLParserc' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c
src/bison/SPARQLParser.c -o build/temp.linux-ppc-2.5/src/bison/SPARQLParser.o
src/bison/SPARQLParser.c:7:20: error: Python.h: No such file or directory
src/bison/SPARQLParser.c:8:26: error: structmember.h: No such file or directory
src/bison/SPARQLParser.c:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token

plenty more where that came from...

I've tried building by the above methods on a PPC running Debian Lenny, MAC
OSX, and a RedHat server and I get he same error each time.