From Philippe: I attached the modifications that are needed in gcc3strm.cxx to compile with gcc 3.4.0.
From Philippe:
I attached the modifications that are needed in gcc3strm.cxx to compile with gcc 3.4.0.

There are 2 problems.

One is that I could not find any trace of
    ostream& operator<< (ostream&,const streampos&);
in the gcc 3.3.1 or the gcc 3.4.0 header files.
However it is in cint/lib/gcc3strm/iostrm.h and of course in gcc3strm.cxx

The second problem is more fundamental.  In gcc 3.4.0, streamoff is defined
as (include/c++/3.4.0/bits/postypes.h)
  #ifdef _GLIBCXX_HAVE_INT64_T
    typedef int64_t       streamoff;
  #else
    typedef long long     streamoff;
  #endif
in turn int64_t is platform dependent.  In particular, on my node int64_t
is typedef to an int.  In gcc 3.3.1, streamoff was a long.

This leads to the compilation error:

  cint/src/gcc3strm.cxx: In function `int G__G__stream_6_4_0(G__value*, const char*, G__param*, int)':
  cint/src/gcc3strm.cxx:149: error: 'const class std::fpos<mbstate_t>' has no member named 'operator long int'

As a quick fix, I simply replaced the implementatio of the wrapper so
that it does not do an explicit call to the operator long:
   const fpos<mbstate_t>*pos = (const fpos<mbstate_t>*)(G__getstructoffset());
   G__letint(result7,108,(long)(*pos));
instead of
   G__letint(result7,108,(long)((const fpos<mbstate_t>*)(G__getstructoffset()))->operator long());

Of course, this is fundamentally wrong, since on a 64 bit platform, this will truncate the long long
into a long.

I am not sure what would be good solution (theoritically, it would require to make sure that the
dictionary for fpos<mbstate_t> is different (long vs long long) on the appropriate platforms).


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@9367 27541ba8-7e3a-0410-8455-c3a389f83636

mhuwiler/rootauto,jrtomps/root,mattkretz/root,satyarth934/root,esakellari/my_root_for_test,gganis/root,jrtomps/root,gbitzes/root,satyarth934/root,olifre/root,gbitzes/root,dfunke/root,agarciamontoro/root,karies/root,tc3t/qoot,0x0all/ROOT,perovic/root,Dr15Jones/root,davidlt/root,beniz/root,root-mirror/root,vukasinmilosevic/root,buuck/root,sbinet/cxx-root,smarinac/root,karies/root,nilqed/root,nilqed/root,simonpf/root,bbockelm/root,Duraznos/root,BerserkerTroll/root,mkret2/root,bbockelm/root,alexschlueter/cern-root,gganis/root,vukasinmilosevic/root,omazapa/root-old,Duraznos/root,ffurano/root5,mhuwiler/rootauto,Duraznos/root,jrtomps/root,evgeny-boger/root,root-mirror/root,mkret2/root,dfunke/root,mattkretz/root,simonpf/root,lgiommi/root,CristinaCristescu/root,agarciamontoro/root,mhuwiler/rootauto,sirinath/root,strykejern/TTreeReader,zzxuanyuan/root-compressor-dummy,gganis/root,mhuwiler/rootauto,beniz/root,arch1tect0r/root,Dr15Jones/root,thomaskeck/root,mkret2/root,vukasinmilosevic/root,alexschlueter/cern-root,karies/root,bbockelm/root,Duraznos/root,bbockelm/root,CristinaCristescu/root,perovic/root,abhinavmoudgil95/root,georgtroska/root,smarinac/root,zzxuanyuan/root,mattkretz/root,BerserkerTroll/root,lgiommi/root,olifre/root,zzxuanyuan/root-compressor-dummy,dfunke/root,olifre/root,gganis/root,omazapa/root,esakellari/root,thomaskeck/root,Duraznos/root,mhuwiler/rootauto,kirbyherm/root-r-tools,nilqed/root,thomaskeck/root,CristinaCristescu/root,krafczyk/root,alexschlueter/cern-root,georgtroska/root,0x0all/ROOT,Duraznos/root,zzxuanyuan/root,gbitzes/root,gbitzes/root,mkret2/root,simonpf/root,gganis/root,lgiommi/root,buuck/root,perovic/root,CristinaCristescu/root,krafczyk/root,evgeny-boger/root,mhuwiler/rootauto,mattkretz/root,thomaskeck/root,zzxuanyuan/root-compressor-dummy,Dr15Jones/root,CristinaCristescu/root,esakellari/my_root_for_test,smarinac/root,arch1tect0r/root,nilqed/root,omazapa/root-old,pspe/root,Y--/root,strykejern/TTreeReader,veprbl/root,lgiommi/root,esakellari/root,nilqed/root,karies/root,root-mirror/root,strykejern/TTreeReader,mattkretz/root,root-mirror/root,simonpf/root,buuck/root,jrtomps/root,omazapa/root,simonpf/root,pspe/root,thomaskeck/root,thomaskeck/root,nilqed/root,agarciamontoro/root,mattkretz/root,olifre/root,omazapa/root,jrtomps/root,sawenzel/root,mattkretz/root,gbitzes/root,omazapa/root-old,gbitzes/root,vukasinmilosevic/root,esakellari/my_root_for_test,georgtroska/root,satyarth934/root,satyarth934/root,root-mirror/root,lgiommi/root,root-mirror/root,smarinac/root,tc3t/qoot,esakellari/my_root_for_test,satyarth934/root,evgeny-boger/root,alexschlueter/cern-root,esakellari/my_root_for_test,olifre/root,satyarth934/root,georgtroska/root,simonpf/root,BerserkerTroll/root,omazapa/root,mhuwiler/rootauto,pspe/root,olifre/root,omazapa/root,BerserkerTroll/root,cxx-hep/root-cern,beniz/root,sawenzel/root,mkret2/root,kirbyherm/root-r-tools,dfunke/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,BerserkerTroll/root,sbinet/cxx-root,omazapa/root-old,davidlt/root,root-mirror/root,kirbyherm/root-r-tools,cxx-hep/root-cern,tc3t/qoot,omazapa/root,esakellari/root,0x0all/ROOT,esakellari/root,davidlt/root,lgiommi/root,Y--/root,CristinaCristescu/root,lgiommi/root,simonpf/root,gganis/root,buuck/root,vukasinmilosevic/root,sawenzel/root,karies/root,zzxuanyuan/root,buuck/root,jrtomps/root,bbockelm/root,vukasinmilosevic/root,beniz/root,satyarth934/root,pspe/root,ffurano/root5,zzxuanyuan/root-compressor-dummy,ffurano/root5,pspe/root,olifre/root,bbockelm/root,sbinet/cxx-root,mkret2/root,Dr15Jones/root,esakellari/root,satyarth934/root,agarciamontoro/root,sawenzel/root,mhuwiler/rootauto,beniz/root,pspe/root,Duraznos/root,karies/root,davidlt/root,sirinath/root,bbockelm/root,kirbyherm/root-r-tools,Y--/root,Y--/root,davidlt/root,davidlt/root,nilqed/root,zzxuanyuan/root,krafczyk/root,mhuwiler/rootauto,BerserkerTroll/root,smarinac/root,mkret2/root,thomaskeck/root,omazapa/root,Y--/root,evgeny-boger/root,simonpf/root,0x0all/ROOT,pspe/root,buuck/root,arch1tect0r/root,jrtomps/root,kirbyherm/root-r-tools,gbitzes/root,sirinath/root,arch1tect0r/root,buuck/root,omazapa/root-old,abhinavmoudgil95/root,sbinet/cxx-root,0x0all/ROOT,CristinaCristescu/root,mhuwiler/rootauto,vukasinmilosevic/root,veprbl/root,omazapa/root-old,arch1tect0r/root,sbinet/cxx-root,mattkretz/root,beniz/root,karies/root,agarciamontoro/root,evgeny-boger/root,beniz/root,buuck/root,nilqed/root,davidlt/root,buuck/root,BerserkerTroll/root,sawenzel/root,vukasinmilosevic/root,cxx-hep/root-cern,perovic/root,zzxuanyuan/root-compressor-dummy,gganis/root,evgeny-boger/root,Dr15Jones/root,strykejern/TTreeReader,Duraznos/root,sirinath/root,Duraznos/root,krafczyk/root,beniz/root,bbockelm/root,zzxuanyuan/root,jrtomps/root,kirbyherm/root-r-tools,olifre/root,abhinavmoudgil95/root,pspe/root,esakellari/my_root_for_test,gganis/root,omazapa/root,agarciamontoro/root,gbitzes/root,perovic/root,cxx-hep/root-cern,tc3t/qoot,gbitzes/root,arch1tect0r/root,zzxuanyuan/root,karies/root,abhinavmoudgil95/root,abhinavmoudgil95/root,veprbl/root,mkret2/root,0x0all/ROOT,simonpf/root,zzxuanyuan/root,veprbl/root,omazapa/root,jrtomps/root,smarinac/root,sawenzel/root,karies/root,georgtroska/root,cxx-hep/root-cern,CristinaCristescu/root,kirbyherm/root-r-tools,Y--/root,mkret2/root,sbinet/cxx-root,abhinavmoudgil95/root,zzxuanyuan/root,esakellari/root,evgeny-boger/root,jrtomps/root,arch1tect0r/root,veprbl/root,omazapa/root,sirinath/root,vukasinmilosevic/root,krafczyk/root,root-mirror/root,krafczyk/root,mkret2/root,mattkretz/root,abhinavmoudgil95/root,veprbl/root,cxx-hep/root-cern,georgtroska/root,zzxuanyuan/root-compressor-dummy,simonpf/root,veprbl/root,sirinath/root,zzxuanyuan/root,dfunke/root,pspe/root,evgeny-boger/root,dfunke/root,beniz/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,root-mirror/root,agarciamontoro/root,smarinac/root,BerserkerTroll/root,zzxuanyuan/root,olifre/root,Duraznos/root,vukasinmilosevic/root,alexschlueter/cern-root,agarciamontoro/root,agarciamontoro/root,evgeny-boger/root,buuck/root,bbockelm/root,omazapa/root,tc3t/qoot,davidlt/root,buuck/root,satyarth934/root,esakellari/my_root_for_test,zzxuanyuan/root,krafczyk/root,davidlt/root,satyarth934/root,tc3t/qoot,krafczyk/root,omazapa/root-old,evgeny-boger/root,beniz/root,Duraznos/root,Y--/root,georgtroska/root,CristinaCristescu/root,abhinavmoudgil95/root,agarciamontoro/root,sawenzel/root,esakellari/my_root_for_test,karies/root,strykejern/TTreeReader,lgiommi/root,smarinac/root,esakellari/root,perovic/root,Y--/root,ffurano/root5,Dr15Jones/root,0x0all/ROOT,gbitzes/root,vukasinmilosevic/root,BerserkerTroll/root,pspe/root,abhinavmoudgil95/root,georgtroska/root,veprbl/root,esakellari/my_root_for_test,georgtroska/root,esakellari/root,cxx-hep/root-cern,esakellari/root,dfunke/root,davidlt/root,root-mirror/root,dfunke/root,omazapa/root-old,thomaskeck/root,smarinac/root,omazapa/root-old,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,BerserkerTroll/root,root-mirror/root,sbinet/cxx-root,smarinac/root,arch1tect0r/root,simonpf/root,zzxuanyuan/root,ffurano/root5,nilqed/root,mhuwiler/rootauto,CristinaCristescu/root,sirinath/root,sawenzel/root,sirinath/root,ffurano/root5,arch1tect0r/root,bbockelm/root,gganis/root,ffurano/root5,perovic/root,CristinaCristescu/root,sirinath/root,zzxuanyuan/root-compressor-dummy,arch1tect0r/root,esakellari/root,georgtroska/root,0x0all/ROOT,sbinet/cxx-root,olifre/root,abhinavmoudgil95/root,bbockelm/root,alexschlueter/cern-root,BerserkerTroll/root,krafczyk/root,veprbl/root,lgiommi/root,perovic/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,perovic/root,strykejern/TTreeReader,abhinavmoudgil95/root,lgiommi/root,mattkretz/root,tc3t/qoot,gganis/root,perovic/root,evgeny-boger/root,georgtroska/root,tc3t/qoot,sirinath/root,thomaskeck/root,dfunke/root,sbinet/cxx-root,sawenzel/root,gbitzes/root,veprbl/root,sbinet/cxx-root,sawenzel/root,dfunke/root,lgiommi/root,gganis/root,krafczyk/root,nilqed/root,strykejern/TTreeReader,Y--/root,krafczyk/root,omazapa/root-old,karies/root,dfunke/root,cxx-hep/root-cern,pspe/root,perovic/root,olifre/root,esakellari/root,sawenzel/root,0x0all/ROOT,alexschlueter/cern-root,arch1tect0r/root,tc3t/qoot,Dr15Jones/root,omazapa/root-old,sirinath/root,Y--/root,Y--/root,tc3t/qoot,mkret2/root,esakellari/my_root_for_test,beniz/root,thomaskeck/root,jrtomps/root,davidlt/root,veprbl/root,nilqed/root