Ticket #225 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

rtorrent-0.5.1 fails to build GCC-4.1.0

Reported by: avuton@gmail.com Owned by: rakshasa
Priority: high Component: rtorrent
Version: HEAD Severity: normal
Keywords: 0.5.1 Cc:

Description

Tried to build rtorrent, but the build failed, this maybe a GCC-4 only issue.

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../..    -march=athlon-xp -O2 -pipe -DNDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include    -c -o download_factory.o download_factory.cc
./../utils/variable_generic.h: In constructor 'utils::VariableStringSlot::VariableStringSlot(SlotGet*, SlotSet*) [with SlotGet = rak::function_base0<const char*>, SlotSet = rak::function_base1<void, const std::string&>]':
download.cc:69:   instantiated from here
./../utils/variable_generic.h:167: error: call of overloaded 'convert_fn(rak::function_base1<void, const std::string&>*&)' is ambiguous
../../rak/functional_fun.h:362: note: candidates are: rak::function_base1<Result, Arg1>* rak::convert_fn(rak::function_base1<SrcResult, SrcArg1>*) [with Result = void, Arg1 = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, SrcResult = void, SrcArg1 = const std::string&]
../../rak/functional_fun.h:370: note:                 rak::function_base1<Result, Arg1>* rak::convert_fn(rak::function_base1<Result, Arg1>*) [with Result = void, Arg1 = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&]
./../utils/variable_generic.h: In constructor 'utils::VariableStringSlot::VariableStringSlot(SlotGet*, SlotSet*) [with SlotGet = rak::function_base0<const std::string&>, SlotSet = rak::function_base1<void, const std::string&>]':
download.cc:91:   instantiated from here
./../utils/variable_generic.h:167: error: call of overloaded 'convert_fn(rak::function_base1<void, const std::string&>*&)' is ambiguous
../../rak/functional_fun.h:362: note: candidates are: rak::function_base1<Result, Arg1>* rak::convert_fn(rak::function_base1<SrcResult, SrcArg1>*) [with Result = void, Arg1 = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, SrcResult = void, SrcArg1 = const std::string&]
../../rak/functional_fun.h:370: note:                 rak::function_base1<Result, Arg1>* rak::convert_fn(rak::function_base1<Result, Arg1>*) [with Result = void, Arg1 = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&]
make[3]: *** [download.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/rtorrent-0.5.1/work/rtorrent-0.5.1/src/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/rtorrent-0.5.1/work/rtorrent-0.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/rtorrent-0.5.1/work/rtorrent-0.5.1'
make: *** [all] Error 2

Attachments

convert_fn_fix.diff Download (2.3 KB) - added by rakshasa 6 years ago.
Fix for the error

Change History

Changed 6 years ago by rakshasa

Fix for the error

Changed 6 years ago by rakshasa

  • status changed from new to closed
  • resolution set to fixed

Apply the above patch to fix the problem.

Note: See TracTickets for help on using tickets.