Hi Sriram,
 
Thanks for the prompt reply.. I upgraded gcc to 4.3.0, but got this new error now..
 
-------------------- BEGIN ERROR LOG ---------------------------------------
[root@level1-metropc debug]# gmake
Scanning dependencies of target kfsCommon
[  1%] Building CXX object src/cc/common/CMakeFiles/kfsCommon.dir/log.o
[  2%] Building CXX object src/cc/common/CMakeFiles/kfsCommon.dir/properties.o
Linking CXX static library libkfsCommon.a
[  2%] Built target kfsCommon
Scanning dependencies of target kfsCommon-shared
[  3%] Building CXX object src/cc/common/CMakeFiles/kfsCommon-shared.dir/log.o
[  4%] Building CXX object src/cc/common/CMakeFiles/kfsCommon-shared.dir/properties.o
Linking CXX shared library libkfsCommon.so
[  4%] Built target kfsCommon-shared
Scanning dependencies of target meta
[  5%] Building CXX object src/cc/meta/CMakeFiles/meta.dir/checkpoint.o
In file included from /usr/include/boost/config.hpp:35,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/IOBuffer.h:33,
                 from /root/aameek/kfs/kfs-0.1.2/src/cc/meta/util.h:31,
                 from /root/aameek/kfs/kfs-0.1.2/src/cc/meta/checkpoint.h:37,
                 from /root/aameek/kfs/kfs-0.1.2/src/cc/meta/checkpoint.cc:56:
/usr/include/boost/config/compiler/gcc.hpp:92:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results"
In file included from /root/aameek/kfs/kfs-0.1.2/src/cc/meta/checkpoint.h:34,
                 from /root/aameek/kfs/kfs-0.1.2/src/cc/meta/checkpoint.cc:56:
/root/aameek/kfs/kfs-0.1.2/src/cc/meta/queue.h:71: error: ‚bool KFS::FunctorWrapper<T>::operator()(T*)‚ cannot be overloaded
/root/aameek/kfs/kfs-0.1.2/src/cc/meta/queue.h:68: error: with ‚void KFS::FunctorWrapper<T>::operator()(T*)‚
gmake[2]: *** [src/cc/meta/CMakeFiles/meta.dir/checkpoint.o] Error 1
gmake[1]: *** [src/cc/meta/CMakeFiles/meta.dir/all] Error 2
gmake: *** [all] Error 2
-------------------- END ERROR LOG ---------------------------------------
 
Regards,
Aameek

On Fri, Apr 11, 2008 at 1:32 PM, Sriram Rao <sriramsrao@gmail.com> wrote:
Hi,

What version of gcc/g++ are you using?  It should be at least g++
4.1.1 or higher.

Sriram

On Fri, Apr 11, 2008 at 1:23 PM, Aameek Singh <aameek@gmail.com> wrote:
> Hi,
>
> I am trying to install kfs on a RedHat EL machine, but I am getting an error
> during compilation.
>
> My set up is as follows:
>
> $ uname -a
> Linux <hostname> 2.6.9-34.ELsmp #1  SMP  Fri Feb 24 16:54:53 EST 2006 i686
> i686 i386 GNU/Linux
>
> Boost:  Version 1.35.0
> cmake: Version 2.4.8
> log4cpp: Version 1.0.1
> log4cpp-devel: Version 1.0.1
>
> Compiled the first two from source and used rpms for the last two.
>
> Compilation fails during the gmake step. I had applied the changes as
> recommended by Sriram in the discussion with Sungkwon, but NOT  the changes
> described by James Devine...
>
> Any help will be appreciated... Thanks..
>
>
> ----------------------  BEGIN ERROR LOG
> -----------------------------------------------
> [  2%] Built target kfsCommon
> [  4%] Built target kfsCommon-shared
> [  5%] Building CXX object src/cc/meta/CMakeFiles/meta.dir/ChunkReplicator.o
> In file included from
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Globals.h:33,
>                   from
> /root/aameek/kfs/kfs-0.1.2/src/cc/meta/ChunkReplicator.cc:29:
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:33:29:
> tr1/unordered_map: No such file or directory
> In file included from
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Globals.h:33,
>                   from
> /root/aameek/kfs/kfs-0.1.2/src/cc/meta/ChunkReplicator.cc:29:
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:41: error: `std::tr1'
> has not been declared
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:41: error: expected
> initializer before '<' token
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:42: error: `std::tr1'
> has not been declared
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:42: error: expected
> initializer before '<' token
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:90: error: `std::tr1'
> has not been declared
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:90: error:
> `unordered_map' has not been declared
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:90: error: expected `,'
> or `...' before '<' token
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:90: error: ISO C++
> forbids declaration of `parameter' with no type
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h: In member function
> `void KFS::ShowCounter::operator()(int)':
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:91: error: `v' was not
> declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:91: warning: unused
> variable 'v'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h: At global scope:
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:161: error:
> `CounterMap' does not name a type
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h: In destructor
> `KFS::CounterManager::~CounterManager()':
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:106: error:
> `CounterMapIterator' was not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:106: error: expected
> `;' before "iter"
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:107: error: `iter' was
> not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:107: error: `mCounters'
> was not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:107: warning: unused
> variable 'mCounters'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:106: warning: unused
> variable 'CounterMapIterator'
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:111: error:
> `mCounters' was not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:111: warning: unused
> variable 'mCounters'
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h: In member function
> `void KFS::CounterManager::AddCounter(KFS::Counter*)':
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:117: error: `mCounters'
> was not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:117: warning: unused
> variable 'mCounters'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h: In member function
> `void KFS::CounterManager::RemoveCounter(KFS::Counter*)':
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:124: error:
> `CounterMapIterator' was not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:124: error: expected
> `;' before "iter"
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:126: error: `iter' was
> not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:126: error: `mCounters'
> was not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:126: warning: unused
> variable 'iter'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:126: warning: unused
> variable 'mCounters'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:129: error: `mCounters'
> was not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:124: warning: unused
> variable 'CounterMapIterator'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:129: warning: unused
> variable 'mCounters'
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h: In member function
> `KFS::Counter* KFS::CounterManager::GetCounter(const std::string&)':
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:138: error:
> `CounterMapIterator' was not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:138: error: expected
> `;' before "iter"
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:141: error: `iter' was
> not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:141: error: `mCounters'
> was not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:141: warning: unused
> variable 'iter'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:141: warning: unused
> variable 'mCounters'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:143: error: `iter' was
> not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:138: warning: unused
> variable 'CounterMapIterator'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:143: warning: unused
> variable 'iter'
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h: In member function
> `void KFS::CounterManager::Show(std::ostringstream&)':
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:151: error:
> `mCounters' was not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:151: warning: unused
> variable 'mCounters'
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:156: error:
> `mCounters' was not declared in this scope
> /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:156: error: `for_each'
> was not declared in this scope
>  /root/aameek/kfs/kfs-0.1.2/src/cc/libkfsIO/Counter.h:156: warning: unused
> variable 'for_each'
> gmake[2]: *** [src/cc/meta/CMakeFiles/meta.dir/ChunkReplicator.o] Error 1
> gmake[1]: *** [src/cc/meta/CMakeFiles/meta.dir/all] Error 2
>  gmake: *** [all] Error 2
>
> ----------------------  END ERROR LOG
> -----------------------------------------------
> -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
>  Kosmosfs-users mailing list
>  Kosmosfs-users@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/kosmosfs-users
>
>