public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Chris Faylor <cgf@cygnus.com>
To: Andreas Kuepper <insulaner_andi@yahoo.com>
Cc: gdb@sourceware.cygnus.com
Subject: Re: building GDB on Cygwin fails
Date: Sat, 11 Mar 2000 18:32:00 -0000	[thread overview]
Message-ID: <20000311213137.C14272@cygnus.com> (raw)
In-Reply-To: <20000311184701.12922.qmail@web3401.mail.yahoo.com>

You have multiple problems here.

It looks like something has changed which causes gdb to require the
sigtramp_saved_pc function.  I wonder if this is somehow due to Mark
Kettenis's changes of 2000-03-04.

Your other problems are due to the fact that you are mixing an old
library (libtermcap.a) with a newer libcygwin.a --  _ctype_ is no longer
defined in libcygwin.a.  The simple solution is to recompile libtermcap.a
using the headers and libraries in one of the cygwin snapshots.

cgf

On Sat, Mar 11, 2000 at 10:47:01AM -0800, Andreas Kuepper wrote:
>I am running a Win98 host system and installed Cygwin
>successfully. The building of a GCC cross compiler was
>also successfully for a DOS based target system using
>DJGPP.
>
>Now I want to install GDB on my host(on Cygwin) and
>build it for my DJGPP target. By using the latest GDB
>(gdb-20000305.tar.bz2) the configure script works
>fine. But when I want to build it, I get the following
>error message while 'make' is inside the gdb-folder :
>
>bash-2.02$ make
>rm -f gdb.exe
>gcc -g        -o gdb.exe main.o libgdb.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`  
>  -lm  ../libiberty/libiberty.a -luser32 
>libgdb.a(stack.o): In function `frame_info':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/stack.c:952:
>undefined reference to `sigtramp_saved_pc'
>libgdb.a(blockframe.o): In function
>`file_frame_chain_valid':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:48:
>undefined reference to `sigtramp_saved_pc'
>libgdb.a(blockframe.o): In function `get_prev_frame':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:479:
>undefined reference to `sigtramp_saved_pc'
>libgdb.a(blockframe.o): In function
>`generic_file_frame_chain_valid':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:1276:
>undefined reference to `sigtramp_saved_pc'
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:1279:
>undefined reference to `sigtramp_saved_pc'
>/cygdrive/c/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../libtermcap.a(tputs.o):
>In function `tputs':
>/home/noer/src/b20/comp-tools/devo/libtermcap/tputs.c:72:
>undefined reference to `_ctype_'
>/home/noer/src/b20/comp-tools/devo/libtermcap/tputs.c:75:
>undefined reference to `_ctype_'
>/home/noer/src/b20/comp-tools/devo/libtermcap/tputs.c:80:
>undefined reference to `_ctype_'
>/cygdrive/c/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../libtermcap.a(termcap.o):
>In function `tgetent':
>/home/noer/src/b20/comp-tools/devo/libtermcap/termcap.c:251:
>undefined reference to `_ctype_'
>/cygdrive/c/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../libtermcap.a(getcap.o):
>In function `cgetnext':
>/home/noer/src/b20/comp-tools/devo/libtermcap/getcap.c:686:
>undefined reference to `_ctype_'
>collect2: ld returned 1 exit status
>make: *** [gdb.exe] Error 1
>bash-2.02$ 
>
>
>I really don't know where to search for the fault
>***[gdb.exe] Error
>
>Thank you for your help !!
>
>Andreas Kuepper
>__________________________________________________
>Do You Yahoo!?
>Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

-- 
cgf@cygnus.com                        Cygnus Solutions, a Red Hat company
http://sourcware.cygnus.com/          http://www.redhat.com/

WARNING: multiple messages have this Message-ID
From: Chris Faylor <cgf@cygnus.com>
To: Andreas Kuepper <insulaner_andi@yahoo.com>
Cc: gdb@sourceware.cygnus.com
Subject: Re: building GDB on Cygwin fails
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <20000311213137.C14272@cygnus.com> (raw)
Message-ID: <20000401000000.otmPScde5_b5htGHLTD3gx-T2DMLuVjEIvVYiw0kcW0@z> (raw)
In-Reply-To: <20000311184701.12922.qmail@web3401.mail.yahoo.com>

