Hi, This patch is as per suggestion from Pedro, I've also added a check for vasprintf just for completeness sake, and that there is a similar condition for HAVE_DECL_VASPRINTF in libiberty.h. https://sourceware.org/ml/gdb-patches/2015-06/msg00654.html As per my comments earlier, I am going blind on this, but it looks correct to me, and I can at least verify on my machine that I can see: configure stage --- checking whether asprintf is declared... yes checking whether vasprintf is declared... yes --- config.h --- /* Define to 1 if you have the declaration of `asprintf', and to 0 if you don't. */ #define HAVE_DECL_ASPRINTF 1 /* Define to 1 if you have the declaration of `vasprintf', and to 0 if you don't. */ #define HAVE_DECL_VASPRINTF 1 --- So should either one be false, they should have a proper declaration in libiberty.h Luis, can you check this patch is good for you? Regards Iain ---