[Ace-users] [ace-users] Large File Support with Solaris

Johnny Willemsen jwillemsen at remedy.nl
Mon Dec 3 13:52:19 CST 2007


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.
> >
> >
> 



More information about the Ace-users mailing list