[CWB] compilation fails for 3.4.12

Stefan Evert stefanML at collocations.de
Fri Nov 3 07:46:05 CET 2017


> On 3 Nov 2017, at 07:09, Jörg Tiedemann <jorg.tiedemann at lingfil.uu.se> wrote:
> 
> I’m not root at the machine and I don’t want to mess around too much with local lib-files.
> The funny thing is that CWB compiled on the same machine without problems before. I wonder if that is an update on the machine or in CWB that causes the difference now … 

Hm, it looks like this functionality was factored out from libncurses into libtinfo on recent Linux distros.  Jörg, can you try whether things work if you also link against -ltinfo when compiling CQP?  You can edit the TERMCAP_LIBS line in config/platform/unix:

	TERMCAP_LIBS = -lncurses -ltinfo

or override it whatever linux configuration file you've specified in config.mk.


Backstory: CQP used to link against libtermcap (which complemented the libcurses). But then stupid Linux stopped supporting the old libraries in favour of the new libncurses, which provided both functionalities, so we had to link against -lncurses even though CQP doesn't need any of the curses stuff. Not stupid Linux suddenly breaks things up into libncurses and libtinfo, while e.g. my Mac only has libncurses …


Andrew: We should probably get the correct ncurses flags from pkg-config on Linux, in the same way as for Glib2.  But _not_ as the global default in config/platform/unix because e.g. MacOS doesn't use pkg-config. 


Best,
Stefan


More information about the CWB mailing list