Originally posted by: SystemAdmin
Jim,
Thank you for your response.
> Are you able to create and process file greater than
> 2GB by any method other than the binaries you've
> compiled yourself?
Limited. Programs I've written have been able to generate files >2G,
when I explicitly used open64, fopen64, and other hand coded
modifications in strict C.
Am I correct, that if Large File Enabled was unset, not even open64
and fopen64 could create 2G files?
Am I correct that the above indicates our systems do have
Large File Enabled set?
I've not succeeded in using c++ ifstream or ofstream successfully.
We need to build libraries from ansi c++ and g++ for interoperability
with software used on other platforms.
I've encountered LARGE_FILE_API and other macros in the aix /usr/include
header files, but been unable to learn their intended use.
Does anyone know where these macros are documented?
Does anyone know how they can be set to use c++ ifstream/ofstream
successfully with files >2G?
Does anyone know if correct setting of these macros has effect?
We are limited to g++-3.3.2 by the fact that we have seen no evidence
of any successful installation of gcc-4 on aix-5.3 . (Though all the
other packages downloaded from
http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html have proven useful, the g++-4 rpm package has never successfully
compiled much more than a hello world program for us, nor for several
others who've reported problems on this forum
"error: gcc-4.0.0-1.aix5.3.ppc.rpm cannot be installed",
"g++-4.0.0 for aix5.3L and stdc++")
Is there anyone successfully using g++-4 (not just gcc-4) on aix-5.3?
Where can we get a working g++-4 rpm for aix-5.3?
Where can we get a working g++-4 src rpm for aix-5.3?
What aix-5.3 spec file/environment was used to compile a working g++-4?
> In AIX filesystems have to be
> created with a special option to support so-called
> large files larger than 2GB. If you haven't done this
> it would cause the error you're seeing. You can check
> this with "smitty chjfs".
On one aix-5.3 system, "smitty chjfs" leaves the "Large Files Enabled"
field blank. I've not yet learned whether this means large files are
disabled or smitty is unable to report. On a second aix-5.3 system,
the field is absent from smitty's report and the log reports
**** ERROR ****
1800-083 Data error: could not find matching ring
field value for corresponding Command_to_Discover
value. sm_cmd_opt
15.disc_field_name:
"VIX".
The current actual value will be used as the
default value for the following dialog. Use
local problem reporting procedures.
TIA,
#AIX-Forum