Well ... modglue is a library that helps programs multitask. If the "h_affine.ln" program is doing weird things, you'd best determine who compiled that binary, and ask them for help.
If you're using the stock h_affine binaries for Linux then you might want to consider compiling them for the version of Ubuntu you use. Remember that Ubuntu is not the only Linux, and Linux is not the only unix-style operating system. When dealing with academic tools, it's not uncommon that you'll have to jump through some hoops to get things working the way you want them to.
Also, if you're using a binary that was compiled for a version of Linux that existed five years ago, it's entirely possible that it relies on system libraries that no longer exist in the Linux you're using today.