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