Problems with building vine-1.0

215 views
Skip to first unread message

Sandeep K. Shukla

unread,
Jun 30, 2011, 7:51:54 PM6/30/11
to bitblaz...@googlegroups.com
I tried to delete my previous infinished directory,. redownloaded the vine-1.0.tar.gz and try again, and now I am getting the errors as follows:;; any help?

make  all-recursive
make[2]: Entering directory `/home/shukla/BitBlaze/vine-1.0/libasmir'
Making all in src
make[3]: Entering directory `/home/shukla/BitBlaze/vine-1.0/libasmir/src'
g++ -DHAVE_CONFIG_H -I. -I../../libasmir    -I/home/shukla/BitBlaze/vine-1.0/VEX//pub -I./include -fPIC -g -O2 -MT asm_program.o -MD -MP -MF .deps/asm_program.Tpo -c -o asm_program.o `test -f './disasm/asm_program.cpp' || echo './'`./disasm/asm_program.cpp
In file included from ./disasm/asm_program.cpp:16:
/usr/include/libiberty.h:106: error: new declaration ‘char* basename(const char*)’
/usr/include/string.h:601: 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: warning: deprecated conversion from string constant to ‘char*’
make[3]: *** [asm_program.o] Error 1
make[3]: Leaving directory `/home/shukla/BitBlaze/vine-1.0/libasmir/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/shukla/BitBlaze/vine-1.0/libasmir'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/shukla/BitBlaze/vine-1.0/libasmir'
make: *** [all-recursive] Error 1
make  all-recursive
make[2]: Entering directory `/home/shukla/BitBlaze/vine-1.0/libasmir'
Making all in src
make[3]: Entering directory `/home/shukla/BitBlaze/vine-1.0/libasmir/src'
g++ -DHAVE_CONFIG_H -I. -I../../libasmir    -I/home/shukla/BitBlaze/vine-1.0/VEX//pub -I./include -fPIC -g -O2 -MT asm_program.o -MD -MP -MF .deps/asm_program.Tpo -c -o asm_program.o `test -f './disasm/asm_program.cpp' || echo './'`./disasm/asm_program.cpp
In file included from ./disasm/asm_program.cpp:16:
/usr/include/libiberty.h:106: error: new declaration ‘char* basename(const char*)’
/usr/include/string.h:601: 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: warning: deprecated conversion from string constant to ‘char*’
make[3]: *** [asm_program.o] Error 1
make[3]: Leaving directory `/home/shukla/BitBlaze/vine-1.0/libasmir/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/shukla/BitBlaze/vine-1.0/libasmir'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/shukla/BitBlaze/vine-1.0/libasmir'
make: *** [all-recursive] Error 1

Stephen McCamant

unread,
Jul 3, 2011, 10:46:28 PM7/3/11
to bitblaz...@googlegroups.com
>>>>> "SKS" == Sandeep K Shukla <shukla....@gmail.com> writes:

SKS> I tried to delete my previous infinished directory,. redownloaded
SKS> the vine-1.0.tar.gz and try again,

The errors your were having earlier sounded weird, but if they went
away when you tried again from scratch, they probably came from some
mistake that you avoided the second time, so I'm guessing they won't
reoccur.

SKS> and now I am getting the errors as follows:;; any help?

SKS> make all-recursive
SKS> make[2]: Entering directory `/home/shukla/BitBlaze/vine-1.0/libasmir'
SKS> Making all in src
SKS> make[3]: Entering directory `/home/shukla/BitBlaze/vine-1.0/libasmir/src'
SKS> g++ -DHAVE_CONFIG_H -I. -I../../libasmir
SKS> -I/home/shukla/BitBlaze/vine-1.0/VEX//pub -I./include -fPIC -g -O2 -MT
SKS> asm_program.o -MD -MP -MF .deps/asm_program.Tpo -c -o asm_program.o `test -f
SKS> './disasm/asm_program.cpp' || echo './'`./disasm/asm_program.cpp
SKS> In file included from ./disasm/asm_program.cpp:16:
SKS> /usr/include/libiberty.h:106: error: new declaration `char* basename(const
SKS> char*)'
SKS> /usr/include/string.h:601: error: ambiguates old declaration `const char*
SKS> basename(const char*)'

This more recent 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

roddam bramhini

unread,
May 6, 2013, 1:07:17 AM5/6/13
to bitblaz...@googlegroups.com, shukla....@gmail.com
hi everyone i am still getting the same errors. can anyone help me..
Thanks in advance..
Reply all
Reply to author
Forward
0 new messages