patching ncurses for solaris 9

Riccardo Mottola rmottola at opencsw.org
Wed Jun 10 16:09:59 CEST 2020


Hi all,

you might have noticed I have updated ncurses to latest.
Fine and cool... however on solaris it compiles, but does not work.

The issue is I think "easy":

I need to patch a file... I think just a header include is missing but 
it is "generated"

configure:22605: /opt/csw/bin/gcc-4.6 -c -O2 -pipe 
-fno-omit-frame-pointer -mcpu=v8 -I/opt/cs
w/include -D_FILE_OFFSET_BITS=64  -D__EXTENSIONS__ -I/opt/csw/include 
-D__EXTENSIONS__ -I/opt
/csw/include/ncurses -I/opt/csw/include conftest.c >&5
In file included from configure:22594:0:
/opt/csw/include/ncurses/ncurses.h:185:1: error: unknown type name 
'uint32_t'
/opt/csw/include/ncurses/ncurses.h:186:1: error: unknown type name 
'uint32_t'


I think it is just a matter of adding inttypes.h if memory serves me.

However interesting is this generated header, it contains:


#if 1 && defined(_LP64)
typedef unsigned chtype;
typedef unsigned mmask_t;
#else
typedef uint32_t chtype;
typedef uint32_t mmask_t;
#endif


so there is incredibly a "test" but only for _LP64... "1" is for sure 
result of some test, but I cannot find the logic or template of ncurses.h

Can some kind hacker help me?

Thank you.

Riccardo


More information about the maintainers mailing list