[Cmake] can't build on aix

Brad King brad . king at kitware . com
Thu, 17 Jan 2002 11:00:26 -0500 (EST)


Herc,

Thanks for your report.

> I just downloaded cmake and tried to build on aix 4.3.3 with the visual
> age 5.0 c++ compiler. But it fails to build.  I set CXX=/usr/bin/xlC.
> 
> Is this code ANSI C++ compliant (not sure this is the issue but we have
> had this issue with other stuff recently)?
[snip]
> "cmUnixMakefileGenerator.h", line 111.50: 1540-0040 (S) The text "&" is
> unexpected.  "cmMakeDepend" may be undeclared or ambiguous.
> make: The error code from the last command is 1.

The code is intended to be standard compliant, with various work-arounds
to support non-compliant compilers.  Your problem is a bug in the code,
though, and it just happened that none of the compilers we use caught it.  
I just committed a fix to CVS.  If you are using the release version, try
adding the line

class cmMakeDepend;

below the lines

class cmFunctionBlocker;
class cmCommand;
class cmMakefileGenerator;

in CMake/Source/cmMakefile.h

Please let us know if it builds okay after that.  I don't believe we have
ever tried using your compiler before.

Thanks,
-Brad