I suspect you should also have -D_FILE_OFFSET_BITS=64 in addition to -D_LARGEFILE_SOURCE ...

Maybe the problem is that this version had been built in a 32-bit build environment (gcc version), at least the README.hpux that comes with the Perl sources states that (emphasis added)

Using Large Files with Perl on HP-UX

... Three separate methods of doing this are available. Of these methods, the best method for Perl is to compile using the -Duselargefiles flag to Configure. This causes Perl to be compiled using structures and functions in which these are 64 bits wide, rather than 32 bits wide. (Note that this will only work with HP's ANSI C compiler. If you want to compile Perl using gcc, you will have to get a version of the compiler that supports 64-bit operations. See above for where to find it.)

Anyhow, before you go to the trouble of building your own version, you might try one the binaries generously offered for download by our very own cbu.

According to the uname signature "hp-ux waves b.11.23 u 9000800 2510705975 ..." the perl you have seems to come from the HP archive... (so there's probably no point in giving that one another try).


In reply to Re^3: File test (-e) fails on files > 2G, uselargefiles=define by almut
in thread File test (-e) fails on files > 2G, uselargefiles=define by perlofwisdom

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.