Building snapshot on Linux
Arne Steinarson
asteinarson@gmail.com
Mon Sep 3 10:15:00 GMT 2007
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
More information about the Gdb
mailing list