Issue406191
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2001-03-06 03:32 by anonymous, last changed 2022-04-10 16:03 by admin. This issue is now closed.
Messages (5) | |||
---|---|---|---|
msg3711 - (view) | Author: Nobody/Anonymous (nobody) | Date: 2001-03-06 03:32 | |
I'm running a very recent Mac OS X build ("4K78"); here is what I found necessary in order to get 2.1b1 to build on that system. It might be best to add notes about these things to the platform-specific part of the README. First, though, please correct the spelling in the README of "Mac OS X" -- the name has *two* spaces in it. Spelling it in a way inconsistent with Apple's intent makes it harder (mac *os *x) to find out where in the configure/ makefile it's mentioned. Notes: - configure: OPT="-g -traditional-cpp" ./configure --with-suffix=.exe --with-dyld - limit stacksize 2m (It defaults to a half-meg, and then one of the regular expression tests fails.) - disable the test_largefile test (I moved its source aside). This test should be enabled only on a Unix UFS filesystem. - termios.h tries to define a bunch of things that do not exist on Mac OS X. *** Modules/termios.c Thu Mar 1 22:50:58 2001 --- ../Python-2.1b1-fixed/Modules/termios.c Mon Mar 5 15:43:05 2001 *************** *** 358,364 **** {"INLCR", INLCR}, {"IGNCR", IGNCR}, {"ICRNL", ICRNL}, ! {"IUCLC", IUCLC}, {"IXON", IXON}, {"IXANY", IXANY}, {"IXOFF", IXOFF}, --- 358,364 ---- {"INLCR", INLCR}, {"IGNCR", IGNCR}, {"ICRNL", ICRNL}, ! /* {"IUCLC", IUCLC}, No such thing on Mac OS X. */ {"IXON", IXON}, {"IXANY", IXANY}, {"IXOFF", IXOFF}, *************** *** 366,405 **** /* struct termios.c_oflag constants */ {"OPOST", OPOST}, ! {"OLCUC", OLCUC}, {"ONLCR", ONLCR}, ! {"OCRNL", OCRNL}, ! {"ONOCR", ONOCR}, ! {"ONLRET", ONLRET}, ! {"OFILL", OFILL}, ! {"OFDEL", OFDEL}, ! {"NLDLY", NLDLY}, ! {"CRDLY", CRDLY}, ! {"TABDLY", TABDLY}, ! {"BSDLY", BSDLY}, ! {"VTDLY", VTDLY}, ! {"FFDLY", FFDLY}, /* struct termios.c_oflag-related values (delay mask) */ ! {"NL0", NL0}, ! {"NL1", NL1}, ! {"CR0", CR0}, ! {"CR1", CR1}, ! {"CR2", CR2}, ! {"CR3", CR3}, ! {"TAB0", TAB0}, ! {"TAB1", TAB1}, ! {"TAB2", TAB2}, ! {"TAB3", TAB3}, #ifdef XTABS {"XTABS", XTABS}, #endif ! {"BS0", BS0}, ! {"BS1", BS1}, ! {"VT0", VT0}, ! {"VT1", VT1}, ! {"FF0", FF0}, ! {"FF1", FF1}, /* struct termios.c_cflag constants */ {"CSIZE", CSIZE}, --- 366,405 ---- /* struct termios.c_oflag constants */ {"OPOST", OPOST}, ! /* {"OLCUC", OLCUC}, No such thing on Mac OS X. */ {"ONLCR", ONLCR}, ! /* {"OCRNL", OCRNL}, No such thing on Mac OS X. */ ! /* {"ONOCR", ONOCR}, */ ! /* {"ONLRET", ONLRET}, */ ! /* {"OFILL", OFILL}, */ ! /* {"OFDEL", OFDEL}, */ ! /* {"NLDLY", NLDLY}, */ ! /* {"CRDLY", CRDLY}, */ ! /* {"TABDLY", TABDLY}, */ ! /* {"BSDLY", BSDLY}, */ ! /* {"VTDLY", VTDLY}, */ ! /* {"FFDLY", FFDLY}, */ /* struct termios.c_oflag-related values (delay mask) */ ! /* {"NL0", NL0}, ! {"NL1", NL1}, ! {"CR0", CR0}, ! {"CR1", CR1}, ! {"CR2", CR2}, ! {"CR3", CR3}, ! {"TAB0", TAB0}, ! {"TAB1", TAB1}, ! {"TAB2", TAB2}, ! {"TAB3", TAB3}, */ #ifdef XTABS {"XTABS", XTABS}, #endif ! /* {"BS0", BS0}, ! {"BS1", BS1}, ! {"VT0", VT0}, ! {"VT1", VT1}, ! {"FF0", FF0}, ! {"FF1", FF1}, */ /* struct termios.c_cflag constants */ {"CSIZE", CSIZE}, |
|||
msg3712 - (view) | Author: Martin v. Löwis (loewis) * | Date: 2001-03-06 07:06 | |
Logged In: YES user_id=21627 Can you produce a patch that does most of this automatically? Ideally, such a patch would work so that no other system is affected. E.g. instead of commenting-out certain constants, an #ifdef would be more desirable. Likewise, the compiler options are best put into configure.in, in a way that they are used on all systems requiring these settings, and ignored on all other systems. That,of course, requires that a test is introduced to find out whether you've got the right kind of system. In addition, I'd prefer if the number of settings needed is reduced to the absolute minimum. E.g. why is it *necessary* to compiler Python with -g on Mac OS X? Also, if --with-dyld is *mandatory* on Mac OS X, why can you specify it as an option? On all other systems, not using dynamic loading is not an option. OTOH, if the LDSHARED case of -nostdlib -r (which you get when you omit --with-dyld) works fine on your system, why is it necessary to specify --with-dyld. In short, instead of giving long instructions how to do it right, I'd prefer if Python configuration did it right on its own. If you are unsure how to achieve this effect, I suggest you ask on the pythonmac list. Please upload any patch you come up with into the patch manager, adding a comment here that a patch is available. |
|||
msg3713 - (view) | Author: Fred Drake (fdrake) | Date: 2001-03-11 03:18 | |
Logged In: YES user_id=3066 The version of termios in CVS already makes the right tests for all the definitions your patch affects, so the termios module from CVS should work without further changes. Please let us know if you have any further problems with termios. |
|||
msg3714 - (view) | Author: Tim Peters (tim.peters) * | Date: 2001-03-18 05:50 | |
Logged In: YES user_id=31435 Assigned to Fred since he replied last. I'd close it if you don't get a response soon. |
|||
msg3715 - (view) | Author: Fred Drake (fdrake) | Date: 2001-03-23 17:53 | |
Logged In: YES user_id=3066 Added comments about the remaining issues to README revision 1.118. Marked "Won't Fix" since we have no idea how to fix the remaining aspects of this report. If anyone figures out how, please open a new bug report or patch and describe in detail what needs to change and how. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:03:49 | admin | set | github: 34070 |
2001-03-06 03:32:38 | anonymous | create |