From nobody@FreeBSD.org  Mon Oct 19 21:23:59 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A7C2F106568D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Oct 2009 21:23:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7D6628FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Oct 2009 21:23:59 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9JLNwSH063322
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Oct 2009 21:23:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n9JLNw7t063305;
	Mon, 19 Oct 2009 21:23:58 GMT
	(envelope-from nobody)
Message-Id: <200910192123.n9JLNw7t063305@www.freebsd.org>
Date: Mon, 19 Oct 2009 21:23:58 GMT
From: "Alexander V. Chernikov" <melifaro@ipfw.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] net/asterisk16 does not build with devel/libexecinfo installed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139776
>Category:       ports
>Synopsis:       [patch] net/asterisk16 does not build with devel/libexecinfo installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sobomax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 19 21:30:00 UTC 2009
>Closed-Date:    Fri Nov 20 23:45:52 UTC 2009
>Last-Modified:  Fri Nov 20 23:50:02 UTC 2009
>Originator:     Alexander V. Chernikov
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD ws.ipfw.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat Oct 10 13:46:00 MSD 2009     root@ws.ipfw.ru:/var/ports_tmp/usj/obj/usr/src/sys/WS  amd64
>Description:
gmake[2]: Leaving directory `/usr/ports/net/asterisk16/work/asterisk-1.6.0.15/main/editline'
cc  -o asterisk -Wl,--export-dynamic   abstract_jb.o acl.o adsistub.o aescrypt.o aeskey.o aestab.o alaw.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o fskmodem.o global_datastores.o hashtab.o http.o image.o indications.o io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o poll.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o tcptls.o tdd.o term.o threadstorage.o translate.o udptl.o ulaw.o utils.o version.o editline/libedit.a buildinfo.o -lssl -lcrypto -lexecinfo  -ltermcap  -lm -pthread -lcrypto
/usr/bin/ld: cannot find -lexecinfo
gmake[1]: *** [asterisk] Error 1
gmake[1]: Leaving directory `/usr/ports/net/asterisk16/work/asterisk-1.6.0.15/main'
gmake: *** [main] Error 2
*** Error code 1

Stop in /usr/ports/net/asterisk16.
*** Error code 1

>How-To-Repeat:
make -C /usr/ports/devel/libexecinfo clean install clean ; make -C /usr/ports/net/asterisk16 clean install

>Fix:
Apply an attached patch

Patch attached with submission follows:

--- Makefile.orig	2009-10-20 00:57:44.000000000 +0400
+++ Makefile	2009-10-20 01:22:04.000000000 +0400
@@ -53,6 +53,7 @@
 		GSM		"Enable GSM codec" on \
 		CURL		"Enable CURL support" on \
 		ILBC		"Enable iLBC codec" off \
+		BACKTRACE	"Enable backtrace support" off
 #		CODEC_PATCH	"Apply codec negotiation patch" off \
 #		MISC_PATCHES	"Apply additional patches" off
 
@@ -75,6 +76,13 @@
 		h323_r.1:${PORTSDIR}/net/openh323
 .endif
 
+.if defined(WITH_BACKTRACE)
+CONFIGURE_ARGS+= --with-execinfo=${LOCALBASE}
+LIB_DEPENDS+=	execinfo.1:${PORTSDIR}/devel/libexecinfo
+.else
+CONFIGURE_ARGS+= --without-execinfo
+.endif
+
 .if !defined(WITH_ZAPTEL)
 PLIST_SUB+=	WITH_ZAPTEL="@comment "
 CONFIGURE_ARGS+= --without-zaptel


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sobomax 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Oct 19 21:30:11 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139776 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Fri Nov 20 23:45:33 UTC 2009 
State-Changed-Why:  
Fixed in 1.6.0.18 version of the port. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/139776: commit references a PR
Date: Fri, 20 Nov 2009 23:43:19 +0000 (UTC)

 sobomax     2009-11-20 23:43:09 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/asterisk16       Makefile distinfo pkg-plist 
     net/asterisk16/files nocodecnego-patch-Makefile 
                          patch-main::Makefile 
   Log:
   o Update to 1.6.0.18.
   
   o comment section that explicitly includes bsd.port.options.mk, we don't
   need this functionality now, while it creates issues with Makefile.local
   
   PR:     135332
   Reported by:    Piotr Grabowski
   
   o add libexecinfo into the LIB_DEPENDS and fix linking with it.
   
   PR:     139776
   Submitted by:   Alexander V. Chernikov
   
   o add spandsp support (optional, turned off by default).
   
   PR:     133843
   Submitted by:   Alexander V. Chernikov
   
   Revision  Changes    Path
   1.125     +20 -7     ports/net/asterisk16/Makefile
   1.48      +3 -3      ports/net/asterisk16/distinfo
   1.11      +14 -19    ports/net/asterisk16/files/nocodecnego-patch-Makefile
   1.8       +9 -1      ports/net/asterisk16/files/patch-main::Makefile
   1.42      +12 -12    ports/net/asterisk16/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
