This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: Problem about install gdb5.0 configured with WDB support undercygwin.


I think you would have much better luck on the gdb mailing list.  As such,
I have redirected this discussion there (gdb at sources dot redhat dot
com)...

On Tue, 18 May 2004, shanyecunfu888 wrote:

> Hi there,
>
>    I am running a Win2000 host system and installed Cygwin successfully.
> The building of a GCC cross compiler was also successfully for a
> powerpc-vxworks based target system.
>    Now I want to install GDB on my host(on Cygwin) and build it with wdb
> support for my target. By using GDB5.0 ,patched by Mr.till's file named
> "gdb-5.0-wdbpatch-1.1",the configure script " <dirPath>/configure
> --prefix=/gdb5.0 --target=powerpc-vxworks --enable-vxwdb" works fine.

explaining who Mr. Till is and where this patch came from would probably
help.

> But when I want to build it, I get the following error message:
>
> gcc -g -O2        -o gdb.exe main.o libgdb.a vx-wdb/libwdb.a   ../bfd/libbfd.a .
> ./readline/libreadline.a ../opcodes/libopcodes.a ./../intl/libintl.a ../libibert
> y/libiberty.a `if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/li
> btermcap.a; else echo -ltermcap; fi`     -lm  ../libiberty/libiberty.a -luser32
>
> libgdb.a(remote-vx.o)(.text+0x9c): In function `net_load':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:242: undefined reference to `_xdr_wrap
> string'

xdr functions are related to the Sun RPC library.  Check to see if you
have the sunrpc package installed and read:

/usr/share/doc/Cygwin/sunrpc-4.0-2.README

to see if that helps.  Try linking with -lrpclib.

> libgdb.a(remote-vx.o)(.text+0x25d): In function `wdb_breakpoint_del':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:382: undefined reference to `_xdr_void
> '
> libgdb.a(remote-vx.o)(.text+0x966): In function `wdb_wait':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:732: undefined reference to `_xdr_void
> '
> libgdb.a(remote-vx.o)(.text+0xa54): In function `wdb_quit_step_resume':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:793: undefined reference to `_xdr_void
> '
> libgdb.a(remote-vx.o)(.text+0xada):/gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:804
> : undefined reference to `_xdr_void'
> libgdb.a(remote-vx.o)(.text+0xb95): In function `vx_xfer_memory':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:969: undefined reference to `_xdr_void
> '
> libgdb.a(remote-vx.o)(.text+0x1184):/gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:13
> 39: more undefined references to `_xdr_void' follow
> libgdb.a(remote-vx.o)(.text+0x1194): In function `net_get_boot_file':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:1339: undefined reference to `_xdr_wra
> pstring'
> libgdb.a(remote-vx.o)(.text+0x11d1): In function `net_get_symbols':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:1357: undefined reference to `_xdr_voi
> d'
> libgdb.a(remote-vx.o)(.text+0x1265): In function `vx_lookup_symbol':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:1380: undefined reference to `_xdr_wra
> pstring'
> libgdb.a(remote-vx.o)(.text+0x12fe): In function `net_check_for_fp':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:1407: undefined reference to `_xdr_voi
> d'
> libgdb.a(remote-vx.o)(.text+0x130e):/gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:14
> 07: undefined reference to `_xdr_bool'
> libgdb.a(remote-vx.o)(.text+0x14b3): In function `net_connect':
> /gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:1455: undefined reference to `_get_mya
> ddress'
> libgdb.a(remote-vx.o)(.text+0x14f9):/gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:14
> 63: undefined reference to `_clnttcp_create'
> libgdb.a(remote-vx.o)(.text+0x1541):/gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:14
> 66: undefined reference to `_clntudp_create'
> libgdb.a(remote-vx.o)(.text+0x1559):/gnutooli3860/src/gdb-5.0/gdb/remote-vx.c:14
> 85: undefined reference to `_xdr_void'
>
>
> ...
>
> /gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c:31: undefined reference to `_xd
> r_enum'
> libgdb.a(xdr_rdb.o)(.text+0x87): In function `xdr_arg_value':
> /gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c:47: undefined reference to `_xd
> r_char'
> libgdb.a(xdr_rdb.o)(.text+0xad):/gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c
> :52: undefined reference to `_xdr_short'
> libgdb.a(xdr_rdb.o)(.text+0xbe):/gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c
> :57: undefined reference to `_xdr_int'
> libgdb.a(xdr_rdb.o)(.text+0xcf):/gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c
> :62: undefined reference to `_xdr_float'
> libgdb.a(xdr_rdb.o)(.text+0xe0):/gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c
> :67: undefined reference to `_xdr_double'
> libgdb.a(xdr_rdb.o)(.text+0x10a): In function `xdr_func_call':
> /gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c:82: undefined reference to `_xd
> r_int'
> libgdb.a(xdr_rdb.o)(.text+0x14a):/gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.
> c:85: undefined reference to `_xdr_array'
> libgdb.a(xdr_rdb.o)(.text+0x17c): In function `xdr_arg_one':
>
> ...
>
> libgdb.a(xdr_rdb.o)(.text+0x34a): In function `xdr_SOURCE_STEP':
> /gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.c:205: undefined reference to `_x
> dr_int'
> libgdb.a(xdr_rdb.o)(.text+0x36b):/gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.
> c:207: undefined reference to `_xdr_u_int'
> libgdb.a(xdr_rdb.o)(.text+0x380):/gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_rdb.
> c:209: undefined reference to `_xdr_u_int'
> libgdb.a(xdr_ld.o)(.text+0x40): In function `xdr_String':
> /gnutooli3860/src/gdb-5.0/gdb/vx-share/xdr_ld.c:47: undefined reference to `_xdr
> _string'
>
> ...
>
> vx-wdb/libwdb.a(ctx.o)(.text+0x1a): In function `xdr_WDB_CTX':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/ctx.c:41: undefined reference to `_xdr_enum
> '
> vx-wdb/libwdb.a(evtdata.o)(.text+0x14b): In function `xdr_WDB_CALL_RETURN_INFO':
>
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/evtdata.c:109: undefined reference to `_xdr
> _enum'
> vx-wdb/libwdb.a(evtdata.o)(.text+0x197):/gnutooli3860/src/gdb-5.0/gdb/vx-wdb/evt
> data.c:115: undefined reference to `_xdr_double'
> vx-wdb/libwdb.a(evtdata.o)(.text+0x1ba): In function `xdr_WDB_EVT_DATA':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/evtdata.c:145: undefined reference to `_xdr
> _enum'
> vx-wdb/libwdb.a(ctxcreat.o)(.text+0x1d): In function `xdr_WDB_CTX_CREATE_DESC':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/ctxcreat.c:48: undefined reference to `_xdr
> _enum'
> vx-wdb/libwdb.a(evtpoint.o)(.text+0x1a): In function `xdr_WDB_ACTION':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/evtpoint.c:41: undefined reference to `_xdr
> _enum'
> vx-wdb/libwdb.a(evtpoint.o)(.text+0x9d): In function `xdr_WDB_EVTPT_ADD_DESC':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/evtpoint.c:69: undefined reference to `_xdr
> _enum'
> vx-wdb/libwdb.a(evtpoint.o)(.text+0x15a): In function `xdr_WDB_EVTPT_DEL_DESC':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/evtpoint.c:99: undefined reference to `_xdr
> _enum'
> vx-wdb/libwdb.a(xdrcore.o)(.text+0xc6): In function `xdr_WDB_OPQ_DATA_T':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/xdrcore.c:104: undefined reference to `_xdr
> _opaque'
> vx-wdb/libwdb.a(xdrcore.o)(.text+0x10d):/gnutooli3860/src/gdb-5.0/gdb/vx-wdb/xdr
> core.c:135: undefined reference to `_xdr_opaque'
> vx-wdb/libwdb.a(xdrcore.o)(.text+0x1a5): In function `xdr_ARRAY':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/xdrcore.c:222: undefined reference to `_xdr
> _array'
> vx-wdb/libwdb.a(regs.o)(.text+0x1a): In function `xdr_WDB_REG_READ_DESC':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/regs.c:39: undefined reference to `_xdr_enu
> m'
> vx-wdb/libwdb.a(regs.o)(.text+0x7a): In function `xdr_WDB_REG_WRITE_DESC':
> /gnutooli3860/src/gdb-5.0/gdb/vx-wdb/regs.c:64: undefined reference to `_xdr_enu
> m'
> collect2: ld returned 1 exit status
> make[1]: *** [gdb.exe] Error 1
> make[1]: Leaving directory `/gnutooli3860/build/gdb5.0-ppc/gdb'
> make: *** [all-gdb] Error 2
>
>     I really don't know where to search for the error.It seems the
> building process of gdb.exe cannot find libwdb.a and libgdb.a's function
> reference,but how the two librarys can be generated correctly? Thank you
> for your help.

HTH, but I'm at the end of my rope :-).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...


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