[Python-Dev] PyObject_GenericGetAttr vs cygwin (original) (raw)

Michael Hudson mwh@python.net
08 Nov 2001 13:52:01 -0500


Jason Tishler <jason@tishler.net> writes:

Michael,

On Thu, Nov 08, 2001 at 11:00:58AM -0500, Michael Hudson wrote: > Two solutions: > > (1) build them statically. This works, but is hardly a long term > solution. > (2) change them to poke the relavent things into the type object at > module load time. > > Shall I just do (2)? Yes, please try option 2 above. If successful, would you be willing to submit the patch to the SourceForge Python patch collector?

It works. Do you want to see the patches or shall I just check the changes in?

BTW, _cursesmodule.c doesn't compile; you get things like:

Warning: resolving _stdscr by linking to __imp__stdscr (auto-import) Warning: resolving _LINES by linking to __imp__LINES (auto-import) Warning: resolving _COLS by linking to __imp__COLS (auto-import) Warning: resolving _newscr by linking to __imp__newscr (auto-import) Warning: resolving _COLORS by linking to __imp__COLORS (auto-import) Warning: resolving _COLOR_PAIRS by linking to __imp__COLOR_PAIRS (auto-import) build/temp.cygwin-1.3.3-i686-2.2/_cursesmodule.o: In function PyCurses_InitScr': /cygdrive/c/src/python/dist/src/Modules/_cursesmodule.c:1842: undefined reference to acs_map' /cygdrive/c/src/python/dist/src/Modules/_cursesmodule.c:1843: undefined reference to acs_map' /cygdrive/c/src/python/dist/src/Modules/_cursesmodule.c:1844: undefined reference to acs_map' /cygdrive/c/src/python/dist/src/Modules/_cursesmodule.c:1845: undefined reference to acs_map' /cygdrive/c/src/python/dist/src/Modules/_cursesmodule.c:1846: undefined reference to acs_map' build/temp.cygwin-1.3.3-i686-2.2/_cursesmodule.o:/cygdrive/c/src/python/dist/src/Modules/_cursesmodule.c:1847: more undefined references to `acs_map' follow

and contrary to README, test_poll and threads seem to work fine.

test_strftime is still bust, though:

158 tests OK. 1 test failed: test_strftime 26 tests skipped: test_al test_bsddb test_cd test_cl test_curses test_dbm test_dl test_gl test_imgfile test_largefile test_linuxaudiodev test_locale test_minidom test_nis test_ntpath test_openpty test_pty test_pyexpat test_sax test_socket_ssl test_socketserver test_sunaudiodev test_sundry test_unicode_file test_winreg test_winsound Ask someone to teach regrtest.py about which tests are expected to get skipped on cygwin.

Cheers, M.

-- [Perl] combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski