From owner-freebsd-ports Sat Sep 7 6:10:21 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0810F37B401 for ; Sat, 7 Sep 2002 06:10:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51AAF43E42 for ; Sat, 7 Sep 2002 06:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g87DA3JU094566 for ; Sat, 7 Sep 2002 06:10:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g87DA33o094565; Sat, 7 Sep 2002 06:10:03 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 710A837B400 for ; Sat, 7 Sep 2002 06:08:35 -0700 (PDT) Received: from thufir.bluecom.no (thufir.bluecom.no [217.118.32.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 416CB43E3B for ; Sat, 7 Sep 2002 06:08:34 -0700 (PDT) (envelope-from eirik@eirikn.net) Received: from eirikn.net (a217-118-45-95.bluecom.no [217.118.45.95]) by thufir.bluecom.no (8.11.5/8.11.5) with ESMTP id g87D8F803351 for ; Sat, 7 Sep 2002 15:08:16 +0200 Received: by eirikn.net (Postfix, from userid 1001) id A58A2704; Sat, 7 Sep 2002 15:08:23 +0200 (CEST) Message-Id: <20020907130823.A58A2704@eirikn.net> Date: Sat, 7 Sep 2002 15:08:23 +0200 (CEST) From: Eirik Nygaard Reply-To: Eirik Nygaard To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42504: Would not compile with gcc 3.2 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42504 >Category: ports >Synopsis: Would not compile with gcc 3.2 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 07 06:10:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Eirik Nygaard >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD eirikn.net 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Wed Sep 4 16:43:37 CEST 2002 eirik@eirikn.net:/usr/obj/usr/src/sys/ITvision i386 >Description: sysutils/logmon/ would not compile with gcc 3.2. The problem is listed on the list that Kris Kennaway made, http://bento.freebsd.org/errorlogs/5-latest/. >How-To-Repeat: Compileing sysutiles/logmon on FreeBSD 5.0 with gcc 3.2 >Fix: I have attached a patch. --- logmon-07.09.02.diff begins here --- diff -crN ./files/patch-aa /usr/home/eirik/src/fbsd/ports/logmon/files/patch-aa *** ./files/patch-aa Thu Jan 1 01:00:00 1970 --- /usr/home/eirik/src/fbsd/ports/logmon/files/patch-aa Sat Sep 7 13:41:46 2002 *************** *** 0 **** --- 1,79 ---- + diff -ruN ./Frame.cc ../LogMon-0.4.1.fix/Frame.cc + --- ./Frame.cc Thu Jan 10 22:16:39 2002 + +++ ../LogMon-0.4.1.fix/Frame.cc Sat Sep 7 13:23:30 2002 + @@ -73,7 +73,7 @@ + } + + // Take a parameter to determine how far back to read. + -long Frame::findPos(long maxLines=0) + +long Frame::findPos(long maxLines) + { + long i=-1; + long cr_count=0; + @@ -214,7 +214,7 @@ + scrollBackOffset = s; + return s; + } + -long Frame::incrScrollBack(long s = 1) + +long Frame::incrScrollBack(long s) + { + // Only scroll up if it's not beyond our starting point. + if ( scrollBackOffset + s < (signed)(Screen.size() - (lines-1)) ) + @@ -222,7 +222,7 @@ + return scrollBackOffset; + } + + -long Frame::decrScrollBack( long s = 1) + +long Frame::decrScrollBack( long s ) + { + // Don't scroll past our starting point. + // scrollBackOffset min is 0. + @@ -245,13 +245,13 @@ + scrollRightOffset = s; + return s; + } + -long Frame::incrScrollRight(long s = 1) + +long Frame::incrScrollRight(long s ) + { + scrollRightOffset +=s; + return scrollRightOffset; + } + + -long Frame::decrScrollRight(long s = 1) + +long Frame::decrScrollRight(long s ) + { + // Don't scroll past our starting point. + if ( scrollRightOffset > 0 ) + diff -ruN ./LineManip.cc ../LogMon-0.4.1.fix/LineManip.cc + --- ./LineManip.cc Fri Jan 25 20:43:07 2002 + +++ ../LogMon-0.4.1.fix/LineManip.cc Sat Sep 7 13:24:08 2002 + @@ -175,7 +175,7 @@ + // Scan our config file for lines pertaining to our filename. + // i.e. If there are 'ignore' lines for our filename, we add them + // to an array. + -void LineManip::init(char* fileName, string config="") + +void LineManip::init(char* fileName, string config) + { + FILE *cf; + string confFile; + diff -ruN ./Util.cc ../LogMon-0.4.1.fix/Util.cc + --- ./Util.cc Sun Jul 22 03:37:16 2001 + +++ ../LogMon-0.4.1.fix/Util.cc Sat Sep 7 13:23:52 2002 + @@ -8,7 +8,7 @@ + extern FILE*ferr; + #endif + + -void clean_exit(int x=0, char *e="" ) + +void clean_exit(int x, char *e ) + { + printf("%s\n",e); + #ifdef __DEBUG__ + @@ -19,7 +19,7 @@ + exit(x); + } + + -void sig_int(int x=0) + +void sig_int(int x) + { + printf("Recieved signal SIGINT, exiting (%d)",x); + clean_exit(x); --- logmon-07.09.02.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message