NetBSD Problem Report #53163

From www@NetBSD.org  Fri Apr  6 17:50:39 2018
Return-Path: <www@NetBSD.org>
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 3B1E57A174
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  6 Apr 2018 17:50:39 +0000 (UTC)
Message-Id: <20180406175037.C009C7A21F@mollari.NetBSD.org>
Date: Fri,  6 Apr 2018 17:50:37 +0000 (UTC)
From: scole_mail@gmx.com
Reply-To: scole_mail@gmx.com
To: gnats-bugs@NetBSD.org
Subject: devel/libthrift fails build
X-Send-Pr-Version: www-1.0

>Number:         53163
>Category:       pkg
>Synopsis:       devel/libthrift fails build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 06 17:55:00 +0000 2018
>Last-Modified:  Wed Dec 05 20:05:01 +0000 2018
>Originator:     scole_mail
>Release:        pkgsrc-2018Q1
>Organization:
none
>Environment:
NetBSD dstar 7.1.2 NetBSD 7.1.2 (GENERIC) #0: Mon Mar 19 11:27:01 PDT 2018  scole@dstar:/home/scole/nbsd/cvs/7_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
Fails to compile on my netbsd-7 i386 machine:

libtool: link: c++ -Wall -Wextra -pedantic -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkgsrc/devel/libthrift/work/.buildlink/include -Wl,-rpath -Wl,/usr/pkg/lib -pthread -o .libs/Benchmark Benchmark.o  -L/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp/.libs -L/usr/pkgsrc/devel/libthrift/work/.buildlink/lib ./.libs/libtestgencpp.a -lthrift -lssl -lcrypto -lrt -lpthread -pthread -Wl,-rpath,/usr/pkg/lib
/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::scoped_lock(void const volatile*)'
/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::~scoped_lock()'
Makefile:1114: recipe for target 'Benchmark' failed
gmake[5]: *** [Benchmark] Error 1
gmake[5]: Leaving directory '/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp/test'
Makefile:1006: recipe for target 'all' failed
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory '/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp/test'
Makefile:1658: recipe for target 'all-recursive' failed
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp'
Makefile:577: recipe for target 'all-recursive' failed
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory '/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib'
Makefile:660: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/devel/libthrift/work/thrift-0.11.0'
Makefile:574: recipe for target 'all' failed
>How-To-Repeat:
cd .../pkgsrc/devel/libthrift && bmake
>Fix:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/53163: devel/libthrift fails build
Date: Fri, 6 Apr 2018 22:33:58 +0200

 On Fri, Apr 06, 2018 at 05:55:00PM +0000, scole_mail@gmx.com wrote:
 > /usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::scoped_lock(void const volatile*)'
 > /usr/pkgsrc/devel/libthrift/work/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::~scoped_lock()'

 Which boost version do you have installed?
  Thomas

From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53163: devel/libthrift fails build
Date: Fri, 06 Apr 2018 14:12:13 -0700

 Thomas Klausner <wiz@NetBSD.org> writes:
 >  
 >  Which boost version do you have installed?
 >  
 I think the latest with pkgsrc-2018Q1:

 : pkg_info |grep boost
  boost-jam-1.66.0    Free, peer-reviewed portable C++ source libraries (Boost.Jam utility)
  boost-libs-1.66.0   Free, peer-reviewed portable C++ source libraries (binary libraries)
  boost-headers-1.66.0nb1 Free, peer-reviewed portable C++ source libraries (build-time headers)

From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53163: devel/libthrift fails build
Date: Sat, 07 Apr 2018 13:43:07 -0700

 I'm not sure if this is the correct way, but if I add
 	LDFLAGS+=	-lboost_atomic
 to
 	pkgsrc/devel/libthrift/Makefile
 it seems to finish compiling and installs.

 In the configure script, there are some BOOST_*_LDADD already, but I
 guess I don't understand why boost_atomic is not added already:

   if test "x$succeeded" = "xyes" ; then
     BOOST_LIB_DIR=$PREFIX/lib

     BOOST_CHRONO_LDADD=$(echo "$BOOST_LIB_DIR/libboost_chrono.a")

     BOOST_FILESYSTEM_LDADD=$(echo "$BOOST_LIB_DIR/libboost_filesystem.a")

     BOOST_SYSTEM_LDADD=$(echo "$BOOST_LIB_DIR/libboost_system.a")

     BOOST_TEST_LDADD=$(echo "$BOOST_LIB_DIR/libboost_unit_test_framework.a")

     BOOST_THREAD_LDADD=$(echo "$BOOST_LIB_DIR/libboost_thread.a")

     have_cpp="yes"
   fi

 There are about 35 different libboost_ libs in my pkgsrc now.

From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53163: devel/libthrift fails build
Date: Thu, 29 Nov 2018 13:02:19 -0800

 This is still broken for me on pkgsrc-2018Q3.

From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, 
	scole_mail@gmx.com
Subject: Re: pkg/53163: devel/libthrift fails build
Date: Wed, 5 Dec 2018 10:38:39 +0100

 libthrift built fine for me just now, on pkgsrc-current.
 On Thu, Nov 29, 2018 at 10:05 PM scole_mail <scole_mail@gmx.com> wrote:
 >
 > The following reply was made to PR pkg/53163; it has been noted by GNATS.
 >
 > From: scole_mail <scole_mail@gmx.com>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: pkg/53163: devel/libthrift fails build
 > Date: Thu, 29 Nov 2018 13:02:19 -0800
 >
 >  This is still broken for me on pkgsrc-2018Q3.
 >


 -- 
 Benny

From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53163: devel/libthrift fails build
Date: Wed, 05 Dec 2018 12:01:20 -0800

 Benny Siegert <bsiegert@gmail.com> writes:

 > libthrift built fine for me just now, on pkgsrc-current.

 This still failing for me on i386/8.0/pkgsrc-current with the same
 error.

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.