From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29438 invoked by alias); 21 Apr 2008 21:14:25 -0000 Received: (qmail 29406 invoked by uid 22791); 21 Apr 2008 21:14:23 -0000 X-Spam-Check-By: sourceware.org Received: from hq.tensilica.com (HELO mailapp.tensilica.com) (65.205.227.29) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Apr 2008 21:13:59 +0000 Received: from localhost ([127.0.0.1]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1Jo3Km-0004qE-PA; Mon, 21 Apr 2008 14:13:56 -0700 Received: from mailapp.tensilica.com ([127.0.0.1]) by localhost (mailapp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18557-01; Mon, 21 Apr 2008 14:13:56 -0700 (PDT) Received: from maxim_fc5.hq.tensilica.com ([192.168.11.68]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1Jo3Km-0004q9-Ca; Mon, 21 Apr 2008 14:13:56 -0700 Message-ID: <480D0394.8020404@hq.tensilica.com> Date: Mon, 21 Apr 2008 22:16:00 -0000 From: Maxim Grigoriev User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: GDB Patches , csilvers@google.com Subject: GDB build is broken, when HAVE_ZLIB_H is not defined. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00454.txt.bz2 Hello, everybody, Am I missing something here ? My build is broken: xtensa_dc232b-linux-uclibc-gcc -c -g -O2 -I. -I/home/maxim/GDB/CVS/src/gdb -I/home/maxim/GDB/CVS/src/gdb/config -DLOCALEDIR="\"/opt/local/maxim/LINUX_ROOT/maxim/native_gdb/share/locale\"" -DHAVE_CONFIG_H -I/home/maxim/GDB/CVS/src/gdb/../include/opcode -I/home/maxim/GDB/CVS/src/gdb/../readline/.. -I../bfd -I/home/maxim/GDB/CVS/src/gdb/../bfd -I/home/maxim/GDB/CVS/src/gdb/../include -I../libdecnumber -I/home/maxim/GDB/CVS/src/gdb/../libdecnumber -I./../intl -I/home/maxim/GDB/CVS/src/gdb/gnulib -Ignulib -DMI_OUT=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror /home/maxim/GDB/CVS/src/gdb/dwarf2read.c /home/maxim/GDB/CVS/src/gdb/dwarf2read.c: In function 'zlib_decompress_section': /home/maxim/GDB/CVS/src/gdb/dwarf2read.c:5301: error: 'abfd' undeclared (first use in this function) /home/maxim/GDB/CVS/src/gdb/dwarf2read.c:5301: error: (Each undeclared identifier is reported only once /home/maxim/GDB/CVS/src/gdb/dwarf2read.c:5301: error: for each function it appears in.) make[2]: *** [dwarf2read.o] Error 1 * * * * * in dwarf2read.c, should not it look like this : static void zlib_decompress_section (struct objfile *objfile, asection *sectp, gdb_byte **outbuf, bfd_size_type *outsize) { bfd *abfd = objfile->obfd; #ifndef HAVE_ZLIB_H error (_("Support for zlib-compressed DWARF data (from '%s') " "is disabled in this copy of GDB"), bfd_get_filename (abfd)); #else bfd_size_type compressed_size = bfd_get_section_size (sectp); . . . . -- Maxim