Problem building libXrdSec.so in root_v5.28.00

Dear rooters,
I was trying to recompile root_v5.28.00 on Ubuntu 10.04, 64 Bit,
(./configure linuxx8664gcc)

and get the following in xrootd:

g++ -shared -Wl,-soname,libHbook.so -m64 -O2 -o lib/libHbook.so hist/hbook/src/THbookBranch.o hist/hbook/src/THbookFile.o hist/hbook/src/THbookKey.o hist/hbook/src/THbookTree.o hist/hbook/src/G__Hbook.o
==> lib/libHbook.so done
*** Building xrootd ... topdir= /scratch-local/bizet/cernlib/root_v5.28.00
make[1]: Entering directory `/scratch-local/bizet/cernlib/root_v5.28.00/net/xrootd/src/xrootd'
Making sys component...
...
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 -lpthread -lrt -ldl -lc -o ../../lib/libXrdSec.so;
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
...

Why is he trying to make the 32 bit version?
I even have the 32 bit lib installed:
/usr/lib32/libstdc++.so.6

Cheers
Otto

Hi Otto,
a

 make distclean-xrootd 

will help.

Cheers
Otto