[Libtorrent-devel] libtorrent-0.11.9 configure failed

李海红 lhh at nbicc.com
Thu Oct 30 04:00:36 UTC 2008


Dear libtorrent-devel

   My purpose is to import rtorrent to my arm-uclinux platform,kernel is 2.4.26.
first,  I see the README tell me I required:
  libsigc++ 2.0 (deb: libsigc++-2.0-dev)
  g++ >= 3.3
and on my linux pc Federo Core 4,I have only gcc 2.95.3. So I download a new gcc version 3.4.0: 
http://opensrc.sec.samsung.com/download.html
I download  arm-uclinux-tools-base-gcc3.4.0-20040713.sh  and   arm-uclinux-tools-c++-gcc3.4.0-20040713.sh
and use sh to install to /root/bin/arm-uclinux-tool/ on my FC4 linux pc.

then I go to  libtorrent-0.11.9 direcotory, then
./configure --host=arm-elf --enable-aligned CC=/root/bin/arm-uclinux-tool/bin/arm-elf-gcc 
and it show me the following error:
            checking for madvise... yes
checking signedness of mincore parameter... unsigned
checking for proper overloaded template function disambiguation... no
configure: error: your compiler does not properly handle overloaded template function disambiguation

and vi config.log

the related error is:
configure:24277: checking for proper overloaded template function disambiguation
configure:24292: arm-elf-g++ -c -g -O2 -g -DDEBUG -I/usr/kerberos/include   -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include    conftest.cpp >&5
conftest.cpp: In function `int main()':
conftest.cpp:3: call of overloaded `f (int *&)' is ambiguous
conftest.cpp:1: candidates are: void f<int *>(int *&)
conftest.cpp:2:                 void f<int>(int *)
configure:24298: $? = 1 
configure: failed program was:
| template <typename T> void f(T&) {}
|       template <typename T> void f(T*) {}
|       int main() { int *i = 0; f(*i); f(i); }
| 
configure:24329: result: no
configure:24331: error: your compiler does not properly handle overloaded templa
te function disambiguation

it seemed the compiler miss something.
btw,the download gcc-3.4.0 above in directory /root/bin/arm-uclinux-tool/lib/gcc/arm-uclinux/3.4.0/, don't have crt0.o,libc.a,I copy both from other gcc versions,if don't have it ,other errors will occur. 

could someone else encountered this problems, i googled on net,although found sb else post the problems but have less fix imformation.

thanks




Best Regards!


lhh





More information about the Libtorrent-devel mailing list