This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
CVS link error
- From: Bob Rossi <bob at brasko dot net>
- To: GDB <gdb at sources dot redhat dot com>
- Date: Mon, 26 Sep 2005 20:28:36 -0400
- Subject: CVS link error
Hi All,
I did updated a fairly recent tree like this,
cvs -d ':ext:bobbybrasko@sources.redhat.com:/cvs/src' co gdb+dejagnu
from the directory that contains the src/ directory.
When I do a build, I get this link error now,
gcc -g -O2 \
-o gdb gdb.o libgdb.a \
../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a -lncurses -lm ../libiberty/libiberty.a -ldl -rdynamic
../libiberty/libiberty.a(xmalloc.o): In function `xmalloc':
../../src/libiberty/xmalloc.c:142: multiple definition of `xmalloc'
libgdb.a(utils.o):../../src/gdb/utils.c:968: first defined here
../libiberty/libiberty.a(xmalloc.o): In function `xcalloc':
../../src/libiberty/xmalloc.c:156: multiple definition of `xcalloc'
libgdb.a(utils.o):../../src/gdb/utils.c:1011: first defined here
../libiberty/libiberty.a(xmalloc.o): In function `xrealloc':
../../src/libiberty/xmalloc.c:171: multiple definition of `xrealloc'
libgdb.a(utils.o):../../src/gdb/utils.c:991: first defined here
collect2: ld returned 1 exit status
make[1]: *** [gdb] Error 1
make[1]: Leaving directory `/home/bob/cvs/gdb/original/objdir/gdb'
make: *** [all-gdb] Error 2
Any idea?
Thanks,
Bob Rossi