From owner-freebsd-multimedia@FreeBSD.ORG Fri Jun 22 16:42:20 2007 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C1AD16A526 for ; Fri, 22 Jun 2007 16:42:20 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 4090313C4B8 for ; Fri, 22 Jun 2007 16:42:20 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 94C46EB474D for ; Fri, 22 Jun 2007 19:18:08 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 81B2B2B9A283 for ; Fri, 22 Jun 2007 19:18:08 +0300 (EEST) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C9ifH6c+lInp for ; Fri, 22 Jun 2007 19:18:08 +0300 (EEST) Received: from ace.b020.ceid.upatras.gr (csisgroup20.ceid.upatras.gr [150.140.143.234]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 3C6B62B9A282 for ; Fri, 22 Jun 2007 19:18:08 +0300 (EEST) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 0E2DC3F4A1; Fri, 22 Jun 2007 19:18:09 +0300 (EEST) Date: Fri, 22 Jun 2007 19:18:09 +0300 From: Nikos Ntarmos To: multimedia@freebsd.org Message-ID: <20070622161809.GA27433@ace.b020.ceid.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece WWW-Homepage: http://ntarmos.dyndns.org/ X-PGP-Fingerprint: 9680 60A7 DE60 0298 B1F0 9B22 9BA2 7569 CF95 160A Office-Phone: +30-2610-996919 Office-Fax: +30-2610-969011 GPS-Info: 38.31N, 21.82E User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: [PATCH] Ogle in recent -current X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 16:42:20 -0000 Hi all. Ogle refuses to compile on recent -current (w/ gcc 4.2) due to: ac3dec_wrap.c:51: error: static declaration of 'program_name' follows non-static declaration ../include/debug_print.h:7: error: previous declaration of 'program_name' was here The following simple patch fixes the problem: --- ac3/ac3dec_wrap.c.orig 2007-06-22 18:45:52.000000000 +0300 +++ ac3/ac3dec_wrap.c 2007-06-22 18:43:12.000000000 +0300 @@ -48,7 +48,7 @@ static void handle_events(MsgEventQ_t *q, MsgEvent_t *ev); -static char *program_name; +char *program_name; static FILE *outfile; BTW program_name is declared as 'char *program_name' in all other .c source files where it is referenced. Should I send-pr this or contact ogle-devel? Cheers. \n\n