Vine make fails

141 views
Skip to first unread message

Bindu Madhavi

unread,
Dec 13, 2011, 11:52:14 PM12/13/11
to bitblaz...@googlegroups.com
Hi, I'm a new to Vine. I get the following error when i used make command to compile Vine source. Could you please direct me to compile it successfully.

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 `/.../vine-1.0/libasmir/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /.../vine-1.0/libasmir'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/.../vine-1.0/libasmir'

赵磊

unread,
Dec 14, 2011, 12:07:34 AM12/14/11
to bitblaz...@googlegroups.com
--------- Forwarded message ----------
From: Stephen McCamant <sm...@cs.berkeley.edu>
Date: 2011/12/12
Subject: Re: Vine Installation
To: bitblaz...@googlegroups.com


>>>>> "PG" == Puneet Ginoria <punnu....@gmail.com> writes:

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




2011/12/14 Bindu Madhavi <padm...@gmail.com>

Bindu

unread,
Dec 14, 2011, 1:39:09 AM12/14/11
to BitBlaze User Discussion group
Thank you. Will do my search first before posting next time.

Regards,
Bindu

On Dec 14, 1:07 pm, 赵磊 <zhaolei....@gmail.com> wrote:
> --------- Forwarded message ----------
> From: Stephen McCamant <s...@cs.berkeley.edu>
> Date: 2011/12/12
> Subject: Re: Vine Installation
> To: bitblaz...@googlegroups.com
>

> >>>>> "PG" == Puneet Ginoria <punnu.gino...@gmail.com> writes:
>
> 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/66...http://groups.google.com/group/bitblaze-users/browse_thread/thread/59...http://groups.google.com/group/bitblaze-users/browse_thread/thread/ab...http://groups.google.com/group/bitblaze-users/browse_thread/thread/e9...


>
> Hope this helps,
>
>  -- Stephen
>

> 2011/12/14 Bindu Madhavi <padm0...@gmail.com>


>
>
>
> > Hi, I'm a new to Vine. I get the following error when i used make command
> > to compile Vine source. Could you please direct me to compile it
> > successfully.
>
> > 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 `/.../vine-1.0/libasmir/src'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory /.../vine-1.0/libasmir'
> > make[1]: *** [all] Error 2

> > make[1]: Leaving directory `/.../vine-1.0/libasmir'- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages