Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2002 01:04:08 +0200 (CEST)
From:      Oliver Braun <obraun@informatik.unibw-muenchen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/37969: Fix build on -current: print/rtf2latex --- bento error
Message-ID:  <20020511230408.B82415A549@nemesis.informatik.unibw-muenchen.de>

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

>Number:         37969
>Category:       ports
>Synopsis:       Fix build on -current: print/rtf2latex --- bento error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 11 16:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Braun
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD nemesis.informatik.unibw-muenchen.de 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Thu May 2 11:59:09 CEST 2002 root@nemesis.informatik.unibw-muenchen.de:/usr/obj/usr/src/sys/NEMESIS_OB i386


>Description:

fix "stdin / initializer element is not constant" issue

Regards,
         Olli
>How-To-Repeat:
>Fix:

diff -ruN rtf2latex.old/files/patch-reader.c rtf2latex/files/patch-reader.c
--- rtf2latex.old/files/patch-reader.c	Thu Jan  1 00:00:00 1970
+++ rtf2latex/files/patch-reader.c	Sun May 12 01:01:04 2002
@@ -0,0 +1,28 @@
+--- reader.c.orig	Sun May 12 00:57:41 2002
++++ reader.c	Sun May 12 01:00:39 2002
+@@ -118,7 +118,7 @@
+ static RTFStyle	*styleList = (RTFStyle *) NULL;
+ 
+ 
+-static FILE	*rtffp = stdin;
++static FILE	*rtffp = NULL;
+ 
+ 
+ /*
+@@ -135,6 +135,7 @@
+ RTFStyle	*sp;
+ RTFStyleElt	*eltList, *ep;
+ 
++	rtffp = stdin;
+ 	/* initialize lookup table */
+ 	LookupInit ();
+ 
+@@ -584,6 +585,8 @@
+ {
+ int	c;
+ 
++	if (rtffp == NULL)
++	  rtffp = stdin;
+ 	if ((c = getc (rtffp)) != EOF)
+ 	{
+ 		if (c & 0x80)
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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