[Pythonmac-SIG] New Mach-O header is too large to relocate

Erik Myllymaki erik.myllymaki at gmail.com
Fri Aug 19 19:04:00 CEST 2011


I'm trying to make an app on a MB Pro with Snow Leopard(10.6.7) - and 
keep getting this error:

     "New Mach-O header is too large to relocate"

A quick search found a suggestion about how to fix this:

http://www.danplanet.com/home/82-codemonkeying/88-using-py2app-with-gtk

basically, in this file:

/opt/local/share/macports/Tcl/port1.0/portconfigure.tcl

change this line:

default configure.ldflags   {-L${prefix}/lib}

to:

default configure.ldflags   {"-L${prefix}/lib -Xlinker 
-headerpad_max_install_names"}

and reinstall all macports packages.

While this fix has allowed the build process to get further along, it 
still ends up failing with the same error eventually.

Any advice greatly appreciated.





More information about the Pythonmac-SIG mailing list