From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 10 07:30:12 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16D6B106566C for ; Fri, 10 Sep 2010 07:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CEBDD8FC0C for ; Fri, 10 Sep 2010 07:30:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8A7UBca008598 for ; Fri, 10 Sep 2010 07:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8A7UBEH008595; Fri, 10 Sep 2010 07:30:11 GMT (envelope-from gnats) Resent-Date: Fri, 10 Sep 2010 07:30:11 GMT Resent-Message-Id: <201009100730.o8A7UBEH008595@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrei Kolu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 745631065672 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/150467: net/asterisk16 port failed to compile X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 07:30:12 -0000 >Number: 150467 >Category: misc >Synopsis: net/asterisk16 port failed to compile >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 10 07:30:11 UTC 2010 >Closed-Date: >Last-Modified: >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: >Unformatted: