Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^7: problem installing DBD::Pg

by syphilis (Archbishop)
on Jan 23, 2020 at 13:11 UTC ( [id://11111773]=note: print w/replies, xml ) Need Help??


in reply to Re^6: problem installing DBD::Pg
in thread problem installing DBD::Pg

Hmph ... beats me how they get away with leaving the static int errno; declaration in there.
I must be missing something.

Having only just now discovered that I can actually build DBD::Pg myself on Strawberry Perl 5.30.0, I've just checked and found that DBD-Pg-3.10.3 builds ok straight out of the box, even though the problematic declaration exists.
It also builds ok if I remove the problematic declaration.

I can see that, for my own peace of mind, I'm going to have to understand why it's not necessary to remove the declaration for this Strawberry Perl. (The Inline::C script that I provided earlier blows up on Strawberry Perl - just like on every other Windows perl that I've tried.)
But it's late over here, so further investigation will have to wait until some time tomorrow.

Thanks for checking, Tux.

Cheers,
Rob

Replies are listed 'Best First'.
Re^8: problem installing DBD::Pg
by syphilis (Archbishop) on Jan 24, 2020 at 06:10 UTC
    further investigation will have to wait until some time tomorrow

    Seems that, if you make the static int errno; declaration before the perl headers (xsub.h, extern.h, perl.h) are included, then there's no problem with it.
    And looking at the generated Pg.c, it seems that at the time of that declaration, the only header that has been included is wchar.h (plus whatever other headers it pulls in).
    However, I'm still a little puzzled as to why the OP's MS compiler saw fit to complain. (Maybe, with that particular compiler, the inclusion of wchar.h also pulled in errno.h.)

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11111773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found