On Jul 6, 2009, at 4:19 PM, Graeme McFerren wrote: > Hi > > Having some compile problems in getting RTree 0.43 to work on Ubuntu > Jaunty (on a 32 bit notebook). > > I have SpatialIndex 1.3.2. with the patch installed to make it > compile with gcc 4.3.3 - it is located in /usr rather than /usr/local > Python 2.6 and its dev package are installed (available at /usr/ > include/) > I have changed the setup.cfg file to reflect this. > > But when I try to install, via the sudo python setup.py install > method or the single version method, I seem to run into a problem > with the /usr/include/bits/string3.h file. > > Error: > > running install > running bdist_egg > running egg_info > writing requirements to Rtree.egg-info/requires.txt > writing Rtree.egg-info/PKG-INFO > writing top-level names to Rtree.egg-info/top_level.txt > writing dependency_links to Rtree.egg-info/dependency_links.txt > reading manifest template 'MANIFEST.in' > writing manifest file 'Rtree.egg-info/SOURCES.txt' > installing library code to build/bdist.linux-i686/egg > running install_lib > running build_py > running build_ext > building 'rtree._rtree' extension > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall - > Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/spatialindex - > I./libsidx -I/usr/include/python2.6 -c rtree/_rtreemodule.cc -o > build/temp.linux-i686-2.6/rtree/_rtreemodule.o > cc1plus: warning: command line option "-Wstrict-prototypes" is valid > for Ada/C/ObjC but not for C++ > rtree/_rtreemodule.cc: In function ‘int Rtree_init(Rtree*, > PyObject*, PyObject*)’: > rtree/_rtreemodule.cc:62: warning: deprecated conversion from string > constant to ‘char*’ > rtree/_rtreemodule.cc:62: warning: deprecated conversion from string > constant to ‘char*’ > rtree/_rtreemodule.cc:62: warning: deprecated conversion from string > constant to ‘char*’ > rtree/_rtreemodule.cc:81: warning: deprecated conversion from string > constant to ‘char*’ > rtree/_rtreemodule.cc:97: warning: deprecated conversion from string > constant to ‘char*’ > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall - > Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/spatialindex - > I./libsidx -I/usr/include/python2.6 -c rtree/wrapper.cc -o build/ > temp.linux-i686-2.6/rtree/wrapper.o > cc1plus: warning: command line option "-Wstrict-prototypes" is valid > for Ada/C/ObjC but not for C++ > In file included from /usr/include/python2.6/Python.h:38, > from rtree/wrapper.cc:24: > /usr/include/string.h:302: error: variable or field ‘memset’ > declared void > /usr/include/string.h:302: error: expected primary-expression before > ‘void’ > /usr/include/string.h:302: error: expected `)' before ‘void’ > In file included from /usr/include/string.h:428, > from /usr/include/python2.6/Python.h:38, > from rtree/wrapper.cc:24: > /usr/include/bits/string3.h:97: error: variable or field ‘memset’ > declared void > /usr/include/bits/string3.h:97: error: expected primary-expression > before ‘void’ > /usr/include/bits/string3.h:97: error: expected `)' before ‘void’ > /usr/include/bits/string3.h: In function ‘char* stpncpy(char*, const > char*, size_t)’: > /usr/include/bits/string3.h:137: error: ‘__stpncpy_chk’ was not > declared in this scope > error: command 'gcc' failed with exit status 1 > > I suppose this really has little to do with Rtree, but I was > wondering if you had heard of or seen this happen when trying to use > Rtree? Are the Rtree dependencies in order? > > Regards > Graeme McFerren
Hi Graeme, I haven't built the latest and greatest Rtree, and can't get to it today. I'm also entirely on OS X here in my new office (GCC 4.0), so may not be much help. Howard? Sean -- Sean Gillies Software Engineer Institute for the Study of the Ancient World New York University _______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
