P is for Practical | |
PerlMonks |
Re^3: problem installing DBD::Pgby syphilis (Archbishop) |
on Jan 23, 2020 at 00:06 UTC ( [id://11111734]=note: print w/replies, xml ) | Need Help?? |
Are you sure about the line number 3242 ? Sorry - it hadn't occurred to me that Pg.c was (as Tux has just pointed out) a generated file. The problem arises because of the declaration of static int errno; in Pg.h. (This declaration is made only on Windows.) I would first try removing that declaration (line 14) from Pg.h and then rebuild DBD::Pg afresh. Here's a simple demo of the problem: UPDATE: In this demo script, I originally declared foo() as SV * foo(). I have now corrected that declaration to void foo(). On Windows, running that perl script with my Platform SDK compiler (14.00.40310.41), I get: I get the same problem with mingw (gcc) compilers - with slightly different error messages. There's only the one instance of "errno" in the entire DBD::Pg source, so I'm guessing there's no harm in removing that one and only instance at line 14 of Pg.h. Or am I missing something ? Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|