On Feb 9, 2005, at 20:00, Richard Jones wrote:

On 10/02/2005, at 10:35 AM, Bob Ippolito wrote:
The current svn trunk of py2app is probably suitable for this. It now:
- Strips by default. -S and --strip are still there for compatibility, but they are a no-op (does anyone care if I remove this compatibility?)

I get the following error during py2app invocation:

/usr/bin/strip: object: /Users/richard/src/cg/CGPublisher-Zope/dist/CGPublisher-Zope.app/ Contents/Frameworks/Python.framework/Versions/2.3/Python truncated or malformed object (LC_SEGMENT command 2 fileoff field plus filesize field extends past the end of the file)

and then this when I try to run the app:

2005-02-10 11:54:41.210 CGPublisher-Zope[5269] dyld: ./dist/CGPublisher-Zope.app/Contents/MacOS/CGPublisher-Zope truncated or malformed library: /Users/richard/src/cg/CGPublisher-Zope/dist/CGPublisher-Zope.app/ Contents/Frameworks/Python.framework/Versions/2.3/Python (load command 2 fileoff plus filesize extends past end of the library)

The file in question is:

-rwxr-xr-x  1 richard  richard  1239416 10 Feb 11:54 Python

if that's any help (probably not). Also, the output at the end of stripping says "stripping saved 0 bytes (7077472 / 7077472)". Full log of output (stdout) from py2app invocation is attached.

Sounds like something bad happened trying to rewrite the Mach-O headers of the dylib, I haven't seen this sort of issue in a long time.


Send me /Library/Frameworks/Python/2.3/Python and /Users/richard/src/cg/CGPublisher-Zope/dist/CGPublisher-Zope.app/ Contents/Frameworks/Python.framework/Versions/2.3/Python and I'll take a look to see what the difference is.

-bob

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

Reply via email to