Python _cursesmodule build problem (was Re: [RFD] ncurses update)

Charles Wilson cwilson@ece.gatech.edu
Fri Nov 2 11:14:00 GMT 2001


Jason Tishler wrote:

> Chuck,
> 
> On Sat, Sep 15, 2001 at 03:03:16PM -0400, Charles Wilson wrote:
> 
>>#1. Now use the auto-import stuff instead of __declspec(dllXXport) 
>>modifiers.  No more need for *compile-time* flags at all; only linktime 
>>flags: -static or -Wl,--enable-auto-import.  However, ncurses does some 
>>of the "bad" things (the ones that today's binutils warns about, but the 
>>previous binutils created buggy code for).  The fix for this requires 
>>changes in the ncurses library code (specifically, configure using 
>>BROKEN_LINKER -- which changes some of the exported DATA into functions. 
>>  If you recompile apps, you don't need to worry about this though; it's 
>>
>                                ^^^^
> 
>>transparently handled in ncurses_cfg.h/curses.h).
>>
> 
> I submitted the attached patch in order for Python (specifically the
> _cursesmodule module) to build cleanly again under the latest binutils.
> The above seems to imply that I shouldn't need this patch.  Did I
> misinterpret the above?


No, you didn't misinterpret.  I made a mistake.  However, the #define 
BROKEN_LINKER shouldn't go into client code, it *should* be in ncurses.h 
(or ncurses_cfg.h, etc).  In fact, I thought it WAS.  But on closer 
inspection, it looks like the appropriate definition only appears in 
private headers that aren't shipped with the compiled ncurses package.

I need to fix this on the ncurses side.

--Chuck



More information about the Cygwin-apps mailing list