From nobody@FreeBSD.org  Fri Sep 10 07:28:12 2010
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 745631065672
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Sep 2010 07:28:12 +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 644968FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Sep 2010 07:28:12 +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 o8A7SCb1021895
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Sep 2010 07:28:12 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o8A7SBIp021894;
	Fri, 10 Sep 2010 07:28:11 GMT
	(envelope-from nobody)
Message-Id: <201009100728.o8A7SBIp021894@www.freebsd.org>
Date: Fri, 10 Sep 2010 07:28:11 GMT
From: Andrei Kolu <antik@bsd.ee>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net/asterisk16 port failed to compile
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150467
>Category:       ports
>Synopsis:       net/asterisk16 port failed to compile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 10 07:30:11 UTC 2010
>Closed-Date:    Wed Sep 29 15:38:11 UTC 2010
>Last-Modified:  Wed Sep 29 15:38:11 UTC 2010
>Originator:     Andrei Kolu
>Release:        8.1-STABLE-201008
>Organization:
>Environment:
FreeBSD freebsd81.raidon.eu 8.1-STABLE-201008 FreeBSD 8.1-STABLE-201008 #0: Mon Aug  2 20:04:38 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
cdr_sqlite3_custom.c:230: error: conflicting types for 'sqlite3_log'
/usr/local/include/sqlite3.h:5866: error: previous declaration of 'sqlite3_log' was here
gmake[1]: *** [cdr_sqlite3_custom.o] Error 1
gmake[1]: Leaving directory `/usr/ports/net/asterisk16/work/asterisk-1.6.0.21/cdr'
gmake: *** [cdr] Error 2
*** Error code 1

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

Stop in /usr/ports/net/asterisk16.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20100910-64805-1ra73x1-0 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! net/asterisk16        (compiler error)
>How-To-Repeat:
just make install or portinstall asterisk16
>Fix:
Changed sqlite3_log() to write_cdr() in cdr/cdr_sqlite3_custom.c.

Patch attached with submission follows:

*** cdr/cdr_sqlite3_custom.c.orig	Fri Sep 10 09:51:30 2010
--- cdr/cdr_sqlite3_custom.c	Fri Sep 10 09:32:11 2010
***************
*** 226,232 ****
  		ast_free(value);
  }
  
! static int sqlite3_log(struct ast_cdr *cdr)
  {
  	int res = 0;
  	char *error = NULL;
--- 226,232 ----
  		ast_free(value);
  }
  
! static int write_cdr(struct ast_cdr *cdr)
  {
  	int res = 0;
  	char *error = NULL;
***************
*** 329,335 ****
  		}
  	}
  
! 	res = ast_cdr_register(name, desc, sqlite3_log);
  	if (res) {
  		ast_log(LOG_ERROR, "Unable to register custom SQLite3 CDR handling\n");
  		free_config(0);
--- 329,335 ----
  		}
  	}
  
! 	res = ast_cdr_register(name, desc, write_cdr);
  	if (res) {
  		ast_log(LOG_ERROR, "Unable to register custom SQLite3 CDR handling\n");
  		free_config(0);


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sat Sep 11 08:54:03 UTC 2010 
Responsible-Changed-Why:  
Ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150467 
Responsible-Changed-From-To: freebsd-ports-bugs->sobomax 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Sep 13 06:48:50 UTC 2010 
Responsible-Changed-Why:  
Assign. 

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

From: Florian Smeets <flo@kasimir.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/150467: net/asterisk16 port failed to compile
Date: Fri, 17 Sep 2010 09:12:48 +0200

 On 13.09.10 08:49, linimon@FreeBSD.org wrote:
 > Synopsis: net/asterisk16 port failed to compile
 >
 > Responsible-Changed-From-To: freebsd-ports-bugs->sobomax
 > Responsible-Changed-By: linimon
 > Responsible-Changed-When: Mon Sep 13 06:48:50 UTC 2010
 > Responsible-Changed-Why:
 > Assign.
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=150467
 
 Hi,
 
 this is a duplicate of PR: ports/148630
 
 Cheers,
 Florian
 _______________________________________________
 freebsd-ports-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
 To unsubscribe, send any mail to 
 "freebsd-ports-bugs-unsubscribe@freebsd.org"
Class-Changed-From-To: sw-bug->sw-bug 
Class-Changed-By: linimon 
Class-Changed-When: Fri Sep 17 08:35:38 UTC 2010 
Class-Changed-Why:  
Maintainer was reset; new maintainer notes this is a duplicate of 
ports/148630. 


Responsible-Changed-From-To: sobomax->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Sep 17 08:35:38 UTC 2010 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=150467 
State-Changed-From-To: open->closed 
State-Changed-By: tota 
State-Changed-When: Wed Sep 29 15:33:11 UTC 2010 
State-Changed-Why:  
It become useless because ports/146964 has been committed. 

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