From owner-freebsd-ports-bugs Thu Feb 20 14:20:15 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CFC737B401 for ; Thu, 20 Feb 2003 14:20:13 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CAAB43F85 for ; Thu, 20 Feb 2003 14:20:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1KMKBNS044403 for ; Thu, 20 Feb 2003 14:20:11 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1KMKBV7044402; Thu, 20 Feb 2003 14:20:11 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFD0337B401 for ; Thu, 20 Feb 2003 14:12:28 -0800 (PST) Received: from cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id A26DE43FAF for ; Thu, 20 Feb 2003 14:12:26 -0800 (PST) (envelope-from root@cultdeadsheep.org) Received: (qmail 8046 invoked by uid 0); 20 Feb 2003 22:12:24 -0000 Message-Id: <20030220221224.8045.qmail@cultdeadsheep.org> Date: 20 Feb 2003 22:12:24 -0000 From: Clement Laforet Reply-To: Clement Laforet To: FreeBSD-gnats-submit@FreeBSD.org Cc: Clement Laforet X-Send-Pr-Version: 3.113 Subject: ports/48505: [bento fix]: ftp/ftptool patch Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48505 >Category: ports >Synopsis: [bento fix]: ftp/ftptool patch >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 20 14:20:11 PST 2003 >Closed-Date: >Last-Modified: >Originator: Clement Laforet >Release: FreeBSD 4.6-STABLE i386 >Organization: cotds.org >Environment: System: FreeBSD goofy.cultdeadsheep.org 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jul 4 10:05:12 CEST 2002 root@goofy.cultdeadsheep.org:/usr/obj/usr/src/sys/GOOFY i386 >Description: ftptool compilation fails. >How-To-Repeat: cd ${PORTSDIR}/ftp/ftptool make gcc complains ;) >Fix: Apply this patch to lex.c ;) --- ftptool.patch begins here --- diff -Nru ftptool.orig/files/lex.c ftptool/files/lex.c --- ftptool.orig/files/lex.c Thu Feb 20 22:54:26 2003 +++ ftptool/files/lex.c Thu Feb 20 23:08:03 2003 @@ -17,7 +17,8 @@ int yymorfg; extern char *yysptr, yysbuf[]; int yytchar; -FILE *yyin = {stdin}, *yyout = {stdout}; +static FILE *yyin, *yyout; + extern int yylineno; struct yysvf { struct yywork *yystoff; @@ -38,6 +39,7 @@ # define YYNEWLINE 10 yylex(){ int nstr; extern int yyprevious; +yyout = stdout; while((nstr = yylook()) >= 0) yyfussy: switch(nstr){ case 0: @@ -316,6 +318,7 @@ struct yysvf *yyz; int yych, yyfirst; struct yywork *yyr; + # ifdef LEXDEBUG int debug; # endif @@ -324,6 +327,8 @@ # ifdef LEXDEBUG debug = 0; # endif + yyin = stdin; + yyout = stdout; yyfirst=1; if (!yymorfg) yylastch = yytext; --- ftptool.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message