This is the mail archive of the
insight@sourceware.cygnus.com
mailing list for the Insight project.
Re: Problem compiling gdbtk.c
- To: Andreas dot Karlsson at combitechsystems dot com
- Subject: Re: Problem compiling gdbtk.c
- From: Mo DeJong <mdejong at cygnus dot com>
- Date: Mon, 3 Jul 2000 04:30:25 -0700 (PDT)
- cc: insight at sourceware dot cygnus dot com
On Mon, 3 Jul 2000 Andreas.Karlsson@combitechsystems.com wrote:
>
> Hi!
>
> When following the installation instructions on eCos' homepage I get the
> following error building insight-5.0
> Any ideas?
>
...
> make[2]: Entering directory `/tmp/build/gdb/gdb/rdi-share'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/tmp/build/gdb/gdb/rdi-share'
> rm -f gdb.exe
> gcc -g -O2 -Wl,--subsystem,console -o gdb.exe main.o libgdb.a
> rdi-share/libangsd.a ../sim/arm/libsim.a ../bfd/libbfd.a
> ../readline/libreadline.a ../opcodes/libopcodes.a ./../intl/libintl.a
> ../libiberty/libiberty.a `if test -r ../libtermcap/libtermcap.a; then echo
> ../libtermcap/libtermcap.a; else echo -ltermcap; fi`
> ../libgui/src/libgui.a -L/tmp/build/gdb/itcl/itcl/win -litcl30
> -L/tmp/build/gdb/itcl/itk/win -litk30 -L/tmp/build/gdb/tix/win/tcl8.0
> -ltix4180 -L/tmp/build/gdb/tk/win -ltk80 -L/tmp/build/gdb/tcl/win -ltcl80
> -lm -lm ../libiberty/libiberty.a -luser32 -lshell32 -lgdi32 -lcomdlg32
> -ladvapi32
> libgdb.a(gdbtk.o): In function `gdbtk_init':
> /src/gdb/insight-5.0/gdb/gdbtk/generic/gdbtk.c:433: undefined reference to
> `Tix_Init'
> /src/gdb/insight-5.0/gdb/gdbtk/generic/gdbtk.c:435: undefined reference to
> `Tix_Init'
> collect2: ld returned 1 exit status
> make[1]: *** [gdb.exe] Error 1
> make[1]: Leaving directory `/tmp/build/gdb/gdb'
> make: *** [all-gdb] Error 2
> make: Leaving directory `/tmp/build/gdb'
That is strange. That method should be
defined in libtix.
tix/unix/tk8.0/libtix4.1.8.0.a
% nm tix/unix/tk8.0/libtix4.1.8.0.a | grep Tix_Init
00000934 T Tix_Init
Your link line suggests that the tix lib should
be defined in /tmp/build/gdb/tix/win/tcl8.0 and
be named something like libtix4180...
Could you check that the lib file is there and
that it has the Tix_Init method in it?
Mo DeJong
Red Hat Inc