Print

Print


Hello

I tried to compile Xrootd (from the HEAD) on Fedora Core3 using
gcc 3.4.2 and './configure --build=debug'.

It fails with the following error:

Compiling XrdClientAbs.cc
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/sstream:640,
                 from ../XrdClient/XrdClientDebug.hh:23,
                 from XrdClientAbs.cc:17:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc:
In member function `virtual typename std::basic_stringbuf<_CharT, _Traits,
_Alloc>::int_type std::basic_stringbuf<_CharT, _Traits,
_Alloc>::overflow(typename _Traits::int_type)':
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc:104:
error: expected unqualified-id before '(' token
gmake[4]: *** [../../obj/i386_linux26_dbg/XrdClientAbs.o] Error 1


I could fix the problem by modifying  ./src/XrdClientDebug.hh,
adding

#undef min
#undef max

before the include statements (it has to be before #include <sstream>),
but I don't understand why I have to do this.
Is this something that has to be fixed ?


Cheers,
   Wilko