From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5590 invoked by alias); 16 Oct 2008 12:20:40 -0000 Received: (qmail 5578 invoked by uid 22791); 16 Oct 2008 12:20:39 -0000 X-Spam-Check-By: sourceware.org Received: from ihemail4.lucent.com (HELO ihemail4.lucent.com) (135.245.0.39) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Oct 2008 12:19:47 +0000 Received: from ihrh1.emsr.lucent.com (h135-1-218-53.lucent.com [135.1.218.53]) by ihemail4.lucent.com (8.13.8/IER-o) with ESMTP id m9GCJJC1006356 for ; Thu, 16 Oct 2008 07:19:40 -0500 (CDT) Received: from nbgif1.de.lucent.com (nbgif1.de.lucent.com [135.246.31.82]) by ihrh1.emsr.lucent.com (8.13.8/emsr) with ESMTP id m9GCJI9a005374 for ; Thu, 16 Oct 2008 07:19:19 -0500 (CDT) Received: from sfsws1.de.lucent.com (sfsws1.de.lucent.com [135.246.31.38]) by nbgif1.de.lucent.com (8.11.7p3+Sun/8.11.7) with ESMTP id m9GCJHe20051 for ; Thu, 16 Oct 2008 14:19:17 +0200 (MEST) Received: from sfsw51.de.lucent.com (sfsw51.de.lucent.com [135.246.72.99]) by sfsws1.de.lucent.com (8.13.8/8.12.10) with ESMTP id m9GCJHUq011622 for ; Thu, 16 Oct 2008 14:19:17 +0200 (MEST) Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id m9GCJHI10053; Thu, 16 Oct 2008 14:19:17 +0200 (MEST) To: gdb-patches@sourceware.org Subject: gdb 6.8 build errors in Solaris 5.8 Reply-To: kzeitler@alcatel-lucent.com From: Klaus Zeitler X-Antipastobozoticataclysm: When George Bush projectile vomits antipasto on the Japanese. Date: Thu, 16 Oct 2008 12:20:00 -0000 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-10/txt/msg00400.txt.bz2 While producing gdb 6.8 for Solaris 5.8 I ran into 2 problems: 1. In /vol/freeware/SunOS-5.8/build/gdb-6.8/etc looking for a compliant stdint.h in stdint.h, checking for uintmax_t... no looking for a compliant stdint.h in inttypes.h, checking for uintmax_t... yes checking for uintptr_t... yes checking for int_least32_t... yes checking for int_fast32_t... no checking for uint64_t... yes checking what to include in gstdint.h... inttypes.h (mostly complete) checking for an ANSI C-conforming const... yes checking for off_t... yes checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for ANSI C header files... (cached) yes checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 checking target system type... sparc-sun-solaris2.8 checking for decimal floating point... dpd checking whether byte ordering is bigendian... yes updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing gstdint.h commands make[2]: Entering directory `/vol/freeware/SunOS-5.8/build/gdb-6.8/libdecnumber' source='/vol/freeware/source/gdb-6.8/libdecnumber/decNumber.c' object='decNumber.o' libtool=no gcc -I/vol/freeware/source/gdb-6.8/libdecnumber -I. -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -Wcast-qual -pedantic -Wno-long-long -I/vol/freeware/source/gdb-6.8/libdecnumber -I. -c /vol/freeware/source/gdb-6.8/libdecnumber/decNumber.c In file included from /vol/freeware/source/gdb-6.8/libdecnumber/decContext.h:59, from /vol/freeware/source/gdb-6.8/libdecnumber/decNumber.h:42, from /vol/freeware/source/gdb-6.8/libdecnumber/decNumber.c:174: /vol/freeware/source/gdb-6.8/libdecnumber/gstdint.h:7:20: stdint.h: No such file or directory make[2]: *** [decNumber.o] Error 1 make[2]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.8/libdecnumber' make[1]: *** [all-libdecnumber] Error 2 make[1]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.8' make: *** [all] Error 2 ERROR: gdb: make 2. gcc -c -g -O2 -I. -I/vol/freeware/source/gdb-6.8/gdb -I/vol/freeware/source/gdb-6.8/gdb/config -DLOCALEDIR="\"/vol/freeware/SunOS-5.8/gdb/6.8/share/locale\"" -DHAVE_CONFIG_H -I/vol/freeware/source/gdb-6.8/gdb/../include/opcode -I/vol/freeware/source/gdb-6.8/gdb/../readline/.. -I../bfd -I/vol/freeware/source/gdb-6.8/gdb/../bfd -I/vol/freeware/source/gdb-6.8/gdb/../include -I../libdecnumber -I/vol/freeware/source/gdb-6.8/gdb/../libdecnumber -DMI_OUT=1 -Wall -Wpointer-arith -Wformat-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Werror /vol/freeware/source/gdb-6.8/gdb/remote.c /vol/freeware/source/gdb-6.8/gdb/remote.c: In function `extended_remote_attach_1': /vol/freeware/source/gdb-6.8/gdb/remote.c:2859: warning: unsigned int format, pid_t arg (arg 3) make[2]: *** [remote.o] Error 1 make[2]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.8/gdb' make[1]: *** [all-gdb] Error 2 make[1]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.8' make: *** [all] Error 2 ERROR: gdb: make I could resolve those two problems easily. The first one by replacing stdint.h with inttypes.h in gstdint.h. The 2nd one by replacing sprintf (rs->buf, "vAttach;%x", pid); with sprintf (rs->buf, "vAttach;%x", (unsigned int)pid); in file remote.c Are these known problems or should I file a bug report? Klaus -- -------------------------------------------------- | Klaus Zeitler Alcatel-Lucent | | Email: kzeitler@alcatel-lucent.com | -------------------------------------------------- --- Microsoft is not the answer. Microsoft is a question, and the answer is Linux, the choice of the GNU (http://www.gnu.org) generation.