From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11832 invoked by alias); 31 Oct 2008 13:04:43 -0000 Received: (qmail 11756 invoked by uid 22791); 31 Oct 2008 13:04:43 -0000 X-Spam-Check-By: sourceware.org Received: from ihemail3.lucent.com (HELO ihemail3.lucent.com) (135.245.0.37) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 31 Oct 2008 13:03:58 +0000 Received: from ihrh1.emsr.lucent.com (h135-1-218-53.lucent.com [135.1.218.53]) by ihemail3.lucent.com (8.13.8/IER-o) with ESMTP id m9VCrLlf001752 for ; Fri, 31 Oct 2008 07:53:21 -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 m9VCrJ4P019551 for ; Fri, 31 Oct 2008 07:53: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 m9VCrJj11932 for ; Fri, 31 Oct 2008 13:53:19 +0100 (MET) 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 m9VCrIcf005795 for ; Fri, 31 Oct 2008 13:53:19 +0100 (MET) Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id m9VCrI823818; Fri, 31 Oct 2008 13:53:18 +0100 (MET) To: gdb-patches@sourceware.org Subject: CVS build for Solaris 5.8 fails: elfcore_write_prpsinfo undefined Reply-To: kzeitler@alcatel-lucent.com From: Klaus Zeitler X-NSA-Fodder: number key MD2 asset Taiwan electronic surveillance Date: Fri, 31 Oct 2008 17:57: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/msg00719.txt.bz2 The CVS version of gdb gives the following error for a Solaris 5.8 build: gcc -g -O2 \ -o gdb gdb.o libgdb.a \ ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a -lintl ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -ldl -lncurses -lz -lsocket -lnsl -lm ../libiberty/libiberty.a gnulib/libgnu.a Undefined first referenced symbol in file elfcore_write_prpsinfo libgdb.a(procfs.o) elfcore_write_prstatus libgdb.a(procfs.o) ld: fatal: Symbol referencing errors. No output written to gdb collect2: ld returned 1 exit status make[2]: *** [gdb] Error 1 make[2]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-cvs/gdb' make[1]: *** [all-gdb] Error 2 make[1]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-cvs' make: *** [all] Error 2 ERROR: gdb: make I noticed that these 2 functions are defined in elf.c. They are enclosed there with: #if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T) but the function calls in procfs.c are not. I'm not sure if any of the 2 defines HAVE_PRPSINFO_T or HAVE_PSINFO_T should be set for Solaris 5.8 (I guess I'd have to understand the code in the configure script), but I think that the calls in procfs.c need the same #ifs as in elf.c. I enclosed the 2 function calls in procfs.c also with #if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T) and was able to build (and run) gdb. Klaus -- ----------------------------------------------------- | Klaus Zeitler Between a rock and a hard place | | Email: kzeitler@alcatel-lucent.com | ----------------------------------------------------- --- If you think nobody cares if you're alive, try missing a couple of car payments. -- Earl Wilson