In file included from ./disasm/asm_program.cpp:16:0:
/usr/include/libiberty.h:106:36: error: new declaration ‘char*
basename(const char*)’
/usr/include/string.h:603:28: error: ambiguates old declaration ‘const
char* basename(const char*)’
./disasm/asm_program.cpp: In function ‘bfd* initialize_bfd(const
char*)’:
./disasm/asm_program.cpp:520:18: warning: deprecated conversion from
string constant to ‘char*’
make[3]: *** [asm_program.o] Error 1
make[3]: Leaving directory `/home/puneet/bitblaze/vine-1.0/libasmir/
src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/puneet/bitblaze/vine-1.0/libasmir'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/puneet/bitblaze/vine-1.0/libasmir'
make: *** [all-recursive] Error 1
Thanks,
Alex
$(PWD) - very need.
PG> hi,
PG> I am trying to install vine on ubuntu 11.04 but i am getting
PG> this error. Please somebody help me out. Thanks in advance.
PG> In file included from ./disasm/asm_program.cpp:16:0:
PG> /usr/include/libiberty.h:106:36: error: new declaration `char*
PG> basename(const char*)'
PG> /usr/include/string.h:603:28: error: ambiguates old declaration `const
PG> char* basename(const char*)'
Remember that the recommended platform for BitBlaze 1.0 is Ubuntu
9.04. If you're not comfortable modifying the source code yourself to
fix compilation problems, you may be better off using the recommended
platform. However in this case the problem is one we've encountered
before, and it has a simple patch. This has been discussed before in
the following mailing list threads (which you also could have found by
searching the archive for "basename"):
http://groups.google.com/group/bitblaze-users/browse_thread/thread/66983b0ddce7827b/
http://groups.google.com/group/bitblaze-users/browse_thread/thread/59719abebefb7aab/
http://groups.google.com/group/bitblaze-users/browse_thread/thread/ab792469f33f03f7/
http://groups.google.com/group/bitblaze-users/browse_thread/thread/e9a7d3a2df3463c6/
Hope this helps,
-- Stephen