Bug 247579 - net/xorp: compilation error: reference to 'thread' is ambiguous
Summary: net/xorp: compilation error: reference to 'thread' is ambiguous
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-27 09:43 UTC by O. Hartmann
Modified: 2020-06-27 09:43 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (hrs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2020-06-27 09:43:53 UTC
On 12-STABLE and CURRENT jails in poudriere (poudriere hosted by recent CURRENT), port fails with compilation error as shown below.

[...]

=>> Building net/xorp
build started at Sat Jun 27 06:22:53 UTC 2020
port directory: /usr/ports/net/xorp
package name: xorp-1.8.5_14
building for: FreeBSD freebsd.gdr 12.1-STABLE FreeBSD 12.1-STABLE 1201518 amd64
maintained by: hrs@FreeBSD.org
Makefile ident:      $FreeBSD: head/net/xorp/Makefile 536497 2020-05-25 18:33:17Z sunpoet $
Poudriere version: 3.3.4
Host OSVERSION: 1300100
Jail OSVERSION: 1201518
Job Id: 04

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1201518
UNAME_v=FreeBSD 12.1-STABLE 1201518
UNAME_r=12.1-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.4
MAKEOBJDIRPREFIX=/pool/sources/12-STABLE/obj/
MASTERMNT=/pool/poudriere/data/.m/12-amd64-head-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
PWD=/pool/poudriere/data/.m/12-amd64-head-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=12-amd64-head-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/pool/poudriere/data/.m/12-amd64-head-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for xorp-1.8.5_14:
     OPTIMIZE=on: Build with optimization
     ORIGIN=on: Use ORIGIN with shared libraries
     SHARED=on: Build with shared libraries
     STRIP=on: Strip binaries before installation
     TCP_RPC=off: Use TCP as RPC transport (defaults to AF_LOCAL)
===> Use 'make config' to modify these settings
---End OPTIONS List---

[...]

c++ -o obj/x86_64-unknown-freebsd12.1/xrl/interfaces/libxif_rip.so -Wl,-z,origin -fstack-protector-strong -rdynamic -shared obj/x86_64-unknown-freebsd12.1/xrl/interfaces/rip_xif.os -Lobj/x86_64-unknown-freebsd12.1/xrl/interfaces/usr/lib -Lxrl/interfaces/usr/lib -L/usr/local/lib -Lobj/x86_64-unknown-freebsd12.1/libxipc -Llibxipc -Lobj/x86_64-unknown-freebsd12.1/libcomm -Llibcomm -Lobj/x86_64-unknown-freebsd12.1/libxorp -Llibxorp -lxorp_ipc -lxorp_comm -lxorp_core
c++ -o obj/x86_64-unknown-freebsd12.1/fea/data_plane/ifconfig/ifconfig_observer_iphelper.os -c -pipe -fstack-protector-strong -fno-strict-aliasing -O3 -g3 -W -Wall -Wwrite-strings -Wno-cast-qual -Wno-sign-compare -Wpointer-arith -Woverloaded-virtual -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.5 -DBOOST_DISABLE_THREADS -I/usr/local/include -Iobj/x86_64-unknown-freebsd12.1 -I. -I. fea/data_plane/ifconfig/ifconfig_observer_iphelper.cc
Symlink("/wrkdirs/usr/ports/net/xorp/work/xorp.ct-xorp-1.8.5/xorp/obj/x86_64-unknown-freebsd12.1/xrl/interfaces/libxif_rip.so", as "/wrkdirs/usr/ports/net/xorp/work/xorp.ct-xorp-1.8.5/xorp/obj/x86_64-unknown-freebsd12.1/lib/libxif_rip.so")
c++ -o obj/x86_64-unknown-freebsd12.1/fea/data_plane/ifconfig/ifconfig_observer_netlink_socket.os -c -pipe -fstack-protector-strong -fno-strict-aliasing -O3 -g3 -W -Wall -Wwrite-strings -Wno-cast-qual -Wno-sign-compare -Wpointer-arith -Woverloaded-virtual -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.5 -DBOOST_DISABLE_THREADS -I/usr/local/include -Iobj/x86_64-unknown-freebsd12.1 -I. -I. fea/data_plane/ifconfig/ifconfig_observer_netlink_socket.cc
c++ -o obj/x86_64-unknown-freebsd12.1/fea/data_plane/ifconfig/ifconfig_observer_routing_socket.os -c -pipe -fstack-protector-strong -fno-strict-aliasing -O3 -g3 -W -Wall -Wwrite-strings -Wno-cast-qual -Wno-sign-compare -Wpointer-arith -Woverloaded-virtual -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.5 -DBOOST_DISABLE_THREADS -I/usr/local/include -Iobj/x86_64-unknown-freebsd12.1 -I. -I. fea/data_plane/ifconfig/ifconfig_observer_routing_socket.cc
In file included from fea/data_plane/ifconfig/ifconfig_get_sysctl.cc:35:
In file included from /usr/include/net/if_var.h:83:
/usr/include/sys/lock.h:68:15: error: reference to 'thread' is ambiguous
                            struct thread **owner);
                                   ^
/usr/include/sys/lock.h:42:8: note: candidate found by name lookup is 'thread'
struct thread;
       ^
/usr/include/c++/v1/__threading_support:605:24: note: candidate found by name lookup is 'std::__1::thread'
class _LIBCPP_TYPE_VIS thread;