From: "Andy Hare" <ahare@btinternet.com>
To: "GDB" <gdb@sources.redhat.com>
Subject: Problems building GDB under cygwin and win2k
Date: Mon, 29 Oct 2001 13:23:00 -0000 [thread overview]
Message-ID: <0c5301c160b9$808c9e40$0100000a@dualbeast> (raw)
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 -lc
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.
The gdb source is from the cvs last night and I am running the latest
cygwin.
Andy Hare
www.ahare.btinternet.co.uk
next reply other threads:[~2001-10-29 13:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-29 13:23 Andy Hare [this message]
2001-10-29 15:11 ` Christopher Faylor
2001-10-30 11:24 ` Andy Hare
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='0c5301c160b9$808c9e40$0100000a@dualbeast' \
--to=ahare@btinternet.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