First off, I recently performed an inplace upgrade from Linux Buster to Bullseye to allow me to compile latest version of KStars. But I have encountered a missing shared library issue that looks like this during KStars build.

/usr/bin/ld: warning: libcfitsio.so.7, needed by /usr/local/lib/libstellarsolver.so.2.2, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libgsl.so.23, needed by /usr/local/lib/libstellarsolver.so.2.2, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libwcs.so.6, needed by /usr/local/lib/libstellarsolver.so.2.2, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcfitsio.so.7, needed by /usr/local/lib/libstellarsolver.so.2.2, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libgsl.so.23, needed by /usr/local/lib/libstellarsolver.so.2.2, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libwcs.so.6, needed by /usr/local/lib/libstellarsolver.so.2.2, not found (try using -rpath or -rpath-link)

It also appears to have failed to find some things at the start of the process.
- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found


Read More...