pawn icon indicating copy to clipboard operation
pawn copied to clipboard

Pawn fails to compile when linking against ncurses that has been built with tinfo

Open ikelos opened this issue 8 years ago • 0 comments

Pawn's build system doesn't use FindCurses from cmake, and instead attempts to find ncurses itself. This leads to an error if ncurses has been built with a separate terminfo library (libtinfo). The FindCurses module from cmake copes with this by checking for a specific function to determine whether libtinfo has been split into a separate library or not (the cbreak function), and if so sets the libraries to link against appropriately.

Pawn doesn't make use of cbreak, but does use nodelay, however the cbreak check should still be sufficient.

Ideally this would be fixed by making use of cmake's pre-packaged FindCurses module, rather than custom implementing similar functionality. Failing that, the curses finding cmake code should take into account the potential need to link against libtinfo.

If you have any further question, please just let me know. For more information please see:

Cmake commit 1f646c6c Gentoo bug 468622

ikelos avatar Aug 13 '17 22:08 ikelos