This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building snapshot on Linux


There were some remains from trying to build when flex/bison was half
installed. make clean didn't clear that. Extracting tar file again and
restarting from scratch solved it.

Compiled fine and works fine from inside Eclipse CDT.

Reason to compile this was to get support for virtual thunks in C++.
And it works.

Regards
// ATS



On 9/3/07, Daniel Jacobowitz <drow@false.org> wrote:
> On Mon, Sep 03, 2007 at 12:15:14PM +0200, Arne Steinarson wrote:
> > 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'
>
> It looks to me like you have some version of a tool (bison maybe?)
> that doesn't work with GDB.  I don't know why, I haven't had this problem.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]