Getting error 79 (Value too large for defined data type) when trying to OPEN file in perl script on Solaris. When I originally got error, did some research and found I was hitting the 2GB limit and was using an old version of perl that was not built with largefile support...
Characteristics of this binary (from libperl): Built under solaris Compiled at Dec 22 1999 00:00:57 @INC: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005
So I tried using a newer version of perl...
Compiler: cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='' ccversion='WorkShop Compilers 4.2 30 Oct 1996 C 4.2', gccversion=' +', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=4 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' ' libpth=/usr/lib /lib libs=-lsocket -lnsl -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /op +t/perl/5.8.0/lib/sun4-solaris/CORE' cccdlflags='-KPIC', lddlflags='-G' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under solaris Compiled at Jan 14 2003 23:31:22 @INC: /opt/perl/5.8.0/lib/sun4-solaris /opt/perl/5.8.0/lib /opt/perl/5.8.0/lib/sun4-solaris /opt/perl/5.8.0/lib /opt/perl/5.8.0/lib
but I'm still getting the same error. Here is the truss output...
brk(0x00052A50) = 0 read(3, 0x000352EC, 8192) = 0 llseek(3, 0, SEEK_CUR) = 17947 close(3) = 0 getcontext(0xFFBEE970) open("main.sort", O_RDONLY) Err#79 EOVERFLOW Cannot open main feed file main.sort at john.pl line 306. write(2, " C a n n o t o p e n ".., 58) = 58 getcontext(0xFFBEE6A8) setcontext(0xFFBEE6A8) getcontext(0xFFBEE910) llseek(0, 0, SEEK_CUR) = 1798918 _exit(79)
Anybody have any ideas? Thanks.

In reply to Problem opening large file by jrich

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.