Re: [Pyobjc-dev] [Pythonmac-SIG] [ANN] py2app 0.3.2
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2006-07-21 01:33:29
|
On Jul 20, 2006, at 6:23 PM, Kaweh Kazemi wrote: > hi, > > using py2app 0.3.2 i encountered following problem. > > > WARNING: Mach-O header may be too large to relocate > Traceback (most recent call last): > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/py2app-0.3.2-py2.4.egg/py2app/build_app.py", > line 548, in _run > self.run_normal() > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/py2app-0.3.2-py2.4.egg/py2app/build_app.py", > line 619, in run_normal > self.create_binaries(py_files, pkgdirs, extensions, loader_files) > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/py2app-0.3.2-py2.4.egg/py2app/build_app.py", > line 732, in create_binaries > platfiles = mm.run() > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/ > MachOStandalone.py", line 135, in run > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py", > line 111, in write > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py", > line 302, in write > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py", > line 292, in synchronize_size > ValueError: New Mach-O header is too large to relocate >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py(292) > synchronize_size() > > > i'm trying to include a custom made library into my application. i'm > not assuming that py2app (or macholib) is the problem here, but the > library, though i was hoping that this error-message could give > someone a clue where i could look to solve my problem. > > any hints are much appreciated. Some Mach-O don't have enough room leftover to rewrite their load commands. This is quite rare, but you may have to re-link the library with -headerpad_max_install_names. It could otherwise be a bug in macholib, but I wouldn't be able to say without a copy of the library. -bob |