From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7140 invoked by alias); 27 May 2003 14:22:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7032 invoked from network); 27 May 2003 14:22:56 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 27 May 2003 14:22:56 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19KfMQ-0007Xe-00; Tue, 27 May 2003 09:23:30 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19KfLn-0002d5-00; Tue, 27 May 2003 10:22:51 -0400 Date: Tue, 27 May 2003 14:22:00 -0000 From: Daniel Jacobowitz To: Klaus Zeitler Cc: gdb@sources.redhat.com Subject: Re: problems building CVS snapshot Message-ID: <20030527142251.GA10062@nevyn.them.org> Mail-Followup-To: Klaus Zeitler , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00350.txt.bz2 On Tue, May 27, 2003 at 11:16:03AM +0200, Klaus Zeitler wrote: > > since I have I few problems with gdb 5.0 and 5.2 under SunOS-5.8 I thought > I'll go and check the CVS version, thus I fetched gdb+dejagnu-20030526 > and tried configure and make. Here are 4 problems I ran into: > > 1. configure complains about sys/ptem.h > > checking sys/ptem.h usability... no > checking sys/ptem.h presence... yes > configure: WARNING: sys/ptem.h: present but cannot be compiled > configure: WARNING: sys/ptem.h: check for missing prerequisite headers? > configure: WARNING: sys/ptem.h: proceeding with the preprocessor's result > configure: WARNING: ## ------------------------------------ ## > configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## > configure: WARNING: ## ------------------------------------ ## > > a test C program that additionally contains sys/streams.h does compile. > > I reported this yesterday to bug-autoconf and got the following reply: Thanks for the report. I'll hold on to this, since we are going to be transitioning to autoconf 2.5x at some point, but this is actually a problem with your setup. We only support autoconf 2.13. Try touching all the configure scripts before building so that they are not rebuilt with your system version of autoconf. > 2. compile of infrun.c fails > > gcc -c -g -O2 -I/usr/include/v9 -I. -I. -I./config -DLOCALEDIR="\"/vol/freeware/SunOS-5.8/gdb+dejagnu/20030526/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl -DMI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized infrun.c > /usr/ccs/bin/as: "/var/tmp/ccWcVZ58.s", line 3774: error: constant value must be between -4096 and 4095 > make[1]: *** [infrun.o] Error 1 > make[1]: Leaving directory `/vol/freeware/source/gdb+dejagnu-20030526/gdb' This is a bug in GCC. May want to report it to them. I think it's been fixed or discussed recently. > 3. normally I don't build in the source directory, but if I try to build > in a separate build directory, make stops in example/calc with: > > configuring in example/calc > running /bin/sh /vol/freeware/source/gdb+dejagnu-20030526/dejagnu/example/calc/configure --build=sparc-sun-solaris2.8 --host=sparc-sun-solaris2.8 --target=sparc-sun-solaris2.8 --prefix=/vol/freeware/SunOS-5.8/gdb+dejagnu/20030526 --cache-file=../../.././config.cache --srcdir=/vol/freeware/source/gdb+dejagnu-20030526/dejagnu/example/calc > loading cache ../../.././config.cache > checking for a BSD compatible install... /bin/sh $s/install-sh -c > checking whether build environment is sane... yes > checking whether make sets ${MAKE}... (cached) yes > configure: error: source directory already configured; run make distclean there first > configure: error: /vol/freeware/source/gdb+dejagnu-20030526/dejagnu/example/calc/configure failed for example/calc > make: *** [configure-dejagnu] Error 1 > ERROR: gdb: make This is a known problem in the included dejagnu :( > 4. on our system is tcl/tk 8.0.5 installed (old I know) > It seems as if gdb comes with its own tcl (8.4.1) but no tk. > configure doesn't find the installed tk version (on my system tcl/tk is > installed under /usr/local/gnu). configure has an option with-tkconfig that > I could use, but I guess using tcl 8.4.1 together with tk 8.0.5 might be > asking for trouble anyway. Can't help you there. I avoid both TCL and Tk whenever possible. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer