Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the ExtUtils-ParseXS CPAN distribution.

Report information
The Basics
Id: 73681
Status: rejected
Priority: 0/
Queue: ExtUtils-ParseXS

People
Owner: Nobody in particular
Requestors: ambs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 3.11
Fixed in: (no value)



Subject: external "C" lines
Hello It seems that some (recent?) versions of gcc doesn't support extern "C" static foo() and needs them to be declared properly as extern "C" { static foo() } Cheers ambs
On Mon Jan 02 13:34:05 2012, AMBS wrote: Show quoted text
> Hello > > It seems that some (recent?) versions of gcc doesn't support > > extern "C" static foo() > > and needs them to be declared properly as > > extern "C" { static foo() }
I am still looking for further references on this. Anyway, example of a build failure: http://www.cpantesters.org/cpan/report/bc6d1ad0-3537-11e1-a48f-e7fb434ae6f1 The compiler is not that recent, so not sure about this (yet).
On Mon Jan 02 13:48:49 2012, AMBS wrote: Show quoted text
> On Mon Jan 02 13:34:05 2012, AMBS wrote:
> > Hello > > > > It seems that some (recent?) versions of gcc doesn't support > > > > extern "C" static foo() > > > > and needs them to be declared properly as > > > > extern "C" { static foo() }
> > I am still looking for further references on this. Anyway, example of a > build failure: > >
http://www.cpantesters.org/cpan/report/bc6d1ad0-3537-11e1-a48f-e7fb434ae6f1 Show quoted text
> > The compiler is not that recent, so not sure about this (yet).
In fact, they are. 4.4.4 in some reports, 4.6.x on other. Cheers
On Mon Jan 02 13:59:42 2012, AMBS wrote: Show quoted text
> On Mon Jan 02 13:48:49 2012, AMBS wrote:
> > On Mon Jan 02 13:34:05 2012, AMBS wrote:
> > > Hello > > > > > > It seems that some (recent?) versions of gcc doesn't support > > > > > > extern "C" static foo() > > > > > > and needs them to be declared properly as > > > > > > extern "C" { static foo() }
> > > > I am still looking for further references on this. Anyway, example of a > > build failure: > > > >
>
http://www.cpantesters.org/cpan/report/bc6d1ad0-3537-11e1-a48f-e7fb434ae6f1 Show quoted text
> > > > The compiler is not that recent, so not sure about this (yet).
> > In fact, they are. > 4.4.4 in some reports, 4.6.x on other. > > Cheers
Tried a 4.6.x compiler on linux, had no problem. Getting no clue on this one
CC: ambs [...] cpan.org
Subject: Re: [rt.cpan.org #73681] external "C" lines
Date: Mon, 02 Jan 2012 21:49:57 +0100
To: bug-ExtUtils-ParseXS [...] rt.cpan.org
From: Steffen Mueller <smueller [...] cpan.org>
On 01/02/2012 09:03 PM, Alberto Simões via RT wrote: Show quoted text
> Tried a 4.6.x compiler on linux, had no problem. Getting no clue on this one
Can't help you here. My g++ (4.6.1) build of blead-perl with the newest ParseXS already fails to build your Config::AutoConf dependency. You do the following: #ifdef __cplusplus extern "C" #endif #include <$header> ... Which I believe is wrong since it just makes the first bits in $header "extern "C"". t/03.checkheader.t .. # # # Ignore junk bellow. # In file included from /usr/include/stdio.h:75:0, from testUm2GYg.c:6: /usr/include/libio.h:346:1: error: invalid use of ‘extern’ in linkage specification etc. So that code needs to be: #ifdef __cplusplus extern "C" { #endif #include <$header> ... #ifdef __cplusplus } #endif in order for me to even begin debugging this. I have a hunch that you're seeing a similar extern "C" leakage problem. Cheers, Steffen
Show quoted text
> #ifdef __cplusplus > extern "C" { > #endif > > #include <$header> > ... > > #ifdef __cplusplus > } > #endif > > in order for me to even begin debugging this. I have a hunch that > you're > seeing a similar extern "C" leakage problem.
Correct. This one I can fix easily :) The curious thing is that in those reports they build Config::AutoConfig correctly. Portability is shit :( Can I request you keep this open for some more time? I'll be adding details as long as I find them Cheers ambs
Are you still expecting to add to this ticket? If not, can it please be closed? --Steffen
RT-Send-CC: smueller [...] cpan.org
Thanks to remind me. Not a bug (setting as rejected).