bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined reference to _nc_mingw_tcgetattr in 6.1 (both unpatched an


From: Simon Sobisch
Subject: Re: undefined reference to _nc_mingw_tcgetattr in 6.1 (both unpatched and 20191109)
Date: Sat, 16 Nov 2019 17:08:24 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

So MinGW-GCC (and other compilers building ncurses on MSYS for use in
cmd/powershell) are expected to use `--enable-term-driver`?

If yes i'd highly suggest to at least add a warning in configure if the
extra switch is not used (or, possibly better, imply it).

Thank you for your response,
Simon

Am 16.11.2019 um 16:38 schrieb Thomas Dickey:
> On Mon, Nov 11, 2019 at 01:14:12PM +0100, Simon Sobisch wrote:
>> _nc_mingw_tcgetattr is referenced in nc_termios.h and implemented in 
>> win32con/win_driver.c but I did not spot any object file generation for 
>> win_driver and no use of it (I *guess* it may is thought to be part of 
>> libncurses on MinGW).
>>  
>> make[1]: Entering directory 
>> `/tmp/dev/ncurses-snapshots-6_1_20191109/build_msys/progs'
>> gcc ../objects/tic.o ../objects/dump_entry.o ../objects/tparm_type.o 
>> ../objects/transform.o -L../lib  -DHAVE_CONFIG_H -I../progs -I. 
>> -I../../progs -I../include -I../../progs/../include -D_XOPEN_SOURCE=600 
>> -DNDEBUG -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN -O2 --param 
>> max-inline-insns-single=1200 -L../lib -static -lncurses -lncurses -dynamic   
>> -lpsapi  -o tic.exe
>> ../lib\libncurses.a(lib_ttyflags.o):lib_ttyflags.c:(.text+0x5d): undefined 
>> reference to `_nc_mingw_tcgetattr'
>> ../lib\libncurses.a(lib_ttyflags.o):lib_ttyflags.c:(.text+0x111): undefined 
>> reference to `_nc_mingw_tcsetattr'
>> collect2.exe: error: ld returned 1 exit status
>> make[1]: *** [tic.exe] Error 1
> 
> grep shows this:
> 
> include/ncurses_mingw.h:68:extern NCURSES_EXPORT(int)  _nc_mingw_tcsetattr(
> include/nc_termios.h:144:#define tcsetattr(fd, opt, arg) 
> _nc_mingw_tcsetattr(fd, opt, arg)
> ncurses/win32con/win_driver.c:2008:_nc_mingw_tcsetattr(
> 
> and the scripts which I use for building test-packages are in the source
> tree also.  You probably overlooked
> 
>     --enable-term-driver
>       Enable experimental terminal-driver.  This is currently used for the
>       MinGW port, by providing a way to substitute the low-level terminfo
>       library with different terminal drivers.
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]