make complains about a missing dlfcn/libdl.so when building malloc/libmemprof.so. How can I fix this?
{AJ} Older make version (<= 3.78.90) have a bug which was hidden by a bug in glibc (<= 2.1.2). You need to upgrade make to a newer or fixed version. After upgrading make, you should remove the file sysd-sorted in your build directory. The problem is that the broken make creates a wrong order for one list in that file. The list has to be recreated with the new make - which happens if you remove the file. You might encounter this bug also in other situations where make scans directories. I strongly advise to upgrade your make version to 3.79 or newer.