Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Randolph Chung <randolph@tausq.org>
To: Randolph Chung <randolph@tausq.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [hpux] Fix build problem on hpux
Date: Sun, 26 Mar 2006 08:33:00 -0000	[thread overview]
Message-ID: <44264904.6000005@tausq.org> (raw)
In-Reply-To: <4410FF26.40509@tausq.org>

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]

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


[-- Attachment #2: hpcomp.diff --]
[-- Type: text/x-patch, Size: 1751 bytes --]

2005-03-26  Randolph Chung  <tausq@debian.org>

	* 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.

  parent reply	other threads:[~2006-03-26  7:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09 18:05 Randolph Chung
2006-03-09 19:14 ` Mark Kettenis
2006-03-10  1:35   ` Randolph Chung
2006-03-10  1:48     ` John David Anglin
2006-03-10  2:33       ` Randolph Chung
2006-03-10 11:15         ` John David Anglin
2006-03-10 12:50     ` Daniel Jacobowitz
     [not found]       ` <4410EE58.1060007@tausq.org>
     [not found]         ` <20060310035929.GA12013@nevyn.them.org>
     [not found]           ` <4410FF26.40509@tausq.org>
2006-03-26  8:33             ` Randolph Chung [this message]
2006-03-28 22:29               ` Daniel Jacobowitz
2006-03-29  0:28                 ` Randolph Chung
2006-03-29  4:36                   ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44264904.6000005@tausq.org \
    --to=randolph@tausq.org \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox