compilation issue with cdk library and LEAP 42.1

Maybe this will help?
https://bugzilla.opensuse.org/show_bug.cgi?id=918553

In particular, try to use “$(ncursesw6-config --libs)” instead of “-lncurses”.

Or, expanded it would be “-L/usr/lib64/ncurses6 -lncursesw -ltinfo” (on my 13.2 system here at least).
But the point of pkgconfig is that you don’t have to specify the necessary options yourself (which may differ on each system/installation).