From nobody@FreeBSD.org  Mon Jan 20 16:11:34 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 489B2CB1
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Jan 2014 16:11:34 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 34E741F46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Jan 2014 16:11:34 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0KGBXnq074578
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Jan 2014 16:11:33 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0KGBXZI074572;
	Mon, 20 Jan 2014 16:11:33 GMT
	(envelope-from nobody)
Message-Id: <201401201611.s0KGBXZI074572@oldred.freebsd.org>
Date: Mon, 20 Jan 2014 16:11:33 GMT
From: Hrant Dadivanyan <ran@psg.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysutils/boxbackup fails to build on FreeBSD 10
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: james@netinertia.co.uk

>Number:         185931
>Category:       ports
>Synopsis:       sysutils/boxbackup fails to build on FreeBSD 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 20 16:20:00 UTC 2014
>Closed-Date:    Tue Jan 21 15:13:15 UTC 2014
>Last-Modified:  Tue Jan 21 15:13:15 UTC 2014
>Originator:     Hrant Dadivanyan
>Release:        10.0-RC5 amd64
>Organization:
>Environment:
FreeBSD pandora.amnic.net 10.0-RC5 FreeBSD 10.0-RC5 #0: Tue Jan 14 17:23:44 AMT 2014     ran@pandora.amnic.net:/usr/obj/usr/src/sys/PANDORA  amd64
>Description:
sysutils/boxbackup fails to build on FreeBSD 10:

./../release/lib/common/common.a(Utils.o): In function `DumpStackBacktrace()':
Utils.cpp:(.text+0x1c4): undefined reference to `backtrace'
Utils.cpp:(.text+0x1d6): undefined reference to `backtrace_symbols'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/sysutils/boxbackup/work/boxbackup-0.11.1/bin/bbackupd

>How-To-Repeat:
cd /usr/ports/sysutils/boxbackup && make
>Fix:
Attached patch works for me. It checks for existence of libexecinfo then adds -lexecinfo .

Patch attached with submission follows:

*** configure.ac.orig	Sun Jan  9 00:58:04 2011
--- configure.ac	Sun Jan 19 21:12:23 2014
***************
*** 127,132 ****
--- 127,134 ----
  AC_CHECK_HEADERS([sys/uio.h sys/xattr.h])
  AC_CHECK_HEADERS([bsd/unistd.h])
  
+ AC_CHECK_LIB([execinfo],[backtrace])
+ 
  AC_CHECK_HEADER([regex.h], [have_regex_h=yes])
  
  if test "$have_regex_h" = "yes"; then


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Jan 20 16:20:08 UTC 2014 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185931 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: james@netinertia.co.uk
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/185931: sysutils/boxbackup fails to build on FreeBSD 10
Date: Mon, 20 Jan 2014 16:20:07 UT

 Maintainer of sysutils/boxbackup,
 
 Please note that PR ports/185931 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/185931
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: James O'Gorman <james@netinertia.co.uk>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185931: sysutils/boxbackup fails to build on FreeBSD 10
Date: Mon, 20 Jan 2014 20:40:51 +0000

 Thanks for the patch. I've already raised this issue with the project's
 lead developer who has a fix in the next version - I'm just waiting for
 him to release it so I can update the port.
 
 I would suggest that this PR be closed as the patch should be applied
 upstream, not in the port.
 
 James
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Jan 21 15:12:56 UTC 2014 
State-Changed-Why:  
maintainer is working with upstream on a fix for the next release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185931 
>Unformatted:
