Ticket #103 (new defect)
strange 64 bit problem ?
| Reported by: | cbalint | Owned by: | artem |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.0 |
| Component: | Shapefile Input Driver | Version: | 0.5.0 |
| Severity: | Major | Keywords: | |
| Cc: | Patch Needs Improvement: | no | |
| Needs Docmentation: | no | Has Patch?: | yes |
| Design Decision Needed: | no |
Description
Running any tests which implicitly calls the shape.input driver, return errors and fails, it doesn't matter I call Shapefile() in python API or i use c++ API (tryed provided rundemo.cpp / rundemo.py samples), it happen on Fedora 9, x86_64 arch:
Test on python API:
# python rundemo.py wrong file code DEBUG 00002f00 /nTraceback (most recent call last):
File "rundemo.py", line 59, in <module>
provpoly_lyr.datasource = Shapefile(file='../data/boundaries', encoding='latin1')
File "/usr/lib64/python2.5/site-packages/mapnik/init.py", line 72, in Shapefile
return CreateDatasource?(keywords)
RuntimeError?: wrong file code
Test on C++ API: # ./rundemo ../data/
running demo ...
wrong file code DEBUG 00002f00 /n### std::exception: wrong file code
I've used for debug the attached patch. Obviously something else than value 9994 is returned.
I've used these packages: http://openrisc.rdsor.ro/mapnik.spec http://openrisc.rdsor.ro/mapnik-0.5.1-3.fc9.src.rpm
USed following, with some fedora specific compile flags, but olso tryed without fedora compile flags (simply commented out $RPM_OPT_FLAGS).
//cristian.
