This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

New to eCOS and tool building, problem building a cross gdb on cygwin using gdb sources downloaded via cygwin's setup.exe


Following the instructions on the ecos web site about building a
cross-debugger for cywgin, I'm trying to build one for the ARM compiler. I
used to latest sources downloaded through CYGWIN SETUP.EXE, which grabbed
gdb-gdb-200010428-3, since I figured that these packages probably would
"./configure;make all;make install" the most easily.  Anyways, I got GCC and
BINUTILS installed fine, but gdb dies.

make failes when linking libgdb.a, because of undefined external variable
which is a function of some kind (default_callback) declared in
remote-rdp.c.

I'm wondering if this is a CYGWIN thing. Shouldn't undefined externals be
allowd normally in Unix libraries, isn't that how certain functionality in
linking of library files is accomplished? Link it later, the .a file could
have undefined symbols.

Suffice it to say that I'm over my head. I'm reasonably good in Linux doing
this stuff, but I thought I'd try to get cygwin/redhat/ecos/gcc cross
compilers up and running on Windows (2000).

Anyone help?  gdb make output follows.

Regards,
Warren Postma

---------------

--- Output of make on gdb-gdb-20010428-3

...... runs fine for 10 minutes then ....

ar cru libangsd.a ardi.o angel_bytesex.o crc.o devsw.o drivers.o etherdrv.o
hostchan.o hsys.o logging.o msgbuild.o params.o rx.o serdrv.o serpardr.o
tx.o unixcomm.o
ranlib libangsd.a
make[2]: Leaving directory `/tmp/build/gdb/gdb/rdi-share'
rm -f gdb.exe
gcc -mwin32 -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 gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o
gdbtk-wrapper.o gdbres.o rdi-share/libangsd.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/bu
ild/gdb/tk/win -ltk80 -L/tmp/build/gdb/tcl/win -ltcl80      -lm -lm
../libiberty/libiberty.a -luser32 -lshell32 -lgdi32 -lcomdlg32 -ladvapi32\

libgdb.a(remote-rdp.o)(.data+0x0):remote-rdp.c: undefined reference to
`_default_callback'


---


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]