NetBSD Problem Report #52558

From simonb@thistledown.com.au  Tue Sep 19 10:40:30 2017
Return-Path: <simonb@thistledown.com.au>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D8C727A237
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 19 Sep 2017 10:40:30 +0000 (UTC)
Message-Id: <20170919094258.4F257598A2@thoreau.thistledown.com.au>
Date: Tue, 19 Sep 2017 19:42:58 +1000
From: Simon Burge <simonb@NetBSD.org>
Sender: simonb@thistledown.com.au
To: gnats-bugs@NetBSD.org
Subject: pkgsrc- net/rtorrent fails to build with compile errors
X-Send-Pr-Version: 3.95

>Number:         52558
>Category:       pkg
>Synopsis:       net/rtorrent fails to build with compile errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 19 10:45:00 +0000 2017
>Closed-Date:    Sun Jun 24 17:03:16 +0000 2018
>Last-Modified:  Sun Jun 24 17:03:16 +0000 2018
>Originator:     Simon Burge
>Release:        NetBSD 8.0_BETA (sources from 3 Sep 2017) and pkgsrc-2017Q2
>Organization:
Not really
>Environment:
System: NetBSD athlon.thistledown.com.au 8.0_BETA NetBSD 8.0_BETA (THOREAU) #2: Tue Sep 5 12:00:45 EST 2017 simonb@thoreau.thistledown.com.au:/NetBSD/src8/sys/arch/amd64/compile/THOREAU amd64
Architecture: x86_64
Machine: amd64
>Description:
	Trying to build net/rtorrent, the build fails with some type
	conversion errors.

	libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/home/simonb/netbsd/obj/pkg/net/libtorrent/work.athlon/.buildlink/include -pthread -O2 -fpermissive -fno-strength-reduce -fno-thread-jumps -fno-inline -fforce-addr -DNDEBUG -fvisibility=hidden -MT poll_kqueue.lo -MD -MP -MF .deps/poll_kqueue.Tpo -c poll_kqueue.cc  -fPIC -DPIC -o .libs/poll_kqueue.o
	In file included from /usr/include/errno.h:42:0,
			 from /usr/include/g++/cerrno:41,
			 from poll_kqueue.cc:39:
	poll_kqueue.cc: In member function 'void torrent::PollKQueue::modify(torrent::Event*, short unsigned int, short int)':
	poll_kqueue.cc:114:3: error: invalid static_cast from type 'torrent::Event*' to type '__intptr_t {aka long int}'
	   EV_SET(itr, event->file_descriptor(), mask, op, 0, 0, event);
	   ^
	poll_kqueue.cc: In member function 'virtual void torrent::PollKQueue::close(torrent::Event*)':
	poll_kqueue.cc:312:23: warning: ISO C++ forbids comparison between pointer and integer [-fpermissive]
	     if (itr->udata == event)
			       ^
	poll_kqueue.cc:313:18: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
	       itr->udata = NULL;
			  ^
	poll_kqueue.cc: In member function 'virtual void torrent::PollKQueue::closed(torrent::Event*)':
	poll_kqueue.cc:338:23: warning: ISO C++ forbids comparison between pointer and integer [-fpermissive]
	     if (itr->udata == event)
			       ^
	poll_kqueue.cc:339:18: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
	       itr->udata = NULL;
			  ^
	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, long 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

>How-To-Repeat:
	cd ..../pkgsrc/net/rtorrent && make
>Fix:
	None given.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: adam@NetBSD.org
State-Changed-When: Sun, 24 Jun 2018 17:03:16 +0000
State-Changed-Why:
This should be fixed with libtorrent 0.13.7.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.