Checkout: <http://svn.python.org/projects/python/tags/r262> Configure: env CFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" sh ./configure --enable-framework --enable-shared --enable-readline Build: make The configuration step completes successfully, and the build proceeds; however, the following error occurs: gcc -L/opt/local/lib -u _PyMac_Error Python.framework/Versions/2.6/Python -o python.exe \ Modules/python.o \ -L. -lpython2.6 -ldl This appears to be a problem in the definition of the LINKFORSHARED variable in the Makefile, but I am not sure what the intended meaning of that variable is, so I'm not sure what the fix should be. A complete make trace is attached.
Sorry, I managed to not copy the error message. It is: i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.6/Python: No such file or directory make: *** [python.exe] Error 1
--enable-framework and --enable-shared are mutually exclusive options. See, for example, the discussion in Issue4472. Use one or the other, not both. As a side comment, I think this error crops up often enough that it would make sense to add a check somewhere (configure?) and produce a useful error.
Ned Deily writes: > --enable-framework and --enable-shared are mutually exclusive options. Aha, I did not realize that, though I suppose in retrospect it should have been obvious. Removing "--enable-shared" from my build configuration does enable me to build with "--enable-framework" selected. I agree that this should be either better documented, or checked for by the configurator.
Fixed in r73305 (trunk), r73306 (2.6) and r73307 (3.1) That is, with the above mentioned checkins configure will give a clear error message when you specify both --enable-framework and --enable- shared.
History
Date
User
Action
Args
2022-04-11 14:56:48
admin
set
github: 50059
2009-06-08 21:23:24
ronaldoussoren
set
status: open -> closedresolution: fixedmessages: +