I coded the script pkg_libchk for the upgrade from 6.x to 7.x and it is much more mature, now, than it was back then. It even has SMP support and is working very reliable. Only jdks and OpenOffice yield some false positives, because they are linked to libraries that don't exist (odbc), or which they have to locate themselves (libjawt.so).
Well, I hope it will work for you guys as well as it does for me.