The curiosity here is the "_p" on the end of the name. This suggest a profiling version of the readline library has been requested, yet none of the other object files or libraries appear to be for profiling. Perhaps this is just a Makefile bug? I'm pretty sure it should be looking for plain old -lHSreadline-1.0.1.0, without the _p.