From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14110 invoked by alias); 11 Oct 2009 21:21:26 -0000 Received: (qmail 14097 invoked by uid 22791); 11 Oct 2009 21:21:24 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Oct 2009 21:21:19 +0000 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id n9BLLH5r031266 for ; Sun, 11 Oct 2009 14:21:17 -0700 Received: from ywh26 (ywh26.prod.google.com [10.192.8.26]) by zps76.corp.google.com with ESMTP id n9BLLFKe029278 for ; Sun, 11 Oct 2009 14:21:15 -0700 Received: by ywh26 with SMTP id 26so7602886ywh.12 for ; Sun, 11 Oct 2009 14:21:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.186.12 with SMTP id n12mr4871070anp.111.1255296075011; Sun, 11 Oct 2009 14:21:15 -0700 (PDT) In-Reply-To: <200910090236.10584.pedro@codesourcery.com> References: <200910090236.10584.pedro@codesourcery.com> Date: Sun, 11 Oct 2009 21:21:00 -0000 Message-ID: <8ac60eac0910111421p6afbfbe9ha4544bddc75943ab@mail.gmail.com> Subject: Re: Put a NT_PSTATUS note on solaris cores. From: Paul Pluzhnikov To: Pedro Alves Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2009-10/txt/msg00212.txt.bz2 On Thu, Oct 8, 2009 at 6:36 PM, Pedro Alves wrote: > 2009-10-09 =A0Pedro Alves =A0 > > =A0 =A0 =A0 =A0gdb/ > =A0 =A0 =A0 =A0* procfs.c (procfs_make_note_section): Always output a NT_= PSTATUS > =A0 =A0 =A0 =A0note when NEW_PROC_API is defined. This causes build failure on 32-bit solaris-10: gcc -g -O2 \ -o gdb gdb.o libgdb.a \ ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a ./../intl/libintl.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -ldl -lcurses -lz -lsocket -lnsl -lm -lpython2.4 -lexpat ../libiberty/libiberty.a gnulib/libgnu.a Undefined first referenced symbol in file elfcore_write_pstatus libgdb.a(procfs.o) ld: fatal: Symbol referencing errors. No output written to gdb collect2: ld returned 1 exit status bfd/elf.c defines elfcore_write_pstatus only when HAVE_PSTATUS_T =46rom bfd/config.log: configure:14057: checking for pstatus_t in sys/procfs.h configure:14075: gcc -c -g -O2 conftest.c >&5 conftest.c: In function `main': conftest.c:81: error: `pstatus_t' undeclared (first use in this function) This appears to be a bfd configury bug: AFAIC, pstatus_t is defined if '#include , but not if '#include ', because the former defines _STRUCTURED_PROC to 1, and the latter to 0. Not sure what the proper fix is. Thanks, --=20 Paul Pluzhnikov