From: "Andy Hare" <ahare@btinternet.com>
To: "Christopher Faylor" <cgf@redhat.com>, "GDB" <gdb@sources.redhat.com>
Subject: Re: Problems building GDB under cygwin and win2k
Date: Tue, 30 Oct 2001 11:24:00 -0000 [thread overview]
Message-ID: <0d2901c16178$7cf1dd80$0100000a@dualbeast> (raw)
In-Reply-To: <20011029181242.A19941@redhat.com>
----- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: "GDB" <gdb@sources.redhat.com>
Sent: Monday, October 29, 2001 11:12 PM
Subject: Re: Problems building GDB under cygwin and win2k
> On Mon, Oct 29, 2001 at 08:36:55PM -0000, Andy Hare wrote:
> >I have been trying to build Insight targeted on ARM under cygwin and
win2k.
> >I have come across a number of problems with the insight side of things
that
> >have now been fixed but GDB fails to build with the following error;
> >
> >gcc -g -O2 -Wl,--subsystem,console -o gdb.exe \
> >main.o libgdb.a cli-decode.o cli-script.o cli-cmds.o cli-setshow.o
> >cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-var.o mi-cmd-break.o
> >mi-cmd-stack.o mi-cmd-disas.o mi-main.o mi-parse.o mi-getopt.o gdbtk.o
> >gdbtk-bp.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-register.o gdbtk-stack.o
> >gdbtk-varobj.o gdbtk-wrapper.o gdbres.o 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/build/arm/itcl/itcl -lcygitcl32 -L/build/arm/itcl
/
>
>itk -lcygitk32 -L/build/arm/tix/win/tcl8.3 -ltix4183 -L/build/arm/tk/win -l
c
> >ygtk83 -L/build/arm/tcl/win -lcygtcl83 -lgdi32 -lcomdlg32 -lm
>
>../libiberty/libiberty.a -luser32 -lshell32 -lgdi32 -lcomdlg32 -ladvapi32\
> >
> >libgdb.a(utils.o): In function `init_page_info':
> >/GNU-Source-Code/src/gdb/utils.c:1531: undefined reference to
> >`_imp__tgetent'
> >/GNU-Source-Code/src/gdb/utils.c:1537: undefined reference to
> >`_imp__tgetnum'
> >/GNU-Source-Code/src/gdb/utils.c:1547: undefined reference to
> >`_imp__tgetnum'
> >collect2: ld returned 1 exit status
> >make[2]: *** [gdb.exe] Error 1
> >make[2]: Leaving directory `/build/arm/gdb'
> >
> >This is the last stage of creating gdb.exe. I have checked though
> >gdb/utils.c to find the errors and find that the missing refernces are
all
> >in a section surrounded by a #ifndef _win32. With the this I realise that
> >maybe the gdb directory should be built with the -mwin32 construct in the
> >command line. Having done this I get a successful build. My question is
this
> >the correct solution or is there something else going wrong. I know there
> >have been problems of late with insight and cygwin and have helped to fix
> >these, is this a case of the same problems.
>
> It looks like you haven't built libtermcap.a for some reason and gdb is
> finding a libtermcap.a from some other library (ncurses?) which
> represents a shared library.
>
> gdb on Windows is not supposed to be using any shared libraries besides
> cygwin1.dll.
>
> cgf
Have put a copy of libtermcap.a in the appropriate directory in the source
tree and re-linked the code. The version came from the usr/lib directory of
the cygwin installation. This still does not work so maybe this is still a
shared library. Any ideas where I can get the source code for the libtermcap
sub-directory to try that.
Andy Hare
www.ahare.btinternet.co.uk
prev parent reply other threads:[~2001-10-30 11:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-29 13:23 Andy Hare
2001-10-29 15:11 ` Christopher Faylor
2001-10-30 11:24 ` Andy Hare [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='0d2901c16178$7cf1dd80$0100000a@dualbeast' \
--to=ahare@btinternet.com \
--cc=cgf@redhat.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox