in reply to Win32, MinGW and -Duse64bitint

-Duse64bitint is a Configure flag, and the MSWin32 builds don't use Configure. You'll need to hack win32/config.w32 instead.

Replies are listed 'Best First'.
Re^2: Win32, MinGW and -Duse64bitint
by syphilis (Archbishop) on Feb 20, 2007 at 11:07 UTC
    You'll need to hack win32/config.w32 instead

    I can't find that file in the source. Do you mean win32/config.gc ?

    I haven't yet found a way of modifying config.gc. There's no problem in modifying makefile.mk, but config.gc is readonly, and whilst I can remove the readonly attribute (running as either Owner or User), I get "Access Denied" whenever I try to save a change to that file ... irrespective of whether I'm running as User or Owner ... irrespective of whether the source was unpacked by User or Owner ... irrespective of the directory into which the source was unpacked.

    I've spent over 40 minutes switching between "User" and "Owner" trying to edit the damned thing :-)

    Any idea wtf is going on ?? (I'm fairly new to Windows XP ... never had a problem like this with Windows 2000). I'm using Cygwin's tar utility to unpack the source. The command I'm running is

    tar zxvf downloads/perl-5.8.8.tar.gz

    Blardee hell ...

    Cheers,
    Rob
      Sorry, you're right: it's config.gc, not config.w32.

      The perl source is distributed with read-only permissions set; try chmod a+w config.gc or attrib -r config.gc.

        try chmod a+w config.gc

        Thanks ... that seems to do the trick. (I didn't try the 'attrib' command.)
        But I don't understand why it was necessary to do that - given that a right click on the file in Winders Explorer, select "properties" and then de-select "Readonly" seemed to do what I wanted.

        Anyway, having modified config.gc to 'define' use64bitint, I find that I get:
        C:\_32\perl-5.8.8\win32>perl -V:use64bitint use64bitint='define'; C:\_32\perl-5.8.8\win32>perl -e "print ~0" 4294967295 C:\_32\perl-5.8.8\win32>
        If I had really got the 64-bit support that I was seeking that last command would have produced 18446744073709551615.

        There's obviously other stuff that needs to be done. (But ++ for the help, so far, ysth)

        Cheers,
        Rob