RZ> Dear all,
RZ> I have the following when I try to compile it ("make").
RZ> =====================
RZ> In file included from ./disasm/asm_program.cpp:16:
RZ> /usr/include/libiberty.h:106: error: new declaration `char*
RZ> basename(const char*)'
RZ> /usr/include/string.h:601: error: ambiguates old declaration `const
RZ> char* basename(const char*)'
RZ> =====================
RZ> Could you please let me know if you know how to fix this.
Sorry for letting this question languish in the moderation queue.
(It's a necessary evil to reduce spam, but it sometimes makes for an
unfortunate bottleneck).
This error is one that we've seen before, and which has also affected
some other open-source projects; it's a header file incompatibility
between certain versions of the Binutils and glibc. You can work
around it by defining "HAVE_DECL_BASENAME" before including
"libiberty.h". Previous discussions on the list have more information,
including an explicit patch:
http://www.lmgtfy.com/?q=BitBlaze+Vine+basename
Hope this helps,
-- Stephen