[Ace-users] [ace-users] Large File Support with Solaris
Steve Huston
shuston at riverace.com
Mon Dec 3 15:57:44 CST 2007
More particularly, from the NEWS file:
. Added ability to explicitly choose support for 32 bit or 64 bit file
offsets on all platforms. Define the _FILE_OFFSET_BITS preprocessor
symbol to either 32 or 64 to choose the desired number of file
offset bits. This preprocessor symbol is supported natively by most
UNIX and UNIX-like operating systems, and supported by ACE on
Windows. Use the new ACE_OFF_T typedef to refer to file offsets
across UNIX and Windows portably.
Use this technique with the traditional build/configure mechanism, as
Johnny mentioned.
-Steve
--
Steve Huston, Riverace Corporation
Want to take ACE training on YOUR schedule?
See http://www.riverace.com/training.htm
> -----Original Message-----
> From: ace-users-bounces at cse.wustl.edu
> [mailto:ace-users-bounces at cse.wustl.edu] On Behalf Of Johnny
Willemsen
> Sent: Monday, December 03, 2007 2:52 PM
> To: 'Joey Mink'
> Cc: ace-users at cs.wustl.edu
> Subject: Re: [ace-users] Large File Support with Solaris
>
>
> Hi,
>
> Don't use the autoconf support, it is really experimental.
> Please use the
> traditional way of compilation and then enable the large file
> support as you
> would do for your app, but then add the defines to config.h
>
> Regads,
>
> Johnny Willemsen
> Remedy IT
> Postbus 101
> 2650 AC Berkel en Rodenrijs
> The Netherlands
> www.theaceorb.nl / www.remedy.nl
>
> *** Integrated compile and test statistics see
> http://scoreboard.theaceorb.nl ***
> *** Commercial service and support for ACE/TAO/CIAO ***
> *** See http://www.theaceorb.nl/en/support.html ***
>
> > I've downloaded ACE 5.6.1 as Doug recommended, but I don't see any
> > special directives for the configure script with respect to
> large file
> > support.
> >
> > How are you recommending I build with large file support enabled?
> > Using the CXXFLAGS env variable set to something like
> > -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64?
> >
> > Thanks,
> > Joey
> >
> > On Dec 3, 2007 1:55 PM, Johnny Willemsen
> <jwillemsen at remedy.nl> wrote:
> > > Hi,
> > >
> > > When you build ACE you should also enabled large file support.
> > >
> > > Regards,
> > >
> > > Johnny Willemsen
> > > Remedy IT
> > > Postbus 101
> > > 2650 AC Berkel en Rodenrijs
> > > The Netherlands
> > > www.theaceorb.nl / www.remedy.nl
> > >
> > > *** Integrated compile and test statistics see
> > > http://scoreboard.theaceorb.nl ***
> > > *** Commercial service and support for ACE/TAO/CIAO
> ***
> > > *** See http://www.theaceorb.nl/en/support.html
> ***
> > >
> > > <joeymink at gmail.com> wrote in message
> > >
> > news:<eb20fad3-cfb4-4cea-9f78-4a19fe4917c8 at i12g2000prf.googleg
> roups.com>...
> > > >
> > > > ACE VERSION: 5.5.7
> > > >
> > > > HOST MACHINE and OPERATING SYSTEM:
> > > > x86 Sun Solaris 5.8
> > > >
> > > > TARGET MACHINE and OPERATING SYSTEM, if different from
HOST:
> > > > COMPILER NAME AND VERSION (AND PATCHLEVEL):
> > > > gcc/g++ 4.1.2
> > > >
> > > > THE $ACE_ROOT/ace/config.h FILE:
> > > > auto-generated config script
> > > >
> > > > THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE
> > > > auto-generated config script
> > > >
> > > > CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
> > > > default.features:
> > > >
> > > > AREA/CLASS/EXAMPLE AFFECTED:
> > > > ACE File IO wrappers.
> > > >
> > > > DOES THE PROBLEM AFFECT:
> > > > COMPILATION? no
> > > > LINKING? no
> > > > EXECUTION? yes
> > > >
> > > > SYNOPSIS:
> > > > Our ACE-dependent application opens an output file stream
> > using the
> > > > ACE file i/o wrappers, and when we try to write a file
> > greater than 2
> > > > Gb, we get errno 27 (which implies that the size of the
> > file is too
> > > > large).
> > > >
> > > > DESCRIPTION:
> > > > We believe it's the application's lack of large file
> > support. Is it
> > > > necessary to configure/compile ACE to explicitly support
> > large files
> > > > on this platform? I believe we need to set the
> > -D_LARGEFILE_SOURCE
> > > > and -D_FILE_OFFSET_BITS=64 when we compile our app. But
> > we wanted to
> > > > be sure that ACE didn't need any particular settings as well.
> > > >
> > > > REPEAT BY:
> > > > Simply opened a new file and wrote until the offset neared 2
> > > > gigabytes.
> > > >
> > > > SAMPLE FIX/WORKAROUND:
> > > > None yet...
> > > >
> > > > Thanks in advance for any replies.
> > >
> > >
> >
>
> _______________________________________________
> ace-users mailing list
> ace-users at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ace-users
>
More information about the Ace-users
mailing list