This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Building snapshot on Linux
- From: "Arne Steinarson" <asteinarson at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 3 Sep 2007 12:15:14 +0200
- Subject: Building snapshot on Linux
I've downloaded GDB snapshot (gdb-weekly-CVS-6.6.50.20070828.tar) and
want to build it on Ubuntu Linux. Gcc version is 4.1.2.
After adding texinfo, flex & bison packages I make some progress with the build:
./configure --disable-werror
make
(without --disable-werror the build terminates rather quickly).
Then I get the following linker error:
ar: creating libgdb.a
ranlib libgdb.a
rm -f gdb
gcc -g -O2 \
-o gdb gdb.o libgdb.a \
../readline/libreadline.a ../opcodes/libopcodes.a
../bfd/libbfd.a ../libiberty/libiberty.a -lncurses -lm -lexpat
../libiberty/libiberty.a -ldl -rdynamic
libgdb.a(c-lang.o): In function `c_preprocess_and_parse':
/usr/src/gdb/src/gdb/c-lang.c:482: undefined reference to `c_parse'
libgdb.a(c-lang.o):(.rodata+0x284): undefined reference to `c_error'
libgdb.a(c-lang.o):(.rodata+0x304): undefined reference to `c_error'
Any suggestion on how to make it work?
Regards
// Arne Steinarson