[Cmake] can't build on aix

Silverstein herc at schrodinger . com
Thu, 17 Jan 2002 17:19:24 -0800


Bill Hoffman wrote:
> 
> Could you do a make -k in the build?  That way we can see more of the errors up-front.
> For this one, try changing the private: to public:
> 

OK, that looks like it worked and I have a binary.

Thanks

Herc

> cmCableClassSet.cxx : line 156
> class ElementCombinationGenerator
> {
> public:
>   ElementCombinationGenerator(const char* in_element, cmMakefile* in_makefile,
>                               cmCableClassSet* out_set):
>     m_Makefile(in_makefile), m_OutputSet(out_set)
>     {
>       this->ParseInputElement(in_element);
>     }
>   ~ElementCombinationGenerator();
> 
>   void Generate();
> 
> private:   ///*** change this to public:
> 
> At 10:25 AM 1/17/2002 -0800, Silverstein wrote:
> >Brad King wrote:
> >>
> >> 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
> >
> >Thanks for the speedy reply.  Now it gets farther, but not all the way.
> >
> >        /usr/bin/xlC -DCMAKE_ROOT_DIR='"/home/herc/surf/CMake-1-2"' -g
> >-DCMAKE_HAS_AUTOCONF -I/home/herc/surf/CMake-1-2/Source -c
> >cmCableClassSet.cxx -o cmCableClassSet.o
> >"cmCableClassSet.cxx", line 226.30: 1540-0300 (S) The "private" member
> >"class ElementCombinationGenerator::Portion" cannot be accessed.
> >make: 1254-004 The error code from the last command is 1.
> >
> >The declaration in the header shows the inheritance as being public, but
> >for some reason it looks like the StringPortion class sees Portion as
> >private.  I tried making StringPortion and ElementCombinationGenerator
> >friends of Portion, but no luck...
> >
> >Herc
> >_______________________________________________
> >Cmake mailing list
> >Cmake at public . kitware . com
> >http://public . kitware . com/mailman/listinfo/cmake