From these messages, it seems like this library can't be compiled with recent kernels - at some point in the past, devfs_fs_kernel.h and config.h were removed. So, it's better to look for binary packages, but I guess you already looked for them... I gave a look and it seems difficult to find them for slackware.
I guessed the problem but not the solution...
so, what kind of library are you looking for? What requisites?