From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30808 invoked by alias); 15 Apr 2002 06:09:56 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 30798 invoked from network); 15 Apr 2002 06:09:53 -0000 Received: from unknown (HELO mailweb9.rediffmail.com) (203.199.83.21) by sources.redhat.com with SMTP; 15 Apr 2002 06:09:53 -0000 Received: (qmail 24871 invoked by uid 510); 15 Apr 2002 06:05:04 -0000 Date: Sun, 14 Apr 2002 23:09:00 -0000 Message-ID: <20020415060504.24870.qmail@mailweb9.rediffmail.com> Received: from unknown (203.197.138.199) by rediffmail.com via HTTP; 15 Apr 2002 06:05:04 -0000 MIME-Version: 1.0 From: "Prasanna - Khanapur" Reply-To: "Prasanna - Khanapur" To: insight@sources.redhat.com Subject: Clarifications regarding BDM GDB Insight for M68k Content-type: text/plain; format=flowed Content-Disposition: inline X-SW-Source: 2002-q2/txt/msg00022.txt.bz2 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.