Vine Installation

270 views
Skip to first unread message

Puneet Ginoria

unread,
Dec 10, 2011, 6:10:42 AM12/10/11
to BitBlaze User Discussion group
hi,
I am trying to install vine on ubuntu 11.04 but i am getting this
error. Please somebody help me out. Thanks in advance.


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

Alex Bazhanyuk

unread,
Dec 11, 2011, 12:55:56 AM12/11/11
to bitblaz...@googlegroups.com
Dear Puneet,
Could you install binutils-dev:
sudo apt-get install binutils-dev

Thanks,
Alex

Puneet Ginoria

unread,
Dec 11, 2011, 1:59:58 AM12/11/11
to bitblaz...@googlegroups.com
yes , i have installed that package "binutils-dev" but still its showing the same error.


Alex Bazhanyuk

unread,
Dec 11, 2011, 10:32:54 AM12/11/11
to bitblaz...@googlegroups.com
ok. could you check:
./configure --path-vex=$(PWD)/VEX

$(PWD) - very need.

Stephen McCamant

unread,
Dec 11, 2011, 2:36:38 PM12/11/11
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

Puneet Ginoria

unread,
Dec 13, 2011, 8:47:02 AM12/13/11
to bitblaz...@googlegroups.com
./configure gives this:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for ocamlc... /usr/bin/ocamlc
checking for OCaml version... 3.11.2
checking for OCaml library path... /usr/lib/ocaml
checking for ocamlc.opt... /usr/bin/ocamlc.opt
checking for ocamlc.opt version... 3.11.2
checking for ocamlopt... /usr/bin/ocamlopt
checking for ocamlopt version... 3.11.2
checking if OCaml C compiler works... yes
checking for ocamlopt.opt... /usr/bin/ocamlopt.opt
checking for ocamlopt.opt version... 3.11.2
checking for ocamldep... /usr/bin/ocamldep
checking for ocamldep.opt... /usr/bin/ocamldep.opt
checking for ocamlmktop... /usr/bin/ocamlmktop
checking for ocamlmklib... /usr/bin/ocamlmklib
checking for ocamldoc... /usr/bin/ocamldoc
checking for ocamldoc.opt... /usr/bin/ocamldoc.opt
checking for ocamllex... /usr/bin/ocamllex
checking for ocamllex.opt... /usr/bin/ocamllex.opt
checking for ocamlyacc... /usr/bin/ocamlyacc
checking for ocamlfind... /usr/bin/ocamlfind
checking for camlidl... /usr/bin/camlidl
checking for latex... latex
/usr/lib/ocaml/gdome2
/usr/lib/ocaml/ocamlgraph
/usr/lib/ocaml/extlib
Using i386 version of STP
checking for bfd_init in -lbfd... yes
checking for xmalloc in -liberty... yes
checking for LibVEX_Version in -lvex... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking size of bfd_vma... 8
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for bzero... yes
checking for memset... yes
checking for strstr... yes
checking for strtoul... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libasmir/Makefile
config.status: creating libasmir/apps/Makefile
config.status: creating libasmir/src/Makefile
config.status: creating libasmir/config.h
config.status: executing depfiles commands

see if something can happen.. otherwise i will install ubuntu 9.04

kamlesh...@gmail.com

unread,
Jun 19, 2013, 4:28:44 AM6/19/13
to bitblaz...@googlegroups.com, punnu....@gmail.com
When I am intalling binutils-dev I get the below error saying that caml-base-nox-3.11.2 is not installed.  when I installed caml-base-nox-3.11.2 and again installed binutils-dev it is asking for ocaml-base-nox-3.12.1. When I installed ocaml-base-nox-3.12.1
 the older version gets replace. 
how to solve this problem.


 $ sudo apt-get install binutils-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libextlib-ocaml-dev : Depends: libextlib-ocaml-swve0
                       Recommends: ocaml-findlib but it is not going to be installed
 libgdome2-ocaml : Depends: ocaml-base-nox-3.11.2 but it is not installable
 libocamlgraph-ocaml-dev : Depends: ocaml-nox-3.11.2 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Reply all
Reply to author
Forward
0 new messages