From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25730 invoked by alias); 6 May 2009 04:53:52 -0000 Received: (qmail 25717 invoked by uid 22791); 6 May 2009 04:53:50 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 May 2009 04:53:43 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M1Z8V-0000Fq-UI for insight@sources.redhat.com; Wed, 06 May 2009 04:53:39 +0000 Received: from 75.139.7.185 ([75.139.7.185]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2009 04:53:39 +0000 Received: from gds by 75.139.7.185 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2009 04:53:39 +0000 To: insight@sources.redhat.com From: Gene Smith Subject: Re: Insight broken with latest tcl/tk Date: Wed, 06 May 2009 04:53:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit User-Agent: Thunderbird 2.0.0.21 (X11/20090409) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00039.txt.bz2 Gene Smith wrote: > Dave Lawrence wrote: >> I also tried a snapshot of the latest insight sources, attempting to >> build these gives me various undefined references at build time, I'll >> list a few below: >> c_parse >> c_error >> f_parse >> f_error >> objc_parse >> java_error >> > > With the current CVS head I get this error. "read_pc" function (function > ptr?) is implicitly declared. How would you fix this? This is u9.04 and > x86_64. > > gdb/../bfd -I../../insight_sources/gdb/../include -I../libdecnumber > -I../../insight_sources/gdb/../libdecnumber > -I../../insight_sources/gdb/gnulib -Ignulib -DMI_OUT=1 -DTUI=1 -DGDBTK > -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral > -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror > -c -o gdbtk-cmds.o -MT gdbtk-cmds.o -MMD -MP -MF .deps/gdbtk-cmds.Tpo > -I../../insight_sources/gdb/../libgui/src > -I/home/gene/insight/insight_sources/tcl/generic > -I/home/gene/insight/insight_sources/tk/generic > -DGDBTK_LIBRARY=\"/home/gene/eabi/install/share/insight1.0\" > -DSRC_DIR=\"/home/gene/insight/insight_sources/gdb\" > ../../insight_sources/gdb/gdbtk/generic/gdbtk-cmds.c > cc1: warnings being treated as errors > ../../insight_sources/gdb/gdbtk/generic/gdbtk-cmds.c: In function ‘gdb_loc’: > ../../insight_sources/gdb/gdbtk/generic/gdbtk-cmds.c:2147: error: > implicit declaration of function ‘read_pc’ > make[2]: *** [gdbtk-cmds.o] Error 1 Well, I forced it to ignore errors but now on link I get undefined reference to read_pc: gcc -Wno-error \ -o gdb gdb.o libgdb.a \ ../sim/arm/libsim.a ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a ../libgui/src/libgui.a -L/home/gene/insight/insight_build/tk/unix -ltk8.4 -L/home/gene/insight/insight_build/tcl/unix -ltcl8.4 -lX11 -ldl -lieee -lm -lncurses -lm -lpython2.6 ../libiberty/libiberty.a gnulib/libgnu.a libgdb.a(gdbtk-cmds.o): In function `gdb_loc': gdbtk-cmds.c:(.text+0x3503): undefined reference to `read_pc' gdbtk-cmds.c:(.text+0x3533): undefined reference to `read_pc' collect2: ld returned 1 exit status I give up!