Bug 222190

Summary: games/pokerth: fails to build with boost 1.65 on i386
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Guido Falsi <madpilot>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-patch
Priority: --- Flags: madpilot: maintainer-feedback+
Version: Latest   
Hardware: i386   
OS: Any   
Bug Depends on:    
Bug Blocks: 220714    

Description Jan Beich freebsd_committer freebsd_triage 2017-09-10 12:26:26 UTC
src/gui/qt/gametable/gametableimpl.cpp:3862:3: error: call to 'advance' is ambiguous
                advance(pos, id);
                ^~~~~~~
/usr/include/c++/v1/iterator:483:6: note: candidate function [with _InputIter = std::__1::__list_iterator<boost::shared_ptr<PlayerInterface>, void *>]
void advance(_InputIter& __i,
     ^
/usr/local/include/boost/iterator/advance.hpp:68:9: note: candidate function [with InputIterator = std::__1::__list_iterator<boost::shared_ptr<PlayerInterface>, void *>, Distance = int]
        advance(InputIterator& it, Distance n)
        ^

http://package18.nyi.freebsd.org/data/103i386-default-PR220714/2017-09-10_08h14m47s/logs/errors/pokerth-1.1.1_15.log
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2017-09-11 10:21:35 UTC
Not being a C++ expert I'm not sure what is the right solution.

is is an int, not what is expected by base iterator interface, so it should choose the boost version of the fuinction.

Maybe an explicit cast to int would fix the ambiguity.

I'll send a patch for the port for you to test. Just give me a little time.
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-09-18 14:04:13 UTC
A commit references this bug:

Author: madpilot
Date: Mon Sep 18 14:04:06 UTC 2017
New revision: 450041
URL: https://svnweb.freebsd.org/changeset/ports/450041

Log:
  - Fix build failure with new boot version 1.65
  - While here, regenerate some patches

  PR:		222190
  Submitted by:	jbeich@

Changes:
  head/games/pokerth/files/patch-pokerth_game.pro
  head/games/pokerth/files/patch-pokerth_server.pro
  head/games/pokerth/files/patch-src_engine_log.h
  head/games/pokerth/files/patch-src_gui_qt_gametable_gametableimpl.cpp
  head/games/pokerth/files/patch-src_net_common_ircthread.cpp
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2017-09-18 14:04:48 UTC
Committed a fox, tested on my own poudriere machine with new boost.

Thanks for reporting.