in reply to DBI Compile Under Win32 Perl 5.005_03

To get many modules (probably most) to compile under 5.5.x on win32, you'd have patch your perl many many many many times, until you've essentially written perl 5.6.x (i've tried to compile about 20 distributions, gave up for good). Just use perl 5.6.x, or stick with older versions of DBI if they'll compile on 5.5 (like http://ppm.activestate.com/PPMPackages/zips/5xx-builds-only/).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: DBI Compile Under Win32 Perl 5.005_03

Replies are listed 'Best First'.
Re^2: DBI Compile Under Win32 Perl 5.005_03
by jk2addict (Chaplain) on Aug 22, 2004 at 14:00 UTC

    Color me stupid. 5.5.x == 5.005_03? Damn version strings are evil to this day.

    The main reason I'm shooting for 5.005_3 is that all of the FreeBSD 4.x boxen have that in the stock OS, with no real need to upgrade to 5.6.1 in most cases. Worst case I'll just wait to test under 5.005 on those things later.

    I have however, had a few other thoughts.

    DBI.xs(51) : warning C4273: 'getpid' : inconsistent dll linkage. dlle +xport assumed. DBI.xs(66) : error C2951: template declarations are only permitted at +global or namespace scope

    The first line of trouble would seem to indicate a mismatch in the linker even though I'm using the same make/linker used to make the version of perl. Makebe my C++ install is too new (Service Packe 6) and therehave been linker changes mucking the works. It might be worth a shot of simply compiling the ActiveState 5.005 sources on my machine and go from there.

    I also stumbled across some mention of templates and namespace issue while compiling modules on win32, but I'll be darned if I can find that now.

      Just as an update. I compiled a fresh copy of perl 5.005 and compiling modules against that version were still unhappy.

      Even if I went with the lower version of DBI, Class::DBI still needed Storable > 2.04, which wouldn't compile either, and the ActiveState ppm version was < 1.0. No love there.