pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: net/rtorrent default option xmlrpc option fails



I tried to build rtorrent as well under -current, it turned out I can't compile libtorrent:
....
In file included from poll_kqueue.cc:50:0:
../../rak/functional.h: In instantiation of 'bool rak::equal_t<Type, Ftor>::operator()(Arg&) [with Arg = kevent; Type = torrent::Event*; Ftor = rak::mem_ref_t<kevent, long int>]':
/usr/include/g++/bits/predefined_ops.h:234:30:   required from 'bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = kevent*; _Predicate = rak::equal_t<torrent::Event*, rak::mem_ref_t<kevent, long int> >]'
/usr/include/g++/bits/stl_algo.h:866:20:   required from '_ForwardIterator std::__remove_if(_ForwardIterator, _ForwardIterator, _Predicate) [with _ForwardIterator = kevent*; _Predicate = __gnu_cxx::__ops::_Iter_pred<rak::equal_t<torrent::Event*, rak::mem_ref_t<kevent, l
ong int> > >]'
/usr/include/g++/bits/stl_algo.h:936:30:   required from '_FIter std::remove_if(_FIter, _FIter, _Predicate) [with _FIter = kevent*; _Predicate = rak::equal_t<torrent::Event*, rak::mem_ref_t<kevent, long int> >]'
poll_kqueue.cc:316:83:   required from here
../../rak/functional.h:97:16: warning: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     return m_t == m_f(a);
                ^
Makefile:584: recipe for target 'poll_kqueue.lo' failed
gmake[4]: *** [poll_kqueue.lo] Error 1
gmake[4]: Leaving directory '/usr/pkgsrc/net/libtorrent/work/libtorrent-0.13.6/src/torrent'
Makefile:624: recipe for target 'all-recursive' failed
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/net/libtorrent/work/libtorrent-0.13.6/src/torrent'
Makefile:562: recipe for target 'all-recursive' failed
....

No idea about this. 

Chavdar Ivanov 

On Sat, 7 Oct 2017 at 23:31 Rhialto <rhialto%falu.nl@localhost> wrote:
On Sat 07 Oct 2017 at 23:46:38 +0200, Thomas Klausner wrote:
> Works for me. Perhaps it needs a newer libtorrent than you have installed?

Interesting. I forcibly remade libtorrent and it didn't help.
It also wasn't my added
CONFIGURE_ARGS+=        --enable-ipv6

I'm checking why the xmlrpc option didn't work for me in the first
place, and there I see to my surprise the same error in config.log:

configure:18003: checking for XMLRPC-C
configure:18037: c++ -o conftest -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/include/krb5 -I/usr/pkg/include/ncurses -g -DDEBUG  -pthread   -I/usr/pkg/include  -I/usr/pkg/include  -I/usr/pkg/include  -I/usr/include -I/usr/pkg/include -I/usr/include/krb5 -I/usr/pkg/include/ncurses -pthread -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.cpp  -lncurses  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lcurl  -L/usr/pkg/lib -ltorrent  -L/usr/pkg/lib  -Wl,-rpath,/usr/pkg/lib  -lxmlrpc_server -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok  >&5
/pkg_comp/obj/pkgsrc/net/rtorrent/default/.buildlink/lib/libtorrent.so: undefined reference to `torrent::request_list_constants::bucket_count'
configure:18037: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "rtorrent"
| #define PACKAGE_TARNAME "rtorrent"
| #define PACKAGE_VERSION "0.9.6"
| #define PACKAGE_STRING "rtorrent 0.9.6"
| #define PACKAGE_BUGREPORT "sundell.software%gmail.com@localhost"
| #define PACKAGE_URL ""
| #define API_VERSION 9
| #define PACKAGE "rtorrent"
| #define VERSION "0.9.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_TR1 1
| #define HAVE_CXX11 1
| #define RAK_USE_INET6 1
| #define USE_VARIABLE_FDSET 1
| #define HAVE_SYS_STATVFS_H 1
| #define FS_STAT_FD fstatvfs(fd, &m_stat) == 0
| #define FS_STAT_FN statvfs(fn, &m_stat) == 0
| #define FS_STAT_STRUCT struct statvfs
| #define FS_STAT_SIZE_TYPE unsigned long
| #define FS_STAT_COUNT_TYPE fsblkcnt_t
| #define FS_STAT_BLOCK_SIZE (m_stat.f_frsize)
| #define HAVE_PTHREAD 1
| #define HAVE_NCURSES 1
| #define HAVE_CURSES 1
| #define HAVE_CURSES_COLOR 1
| #define HAVE_CURSES_OBSOLETE 1
| #define HAVE_NCURSES_CURSES_H 1
| #define HAVE_CURSES_COLOR 1
| #define HAVE_CURSES_OBSOLETE 1
| #define HAVE_NCURSES_H 1
| /* end confdefs.h.  */
|  #include <xmlrpc-c/server.h>
|
| int
| main ()
| {
|  xmlrpc_registry_new(NULL);
|   ;
|   return 0;
| }
configure:18044: result: failed
configure:18046: error: Could not compile XMLRPC-C test.

I'll have to look later at this.

>  Thomas
-Olaf.
--
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.


Home | Main Index | Thread Index | Old Index