From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19041 invoked by alias); 5 Mar 2012 14:53:55 -0000 Received: (qmail 19027 invoked by uid 22791); 5 Mar 2012 14:53:54 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_NV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Mar 2012 14:53:35 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q25ErZkK009477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 5 Mar 2012 09:53:35 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q25ErYKU027164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 5 Mar 2012 09:53:34 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Subject: FYI: fix build failure Date: Mon, 05 Mar 2012 14:53:00 -0000 Message-ID: <87399nxfo1.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-03/txt/msg00136.txt.bz2 I'm checking this in. I did a --enable-targets=all build and got a build failure: /home/tromey/gnu/archer/build/gdb/../../archer/gdb/ia64-vms-tdep.c:162: multiple definition of `_initialize_ia64_hpux_tdep' ia64-hpux-tdep.o:/home/tromey/gnu/archer/build/gdb/../../archer/gdb/ia64-hpux-tdep.c:431: first defined here The fix is to rename the VMS function, which seems obviously misnamed to me. Tom 2012-03-05 Tom Tromey * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from _initialize_ia64_hpux_tdep. diff --git a/gdb/ia64-vms-tdep.c b/gdb/ia64-vms-tdep.c index 859c0b4..66920b1 100644 --- a/gdb/ia64-vms-tdep.c +++ b/gdb/ia64-vms-tdep.c @@ -155,10 +155,10 @@ ia64_openvms_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) } /* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_ia64_hpux_tdep; +extern initialize_file_ftype _initialize_ia64_vms_tdep; void -_initialize_ia64_hpux_tdep (void) +_initialize_ia64_vms_tdep (void) { gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_OPENVMS, ia64_openvms_init_abi);