public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Clarifications regarding BDM GDB Insight for M68k
@ 2002-04-14 23:09 Prasanna - Khanapur
  2002-04-15  8:07 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Prasanna - Khanapur @ 2002-04-14 23:09 UTC (permalink / raw)
  To: insight

Hello,
I'm trying to make Insight GDB BDM for M68k processor in cygwin 
environment on an WINNT machine.
I installed the latest cygwin version on the WINNT and 
uncomopressed the insight-5.0.tar.bz2 file on the cygwin dir.
I ran the configure and make file :

>./configure --target=m68k-bdm-elf
>make

I faced few problems for which I made some fixes, some header 
files where not included so included the corresponding the files 
needed.

But at the end that is in the final linking of the gdb.exe I had 
faced the following errors:
************************************************************************************************************
gcc -g -O2       -Wl,--subsystem,console -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`    
../libgui/src/libgui.a 
-L/home/taxi/insight-5.0/insight-5.0/itcl/itcl/win -litcl30 
-L/home/taxi/insight-5.0/insight-5.0/itcl/itk/win -litk30 
-L/home/taxi/insight-5.0/insight-5.0/tix/win/tcl8.0 -ltix4180 
-L/home/taxi/insight-5.0/insight-5.0/tk/win -ltk80 
-L/home/taxi/insight-5.0/insight-5.0/tcl/win -ltcl80      -lm -lm  
../libiberty/libiberty.a -luser32 -lshell32 -lgdi32 -lcomdlg32 
-ladvapi32
libgdb.a(gdbtk.o): In function `gdbtk_init':
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:450: 
undefined reference to `ide_create_messagebox_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:453: 
undefined reference to `ide_create_sizebox_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:455: 
undefined reference to `ide_create_winprint_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:457: 
undefined reference to `ide_create_win_grab_command'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:462: 
undefined reference to `ide_create_shell_execute_command'
libgdb.a(gdbtk.o): In function `initialize_gdbtk':
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:603: 
undefined reference to `FreeConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609: 
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609: 
undefined reference to `GetFileType'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:620: 
undefined reference to `AllocConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:621: 
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:624: 
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:627: 
undefined reference to `GetStdHandle'
../libgui/src/libgui.a(tkTable.o): In function `TableDisplay':
/home/taxi/insight-5.0/insight-5.0/libgui/src/tkTable.c:1188: 
undefined reference to `XSetClipRectangles'
../libgui/src/libgui.a(tkTable.o): In function 
`TableValidateChange':
/home/taxi/insight-5.0/insight-5.0/libgui/src/tkTable.c:2481: 
undefined reference to `XSync'
collect2: ld returned 1 exit status
make[1]: *** [gdb.exe] Error 1
make[1]: Leaving directory 
`/home/taxi/insight-5.0/insight-5.0/gdb'
make: *** [all-gdb] Error 2

*********************************************************************************************************

After analysing the above errors in the function 'gdbtk_init' I 
found that _WIN32 is not  defined in the compilation
of some files like tclmsgbox.c ,tclsizebox.c etc..
Do I need to give any other parameter for the while running the 
./confiure file such that this _WIN32 is added on to the makefiles 
directly?

To solve the problem I defined -D_WIN32 as one of the  compiler 
options in the makefile.in.
After that I gave again compilation this time the follwing error 
is reported

*********************************************************************************************************
gcc -g -O2       -Wl,--subsystem,console -o gdb.exe main.o 
libgdb.a    ../bfd/libbfd.a ../readline/libreadl
libgdb.a(gdbtk.o): In function `initialize_gdbtk':
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:603: 
undefined reference to `FreeConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609: 
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609: 
undefined reference to `GetFileType'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:620: 
undefined reference to `AllocConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:621: 
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:624: 
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:627: 
undefined reference to `GetStdHandle'
collect2: ld returned 1 exit status
make[1]: *** [gdb.exe] Error 1
make[1]: Leaving directory 
`/home/taxi/insight-5.0/insight-5.0/gdb'
make: *** [all-gdb] Error 2
*********************************************************************************************************


I searched for this functions in the whole directory but could not  
find them.
If anybody can help out with few of above problems it would be 
help.
Please let me know whether whatever I have done is correct.


Regards
Prasanna.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Re: Clarifications regarding BDM GDB Insight for M68k
@ 2002-04-15  9:25 Prasanna - Khanapur
  2002-04-16  6:54 ` Kai Ruottu
  0 siblings, 1 reply; 4+ messages in thread
From: Prasanna - Khanapur @ 2002-04-15  9:25 UTC (permalink / raw)
  To: insight; +Cc: Keith Seitz

hello,
Thanks for the info.
According to the following link:
http://www.vas-gmbh.de/software/mpcbdm
for running the bdm,I have to use the Insight-GDB 5.0 version 
itself.

I could solve the undefined reference in libgui using -D_WIN32.
But the few other error still persists as fallows:

*****************************************************
gcc -g -O2       -Wl,--subsystem,console -o gdb.exe main.o
libgdb.a    ../bfd/libbfd.a ../readline/libreadl
libgdb.a(gdbtk.o): In function `initialize_gdbtk':
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:603:
undefined reference to `FreeConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609:
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609:
undefined reference to `GetFileType'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:620:
undefined reference to `AllocConsole'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:621:
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:624:
undefined reference to `GetStdHandle'
/home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:627:
undefined reference to `GetStdHandle'
collect2: ld returned 1 exit status
make[1]: *** [gdb.exe] Error 1
make[1]: Leaving directory
`/home/taxi/insight-5.0/insight-5.0/gdb'
make: *** [all-gdb] Error 2
******************************************************


I searched for the function "FreeConsole()" and could find it in 
the /cygwin/lib/w32api/  in the libkernel32.a.
The following was output after nm.exe:



*****************************************************

$ nm libkernel32.a |grep FreeConsole
00000000 T _FreeConsole@0
00000000 I __imp__FreeConsole@0

****************************************************

So I guess that the definition of the unreferenced function is 
present in the libkernel32.a.
I added the libkernel32.a to the final linking of gdb.exe.
But still the error persist , what could be the problem?
Am I using the right library or does the order of the linking 
matters?

Regards
Prasanna


On Mon, 15 Apr 2002 Keith Seitz wrote :
>On 15 Apr 2002, Prasanna - Khanapur wrote:
>
> > Hello,
> > I'm trying to make Insight GDB BDM for M68k processor in 
>cygwin
> > environment on an WINNT machine.
> > I installed the latest cygwin version on the WINNT and
> > uncomopressed the insight-5.0.tar.bz2 file on the cygwin 
>dir.
>
>Insight-5.0 is not the latest version. Make sure you are trying 
>to build
>insight-5.1.
>
>Your libgui problems should be fixed by using "-mwin32". There 
>was a
>change in gcc for cygwin between 5.0 and 5.1 which necessitates 
>this flag.
>I don't recall if the 5.1 branch sources have this in it or not, 
>so it
>might be needed there. (And don't include '-mwin32' everywhere -- 
>just put
>it where needed.)
>
>Please verify which version of insight you are trying to build 
>and get
>back to us.
>
>Keith
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-16 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-14 23:09 Clarifications regarding BDM GDB Insight for M68k Prasanna - Khanapur
2002-04-15  8:07 ` Keith Seitz
2002-04-15  9:25 Prasanna - Khanapur
2002-04-16  6:54 ` Kai Ruottu
2002-04-16  9:07   ` Keith Seitz

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).