At 4:29 PM +0000 1/6/02, [EMAIL PROTECTED] wrote:
>I am trying to build DBD-CSV-0_1028. Everything appears to go ok until
>I hit the tests.
[snip]
>Has anyone managed to get this to build on VMS ?
>
>I note in the DBD-CSV-0_1028.README the mention of the flock() function.
>Could it be that the build is trying to use this when it shouldn't on VMS and
>is thus failing all these tests or is there something else wrong ?
I haven't tried building this module but we definitely don't have
flock(). It's a bit ironic since the VMS lock manager does much more
sophisticated locking but we don't have the simple file-level
advisory lock that flock() provides. The fact that files are not
opened shared by default probably gives close to the same level of
security (or better since noshr is mandatory, not advisory). The
README for DBD-CSV says that it disables the use of flock() for
systems that don't have it but it doesn't include VMS in the list.
You could try adding it. The line in File.pm that looks like:
if ($^O ne 'MacOS' && ($^O ne 'MSWin32' || !Win32::IsWin95())) {
should probably be:
if ($^O ne 'MacOS'
&& ($^O ne 'MSWin32' || !Win32::IsWin95())
&& $^O ne 'VMS') {
That's off-the-cuff and untested and there may well be other things
about the module that need porting. If the above works I'd suggest
submitting a patch to the module author. HTH.
--
____________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]
"Literary critics usually know what they're
talking about. Even if they're wrong."
-- Perl creator Larry Wall