Skip site navigation (1)Skip section navigation (2)
Date:      20 Feb 2003 22:12:24 -0000
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Clement Laforet <sheepkiller@cultdeadsheep.org>
Subject:   ports/48505: [bento fix]: ftp/ftptool patch
Message-ID:  <20030220221224.8045.qmail@cultdeadsheep.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030220221224.8045.qmail>