From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2179 invoked by alias); 26 Mar 2006 07:55:57 -0000 Received: (qmail 2171 invoked by uid 22791); 26 Mar 2006 07:55:56 -0000 X-Spam-Check-By: sourceware.org Received: from ip127.bb146.pacific.net.hk (HELO mailhub.stlglobal.com) (202.64.146.127) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 26 Mar 2006 07:55:52 +0000 Received: from localhost ([127.0.0.1]) by mailhub.stlglobal.com with esmtp (Exim 4.50) id 1FNQ6C-0006nq-Uv; Sun, 26 Mar 2006 15:55:45 +0800 Message-ID: <44264904.6000005@tausq.org> Date: Sun, 26 Mar 2006 08:33:00 -0000 From: Randolph Chung User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) MIME-Version: 1.0 To: Randolph Chung CC: gdb-patches@sources.redhat.com Subject: Re: [hpux] Fix build problem on hpux References: <44104BCC.8060700@tausq.org> <200603091908.k29J8E67001447@elgar.sibelius.xs4all.nl> <4410C609.5090207@tausq.org> <20060310023252.GA10422@nevyn.them.org> <4410EE58.1060007@tausq.org> <20060310035929.GA12013@nevyn.them.org> <4410FF26.40509@tausq.org> In-Reply-To: <4410FF26.40509@tausq.org> Content-Type: multipart/mixed; boundary="------------090102060401000108000600" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00298.txt.bz2 This is a multi-part message in MIME format. --------------090102060401000108000600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 140 Attached is a new cleaned up version of my HPUX 32-bit compile fix. Hope this is cleaner than what I posted before. Is this ok? randolph --------------090102060401000108000600 Content-Type: text/x-patch; name="hpcomp.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hpcomp.diff" Content-length: 1751 2005-03-26 Randolph Chung * hpread.c (hpread_start_psymtab): Remove hpread_psymtab_to_symtab declaration. * configure.ac: Define _XOPEN_SOURCE_EXTENDED on HPUX host. * configure: Regenerate. * config.in: Regenerate. Index: hpread.c =================================================================== RCS file: /cvs/src/src/gdb/hpread.c,v retrieving revision 1.58 diff -u -p -r1.58 hpread.c --- hpread.c 17 Dec 2005 22:34:01 -0000 1.58 +++ hpread.c 9 Mar 2006 15:28:16 -0000 @@ -2385,7 +2386,6 @@ hpread_start_psymtab (struct objfile *ob struct partial_symbol **static_syms) { int offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); - extern void hpread_psymtab_to_symtab (); struct partial_symtab *result = start_psymtab_common (objfile, objfile->section_offsets, filename, textlow, global_syms, static_syms); Index: configure.ac =================================================================== RCS file: /cvs/src/src/gdb/configure.ac,v retrieving revision 1.30 diff -u -p -r1.30 configure.ac --- configure.ac 21 Feb 2006 21:02:25 -0000 1.30 +++ configure.ac 26 Mar 2006 07:52:44 -0000 @@ -1519,6 +1519,19 @@ if test "x$build_nlm" = xyes; then AC_CONFIG_SUBDIRS(nlm) fi +# When building on HPUX, we need to define _XOPEN_SOURCE_EXTENDED to get +# proper prototypes. +case $host_os in +hpux*) + AH_VERBATIM([_XOPEN_SOURCE_EXTENDED], + [/* Define to 1 if on HPUX. */ +#ifndef _XOPEN_SOURCE_EXTENDED +# undef _XOPEN_SOURCE_EXTENDED +#endif])dnl + AC_DEFINE([_XOPEN_SOURCE_EXTENDED]) + ;; +esac + # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link # to an empty version. --------------090102060401000108000600--