You have multiple problems here.

It looks like something has changed which causes gdb to require the
sigtramp_saved_pc function.  I wonder if this is somehow due to Mark
Kettenis's changes of 2000-03-04.

Your other problems are due to the fact that you are mixing an old
library (libtermcap.a) with a newer libcygwin.a --  _ctype_ is no longer
defined in libcygwin.a.  The simple solution is to recompile libtermcap.a
using the headers and libraries in one of the cygwin snapshots.

cgf

On Sat, Mar 11, 2000 at 10:47:01AM -0800, Andreas Kuepper wrote:
>I am running a Win98 host system and installed Cygwin
>successfully. The building of a GCC cross compiler was
>also successfully for a DOS based target system using
>DJGPP.
>
>Now I want to install GDB on my host(on Cygwin) and
>build it for my DJGPP target. By using the latest GDB
>(gdb-20000305.tar.bz2) the configure script works
>fine. But when I want to build it, I get the following
>error message while 'make' is inside the gdb-folder :
>
>bash-2.02$ make
>rm -f gdb.exe
>gcc -g        -o gdb.exe main.o libgdb.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`  
>  -lm  ../libiberty/libiberty.a -luser32 
>libgdb.a(stack.o): In function `frame_info':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/stack.c:952:
>undefined reference to `sigtramp_saved_pc'
>libgdb.a(blockframe.o): In function
>`file_frame_chain_valid':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:48:
>undefined reference to `sigtramp_saved_pc'
>libgdb.a(blockframe.o): In function `get_prev_frame':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:479:
>undefined reference to `sigtramp_saved_pc'
>libgdb.a(blockframe.o): In function
>`generic_file_frame_chain_valid':
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:1276:
>undefined reference to `sigtramp_saved_pc'
>/djgpp/cross/gdb2000/gdb/../../gdb-20000305/gdb/blockframe.c:1279:
>undefined reference to `sigtramp_saved_pc'
>/cygdrive/c/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../libtermcap.a(tputs.o):
>In function `tputs':
>/home/noer/src/b20/comp-tools/devo/libtermcap/tputs.c:72:
>undefined reference to `_ctype_'
>/home/noer/src/b20/comp-tools/devo/libtermcap/tputs.c:75:
>undefined reference to `_ctype_'
>/home/noer/src/b20/comp-tools/devo/libtermcap/tputs.c:80:
>undefined reference to `_ctype_'
>/cygdrive/c/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../libtermcap.a(termcap.o):
>In function `tgetent':
>/home/noer/src/b20/comp-tools/devo/libtermcap/termcap.c:251:
>undefined reference to `_ctype_'
>/cygdrive/c/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../libtermcap.a(getcap.o):
>In function `cgetnext':
>/home/noer/src/b20/comp-tools/devo/libtermcap/getcap.c:686:
>undefined reference to `_ctype_'
>collect2: ld returned 1 exit status
>make: *** [gdb.exe] Error 1
>bash-2.02$ 
>
>
>I really don't know where to search for the fault
>***[gdb.exe] Error
>
>Thank you for your help !!
>
>Andreas Kuepper
>__________________________________________________
>Do You Yahoo!?
>Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

-- 
cgf@cygnus.com                        Cygnus Solutions, a Red Hat company
http://sourcware.cygnus.com/          http://www.redhat.com/

  reply	other threads:[~2000-03-11 18:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-11 10:47 Andreas Kuepper
2000-03-11 18:32 ` Chris Faylor [this message]
2000-04-01  0:00   ` Chris Faylor
2000-03-11 23:56 ` Eli Zaretskii
2000-04-01  0:00   ` Eli Zaretskii
2000-04-01  0:00 ` Andreas Kuepper

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=20000311213137.C14272@cygnus.com \
    --to=cgf@cygnus.com \
    --cc=gdb@sourceware.cygnus.com \
    --cc=insulaner_andi@yahoo.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).