: bad external relocation length Error

View: New views
2 Messages — Rating Filter:   Alert me  

: bad external relocation length Error

by Christopher Barker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,

I'm trying to bundle up a app based on the GDAL library. It bundles OK,
though I get this error:

/usr/bin/strip: the __LINKEDIT segment does not cover the end of the
file (can't be processed) in:
/Users/cbarker/HAZMAT/MappingSVN/dist/Mapbox.app/Contents/Frameworks/GDAL.framework/Versions/1.6/Programs/gdalenhance
(for architecture ppc)
stripping saved 0 bytes (247912552 / 247912552)

(I'm not sure why gdalenhance is getting processed at all, now that I
think about it...)

then I get this at run time:

Traceback (most recent call last):
   File
"/Users/cbarker/HAZMAT/MappingSVN/dist/Mapbox.app/Contents/Resources/__boot__.py",
line 163, in <module>
     _run('mapbox.py')
   File
"/Users/cbarker/HAZMAT/MappingSVN/dist/Mapbox.app/Contents/Resources/__boot__.py",
line 134, in _run
     execfile(path, globals(), globals())
   File
"/Users/cbarker/HAZMAT/MappingSVN/dist/Mapbox.app/Contents/Resources/mapbox.py",
line 12, in <module>
     import mapboxlib.plugin as plugin
   File "mapboxlib/plugin/__init__.pyo", line 39, in <module>
   File "mapboxlib/plugin/Gdal_raster_layer.pyo", line 6, in <module>
   File "osgeo/__init__.pyo", line 2, in <module>
   File "osgeo/_gdal.pyo", line 18, in <module>
   File "osgeo/_gdal.pyo", line 11, in __load
ImportError:
dlopen(/Users/cbarker/HAZMAT/MappingSVN/dist/Mapbox.app/Contents/Resources/lib/python2.5/lib-dynload/osgeo/_gdal.so,
2): bad external relocation length
2009-11-02 10:51:01.346 Mapbox[8039] Mapbox Error
2009-11-02 10:51:01.347 Mapbox[8039] Mapbox Error
An unexpected error has occurred during execution of the main script

ImportError:
dlopen(/Users/cbarker/HAZMAT/MappingSVN/dist/Mapbox.app/Contents/Resources/lib/python2.5/lib-dynload/osgeo/_gdal.so,
2): bad external relocation length


I'm using the GDAL Frameworks provided by:

http://www.kyngchaos.com/macosx:build:index


any debugging ideas appreciated.

-Chris


--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@...
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: : bad external relocation length Error

by Christopher Barker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christopher Barker wrote:
> Hi folks,
>
> I'm trying to bundle up a app based on the GDAL library. It bundles OK,
> though I get this error:

an update:

I updated to the latest macholib, and it seems to be working now -- duh!

thanks,

-Chris



--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@...
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig