Operating System - HP-UX
1833051 Members
2260 Online
110049 Solutions
New Discussion

Re: @ HP-UX Perl porters, procura et al.; Perl Largefiles Support

 
SOLVED
Go to solution
Ralph Grothe
Honored Contributor

@ HP-UX Perl porters, procura et al.; Perl Largefiles Support

Hi,

with the advent of Oracle9i on some of our servers the respective DBAs switch to *dbf files > 2GB.

This means I will have to adapt my Perl backup scripts accordingly.

I do fear that I had configured/compiled my Perl interpreters neglective in that respect.

Since I'm not quite sure, and I know there are wizards from the Perl HP-UX porters regular participants in this forum I want to double check first before undergoing the fuss of a new Perl rebuild.

I guessed that the required feature must have something like "largefile" as key.
So all those keys that %Config holds seem to have undef values, which leads me to the assumption that my Perl-build isn't largefile-capable.

Could you confirm?

# perl -MConfig -e 'map{printf"%30s => %s\n",$_,$Config{$_}}grep/large[_]?file/
i,keys%Config'
ccflags_uselargefiles =>
ldflags_uselargefiles =>
libswanted_uselargefiles =>
uselargefiles =>


Regards

Ralph
Madness, thy name is system administration
3 REPLIES 3
Ralph Grothe
Honored Contributor

Re: @ HP-UX Perl porters, procura et al.; Perl Largefiles Support

Addendum,

after having built largefile support into Perl will this also affect modules like File::Copy etc.?
Probably it is required to reinstall/relink those anyway?
Madness, thy name is system administration
H.Merijn Brand (procura
Honored Contributor
Solution

Re: @ HP-UX Perl porters, procura et al.; Perl Largefiles Support

l1:/u/usr/merijn 101 > perl -V | grep -i large
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
cc='cc', ccflags =' -Ae -DDEBUGGING -D_HPUX_SOURCE -Wl,+vnocompatwarnings -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ',
Compile-time options: DEBUGGING USE_LARGE_FILES
l1:/u/usr/merijn 102 >

If you did not diable large file support or used one of my perl's, you already *have* large file support. This means that you do not need any changes while using regular IO functionality: it just works (including File::Copy).

BUT

in order to access those files from within perl by address (lseek and such) you need a 64bit perl

HTH Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ralph Grothe
Honored Contributor

Re: @ HP-UX Perl porters, procura et al.; Perl Largefiles Support

Hi Merijn,

looks like the Config module was correct :-(

# perl -V|grep -i large
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef


So I will have to build Perl again.
Madness, thy name is system administration