https://groups.google.com/d/msg/bitblaze-users/Zpg7Ddzngns/o7LNnR0qqxwJ Index: libasmir/src/disasm/asm_program.cpp =================================================================== --- libasmir/src/disasm/asm_program.cpp (older version) +++ libasmir/src/disasm/asm_program.cpp (fixed version) @@ -7,6 +7,11 @@ #include "debug.h" #include "asm_program.h" #include "objdump.h" +/* Some versions of glibc and the binutils libiberty library give + conflicting prototypes for basename(). We don't use that function + anyway, but to work around the problem, make libliberty.h think + that it has already been declared. */ +#define HAVE_DECL_BASENAME 1 #include "libiberty.h"