Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 34764
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: fenlisesi [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 2.5.1
Fixed in: 2.6.0



Subject: libpq Makefile.PL (non)problem on Strawberry.
This is a possible Makefile.PL bug in 2.5.1 (and earlier versions). Trying to install DBD::Pg using Strawberry 5.10, with postgres 8.1.3, we got stuck at the early perl Makefile.PL phase. We got a complaint about libpq not being present, even though we were positive that it was right there where Makefile.PL claimed it couldn't be found. We commented out the unlink line and continued. All tests passed except some in t/04misc.t (which may or may not have been related to the libpq business). We ignored those failures, too. It seems to be running fine now.
From: fenlisesi [...] gmail.com
On Tue Apr 08 09:27:14 2008, fenlisesi@gmail.com wrote: Show quoted text
> This is a possible Makefile.PL bug in 2.5.1 (and earlier versions). > Trying to install DBD::Pg using Strawberry 5.10, with > postgres 8.1.3, we got stuck at the early perl Makefile.PL > phase. We got a complaint about libpq not being present, > even though we were positive that it was right there > where Makefile.PL claimed it couldn't be found. We > commented out the unlink line and continued. All tests > passed except some in t/04misc.t (which may or may not have > been related to the libpq business). We ignored those > failures, too. It seems to be running fine now.
There was also a problem with DBI::DBD->dbd_postamble(). We worked around that by adding a require DBI::DBD.
This appears to be a simple matter of not doing the final libpq check if running Windows. I've modified Makefile.PL to do that, please try out revision 11059 and see if that works without error. To save time, the diff is: --- Makefile.PL (revision 11058) +++ Makefile.PL (working copy) @@ -238,7 +238,8 @@ my $output = WriteMakefile(%opts); -if (!exists $output->{EXTRALIBS} or $output->{EXTRALIBS} !~ /\-lpq/) { +if ($os !~ /Win32/ and + (!exists $output->{EXTRALIBS} or $output->{EXTRALIBS} !~ /\-lpq/)) {
Marking this as resolved for 2.6.0. Please open a new ticket for the t/04misc.t errors if they still show up. Please consider using CPAN::Reporter as well so we can automatically receive the results of your test runs.