MantisBT - CMake
View Issue Details
0007933CMakeCMakepublic2008-11-04 05:442016-06-10 14:30
Claudio Bantaloukas 
Bill Hoffman 
normalmajorhave not tried
closedmoved 
CMake-2-6 
 
0007933: -D_LARGE_FILES broken on AIX-gcc
When compiling cmake 2.6.2 on AIX using the gcc-4.2.4 compiler, using Large File Support trips on gcc PR 20366.

Symptom
In file included from /opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/powerpc-ibm-aix5.3.0.0/bits/c++locale.h:49,
                 from /opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/iosfwd:45,
                 from /opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,
                 from /opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/bits/char_traits.h:46,
                 from /opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/string:47,
                 from /claudiofs/claudio/src/cmake-2.6.2/Source/cmsys/stl/string:38,
                 from /claudiofs/claudio/src/cmake-2.6.2/Source/kwsys/Directory.cxx:19:
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/cstdio:109: error: '::fgetpos' has not been declared
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/cstdio:111: error: '::fopen' has not been declared
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/cstdio:116: error: '::freopen' has not been declared
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../../include/c++/4.2.4/cstdio:119: error: '::fsetpos' has not been declared
gmake[2]: *** [Source/kwsys/CMakeFiles/cmsys.dir/Directory.o] Error 1
gmake[1]: *** [Source/kwsys/CMakeFiles/cmsys.dir/all] Error 2
gmake: *** [all] Error 2
Original issue here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20366 [^]
No tags attached.
patch fix_broken_lfs_on_aix.patch (1,318) 2008-11-04 05:55
https://public.kitware.com/Bug/file/1824/fix_broken_lfs_on_aix.patch
Issue History
2008-11-04 05:44Claudio BantaloukasNew Issue
2008-11-04 05:47Claudio BantaloukasNote Added: 0014020
2008-11-04 05:55Claudio BantaloukasFile Added: fix_broken_lfs_on_aix.patch
2008-11-04 05:56Claudio BantaloukasNote Added: 0014021
2008-11-05 17:39Bill HoffmanStatusnew => assigned
2008-11-05 17:39Bill HoffmanAssigned To => Bill Hoffman
2009-09-14 21:06Bill HoffmanNote Added: 0017508
2016-06-10 14:27Kitware RobotNote Added: 0041466
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0014020)
Claudio Bantaloukas   
2008-11-04 05:47   
this issue is similar but different in nature to issue 4691

The solution lies in gcc-land and the gcc PR has a patch to fixincludes attached.

I am preparing a workaround in bootstrap that makes bootstraping on aix with gcc possible, please check and apply if correct.
(0014021)
Claudio Bantaloukas   
2008-11-04 05:56   
fix_broken_lfs_on_aix.patch allows bootstrap to succeed on AIX with gcc, please test on other platforms, kthanxbye :)
(0017508)
Bill Hoffman   
2009-09-14 21:06   
I think this is fixed now...
(0041466)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.