[email protected]
[Top] [All Lists]

Bug#288442: marked as forwarded (rpy: FTBFS (amd64/gcc-4.0): static decl

Subject: Bug#288442: marked as forwarded rpy: FTBFS (amd64/gcc-4.0): static declaration of 'Robj_Type' follows non-static declaration
From: Debian Bug Tracking System
Date: Mon, 03 Jan 2005 18:03:16 -0800
Your message dated Mon, 3 Jan 2005 19:28:39 -0600
with message-id <[email protected]>
has caused the Debian Bug report #288442,
regarding rpy: FTBFS (amd64/gcc-4.0): static declaration of 'Robj_Type' follows 
non-static declaration
to be marked as having been forwarded to the upstream software
author(s) [email protected], [email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 288442-forwarded) by bugs.debian.org; 4 Jan 2005 01:46:50 +0000
>From [email protected] Mon Jan 03 17:46:50 2005
Return-path: <[email protected]>
Received: from sccrmhc12.comcast.net [] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1Cldmc-000619-00; Mon, 03 Jan 2005 17:46:50 -0800
Received: from sonny.eddelbuettel.com (eddelbuettel.com[])
          by comcast.net (sccrmhc12) with ESMTP
          id <20050104014618012003iouge>; Tue, 4 Jan 2005 01:46:18 +0000
Received: from edd by sonny.eddelbuettel.com with local (Exim 3.35 #1 (Debian))
        id 1CldV2-0007HL-00; Mon, 03 Jan 2005 19:28:40 -0600
Date: Mon, 3 Jan 2005 19:28:39 -0600
From: Dirk Eddelbuettel <[email protected]>
To: [email protected], [email protected]
Cc: Andreas Jochens <[email protected]>, [email protected]
Subject: Re: Bug#288442: rpy: FTBFS (amd64/gcc-4.0): static declaration of 
'Robj_Type' follows non-static declaration
Message-ID: <[email protected]>
References: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.3.28i
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Greg, Nitin,

Here is quick patch for gcc 4.0. I haven't had time to mess^Hplay with 4.0,
but it looks innocent enough to me.  Let me know if it makes it into CVS,
and I'll tag the bug report accordingly.

Thanks to Andreas for the report, and patch.

Regards, Dirk

On Mon, Jan 03, 2005 at 08:50:20PM +0100, Andreas Jochens wrote:
> Package: rpy
> Severity: normal
> Tags: patch
> When building 'rpy' on amd64 with gcc-4.0,
> I get the following error:
> building '_rpy' extension
> src/rpymodule.c:1188: error: static declaration of 'Robj_Type' follows 
> non-static declaration
> src/robjobject.h:37: error: previous declaration of 'Robj_Type' was here
> creating build/temp.linux-x86_64-2.2
> gcc -DNDEBUG -g -O3 -Wall -fPIC -DR_HOME="/usr/lib/R" -DWITH_NUMERIC 
> -UPRE_2_2 -I/usr/lib/R/include -I/rpy-0.4.1/R-2.0.1/src/include -Isrc 
> -I/usr/include/python2.2 -c src/rpymodule.c -o 
> build/temp.linux-x86_64-2.2/rpymodule.o -shared -O2 -Wall
> error: command 'gcc' failed with exit status 1
> make: *** [build-stamp] Error 1
> With the attached patch 'rpy' can be compiled
> on amd64 using gcc-4.0.
> Regards
> Andreas Jochens
> diff -urN ../tmp-orig/rpy-0.4.1/src/rpymodule.c ./src/rpymodule.c
> --- ../tmp-orig/rpy-0.4.1/src/rpymodule.c     2004-10-23 03:55:53.000000000 
> +0200
> +++ ./src/rpymodule.c 2005-01-03 20:40:35.814748496 +0100
> @@ -1185,7 +1185,7 @@
>  }
>  #endif
> -statichere PyTypeObject Robj_Type = {
> +PyTypeObject Robj_Type = {
>    /* The ob_type field must be initialized in the module init function
>     * to be portable to Windows without using C++. */
>  #if defined(PRE_2_2) || defined(_WIN32)    // Matjaz

If you don't go with R now, you will someday.
  -- David Kane on r-sig-finance, 30 Nov 2004

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#288442: marked as forwarded (rpy: FTBFS (amd64/gcc-4.0): static declaration of 'Robj_Type' follows non-static declaration), Debian Bug Tracking System <=