X86_64 compile problems on Ubuntu 11.04


I am trying to compile root on Ubuntu 11.04 under x86_64 and I get the
following compiler error:


*** Building xrootd … topdir= /home/mgericke/Downloads/root
make[1]: Entering directory /home/mgericke/Downloads/root/net/xrootd/src/xrootd' Creatiing version header... [I] No git repository info found. Trying to interpret VERSION_INFO [I] src/XrdVersion.hh successfuly generated Making sys component... cd src/XrdSys;\ make all ARCH=i386_linux --no-print-directory Make XrdSys done. Making ouc component... cd src/XrdOuc;\ make all ARCH=i386_linux --no-print-directory Make XrdOuc done. Making net component... Make XrdNet done. Making sec component... cd src/XrdSec;\ make all ARCH=i386_linux --no-print-directory Creating shared library ../../lib/libXrdSec.so g++ ../../obj/XrdSecClient.o ../../obj/XrdSecPManager.o ../../obj/XrdSecProtocolhost.o ../../obj/XrdSecServer.o ../../obj/XrdSecTLayer.o -shared -m32 -L../../lib -lXrdNet -lXrdOuc -lXrdNetUtil -lXrdSys -lnsl -lrt -ldl -lc -o ../../lib/libXrdSec.so; /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/libstdc++.a when searching for -lstdc++ /usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status make[5]: *** [../../lib/libXrdSec.so] Error 1 make[4]: *** [Linuxall] Error 2 make[3]: *** [all] Error 2 make[2]: *** [XrdSec] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory/home/mgericke/Downloads/root/net/xrootd/src/xrootd’
*** Error condition reported by make (rc = 2):
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1

I am using gcc version 4.5.2


Never mind … I was using 5.28 and it didn’t work, but using 5.30 works fine.