In order to successfully compile KCalc, you need the latest versions of libkdecore and libkdeui. All required libraries as well as KCalc itself can be found on ftp://ftp.kde.org/pub/kde/.