Failure Building Insight under cygwin 1.1.2

João Cadamuro Junior cadamuro@lit.cpdtt.cefetpr.br
Tue Jul 11 10:31:00 GMT 2000


The declaration of "strsignal" was removed from gdb/defs.h and the compilation
continues. But unfortunately we had another problem...

rm -f gdb.exe
gcc -g -O2       -Wl,--subsystem,console -o gdb.exe main.o libgdb.a
../sim/ppc/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'

The function "Tix_Init" is declared as EXTERN in the <tix.h> module, but the
linker is unable to find the function.

Someone has another hit???

Thanks a lot...

Cadamuro



> Subject: Fwd: Re: Failure Building Insight under cygwin 1.1.2
> Date: Mon, 10 Jul 100 19:02:46 +0000
> From: fernando@stratus.swi.com.br
> To: cadamuro@corvo.cpgei.cefetpr.br
>
> Forwarded Message:
> > Para: fernando@stratus.swi.com.br
> > De: Chris Faylor <cgf@cygnus.com>
> > Assunto: Re: Failure Building Insight under cygwin 1.1.2
> > Data: Mon, 10 Jul 2000 14:03:20 -0400
> > -----
> <pre>
> On Mon, Jul 10, 2000 at 05:14:03PM +0000, fernando@stratus.swi.com.br wrote:
> >Hi GDB,
> >
> >Sorry if this question has already been discussed, but I didn't find it
> >in the Insight/GDB mail archives...
> >
> >I'm trying to build a Insight-5.0 to use it with powerpc-eabi-gcc cross
> >compiler. My host is cygwin 1.1.2 running under Windows NT Server 4.0
> >(SP6).
> >
> >I used the options: --target=powerpc-eabi --prefix=/ppctools to
> >configure Insight.
> >
> >After a long compilation time, I received the following output:
> >
> >gcc -c -g -O2 -DDEFAULT_INLINE=INLINE_LOCALS
> >-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SMP=5
> >-DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO     -I.
> >-I/src/gdb/insight-5.0/sim/ppc
> >-I/src/gdb/insight-5.0/sim/ppc/../../include -I../../bfd
> >-I/src/gdb/insight-5.0/sim/ppc/../../bfd -I../../gdb
> >-I/src/gdb/insight-5.0/sim/ppc/../../gdb
> >-I/src/gdb/insight-5.0/sim/ppc/../../gdb/config
> >-I/src/gdb/insight-5.0/sim/ppc/../../mmalloc
> >/src/gdb/insight-5.0/sim/ppc/sim_calls.c
> >In file included from /src/gdb/insight-5.0/sim/ppc/sim_calls.c:43:
> >/src/gdb/insight-5.0/sim/ppc/../../gdb/defs.h:60: conflicting types for
> >`strsignal'
> >/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/string.h:71:
> >previous declaration of `strsignal'
> >make[2]: *** [sim_calls.o] Error 1
> >make[2]: Leaving directory `/tmp/build/gdb/sim/ppc'
> >make[1]: *** [all] Error 2
> >make[1]: Leaving directory `/tmp/build/gdb/sim'
> >make: *** [all-sim] Error 2
> >make: Leaving directory `/tmp/build/gdb'
> >
> >I tried some workarounds to solve the problem changing file
> >"sim_calls.c", but without success.
> >
> >Someone can give me a "light" on this question???
>
> Remove the declaration in gdb/defs.h.
>
> cgf
> </pre>



More information about the Gdb mailing list