On Jul 3, 2:18 pm, Mark Dickinson <dicki...@gmail.com> wrote: > On Jul 3, 5:30 pm, Keflavich <keflav...@gmail.com> wrote: > > > I'm trying to compile a 64 bit version of python 2.6.2 on my mac (OS X > > 10.5.7), and am running into a problem during the configure stage. > > > I configure with: > > ./configure --enable-framework=/Library/Frameworks --enable- > > universalsdk MACOSX_DEPLOYMENT_TARGET=10.5 --with-universal-archs=all - > > with-readline-dir=/usr/local > > > because I want 64 and 32 bit, and I needed to install a 64 bit > > readline as a prerequisite. > > > configure fails at: > > checking size of int... configure: error: cannot compute sizeof (int) > > I confess that I don't fully understand the intricacies of the various > OS X autoconf options, but I think the problem is that the --enable- > universalsdk option takes a directory. If that directory isn't > given, it appears to default to /Developer/SDKs/MacOSX10.4u.sdk (at > least on my OS X 10.5.7 machine), which would likely conflict with > your MACOSX_DEPLOYMENT_TARGET=10.5 setting. > > Try either changing MACOSX_DEPLOYMENT_TARGET to 10.4, or using -- > enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk (or whatever the > appropriate directory is on your system). For some reason, I think > using --enable-universalsdk=/ also works on my system. If none of > that helps, you might try asking this question over on the pythonmac- > sig mailing list. (http://mail.python.org/mailman/listinfo/pythonmac- > sig) > > Mark
Thanks. I also determined after the fact that universalsdk was the problem, but I didn't know how to fix it. Unfortunately, it turns out what you identified was a transcription error on my part - I had been using --enable-universalsdk instead of --enable-universalsdk=/. Thanks for the help, I appreciate it! Adam -- http://mail.python.org/mailman/listinfo/python-list