From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 20 17:10:06 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6571716A408 for ; Tue, 20 Mar 2007 17:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4692413C469 for ; Tue, 20 Mar 2007 17:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2KHA63Q023113 for ; Tue, 20 Mar 2007 17:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2KHA6PY023110; Tue, 20 Mar 2007 17:10:06 GMT (envelope-from gnats) Resent-Date: Tue, 20 Mar 2007 17:10:06 GMT Resent-Message-Id: <200703201710.l2KHA6PY023110@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jonathan Stewart Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7958016A400 for ; Tue, 20 Mar 2007 17:04:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 51B4713C448 for ; Tue, 20 Mar 2007 17:04:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2KH4675081939 for ; Tue, 20 Mar 2007 17:04:06 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l2KGx5tr078868; Tue, 20 Mar 2007 16:59:05 GMT (envelope-from nobody) Message-Id: <200703201659.l2KGx5tr078868@www.freebsd.org> Date: Tue, 20 Mar 2007 16:59:05 GMT From: Jonathan Stewart To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/110590: archivers/par2cmdline gcc4 patches X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2007 17:10:06 -0000 >Number: 110590 >Category: ports >Synopsis: archivers/par2cmdline gcc4 patches >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Mar 20 17:10:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jonathan Stewart >Release: 6-Stable >Organization: >Environment: N/A >Description: Email to maintainer (me)... "As you may know, in the near future FreeBSD 7.x will be switching from the gcc 3.4 compiler to gcc 4.x. Unfortunately your port fails to build with the new compiler; see the log below." >How-To-Repeat: Build the port with gcc4+ >Fix: The diff below as well as the attached patch file cleans up the warnings and fixes gcc4 compile errors. --- Makefile.old Sun Jan 28 13:54:37 2007 +++ Makefile Tue Mar 20 12:51:07 2007 @@ -25,6 +25,8 @@ post-patch: @${REINPLACE_CMD} -e 's| -lstdc++||g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|#define PACKED __attribute__ ((packed))|#define PACKED|' ${WRKSRC}/par1fileformat.h + @${REINPLACE_CMD} -e 's|#define PACKED __attribute__ ((packed))|#define PACKED|' ${WRKSRC}/par2fileformat.h post-install: .if !defined(NOPORTDOCS) Patch attached with submission follows: --- reedsolomon.cpp.old Sun Jan 28 15:56:12 2007 +++ reedsolomon.cpp Sun Jan 28 15:58:17 2007 @@ -51,7 +51,7 @@ } } -bool ReedSolomon::SetInput(const vector &present) +template<> bool ReedSolomon::SetInput(const vector &present) { inputcount = (u32)present.size(); @@ -80,7 +80,7 @@ return true; } -bool ReedSolomon::SetInput(u32 count) +template<> bool ReedSolomon::SetInput(u32 count) { inputcount = count; @@ -101,7 +101,7 @@ return true; } -bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) +template<> bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) { // Look up the appropriate element in the RS matrix Galois8 factor = leftmatrix[outputindex * (datapresent + datamissing) + inputindex]; @@ -189,7 +189,7 @@ // Set which of the source files are present and which are missing // and compute the base values to use for the vandermonde matrix. -bool ReedSolomon::SetInput(const vector &present) +template<> bool ReedSolomon::SetInput(const vector &present) { inputcount = (u32)present.size(); @@ -233,7 +233,7 @@ // Record that the specified number of source files are all present // and compute the base values to use for the vandermonde matrix. -bool ReedSolomon::SetInput(u32 count) +template<> bool ReedSolomon::SetInput(u32 count) { inputcount = count; @@ -267,7 +267,7 @@ return true; } -bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) +template<> bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) { // Look up the appropriate element in the RS matrix >Release-Note: >Audit-Trail: >Unformatted: