This is on trunk, revision 14585, using Windows XP and Visual C++.

I have GDBM available as "gdbm.lib" which is successfully tested for in
config/auto/gdbm.pm.

    Determining if your platform supports gdbm...
    ...
    gdbm is working.
    (yes) .........................done.


For some reason this library list is rewritten in tools/build/dynpmc.pl

    if ($^O eq 'MSWin32') {
        my %newlibs = ();
        $newlibs{"lib$_"} = $libs{$_} for keys %libs;
        %libs = %newlibs;
    }

Leading to the following error message while linking "gdbmhash.dll."

LINK : fatal error LNK1104: cannot open file 'libgdbm.lib'

Looking at the tests in config/auto/gdbm.pm I'd guess adding the "lib"
prefix is done for GCC on Windows.  If so, the condition should probably
read something like "$^O eq 'MSWin32' && $CC =~ /^gcc/i".  That way the
build seems fine again on Windows XP and Visual C++.

Ron

Reply via email to