Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2003 05:15:25 -0400
From:      Serge Gagnon <gagnon__s@videotron.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53193: [Patch] unbroke port: math/simpack fix compiler_error
Message-ID:  <E19Q1hV-0009sm-NJ@quenix.dyndns.org>
Resent-Message-ID: <200306110850.h5B8oJxg012996@freefall.freebsd.org>

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

>Number:         53193
>Category:       ports
>Synopsis:       [Patch] unbroke port: math/simpack fix compiler_error
>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:   Wed Jun 11 01:50:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Serge Gagnon
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
me
>Environment:
System: FreeBSD quenix.dyndns.org 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue May 6 22:02:29 EDT 2003 serge@quenix.dyndns.org:/usr/obj/usr/src/sys/OCEAN3 i386


>Description:

	o Fix compiler error
	o New file:
		- patch-lex.yy.c
		- patch-y.tab.c

	- I didn't test if the software works properly.
	In fact, I don't exactly know what it is suppose to do.

	- I just remember, now, that this port doesn't seems
	to have a distfile available on the web. I forgot to fix
	this.

>How-To-Repeat:

http://bento.freebsd.org/errorlogs/i386-4-full/simpack-3.0.log

>Fix:


--- patch-simpack-hello begins here ---
diff -u /usr/ports/math/simpack/Makefile ./Makefile
--- /usr/ports/math/simpack/Makefile	Tue May  6 20:27:36 2003
+++ ./Makefile	Wed Jun 11 04:37:10 2003
@@ -14,8 +14,6 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	SimPack & Sim++ libraries and tools for simulatiom modelling
 
-BROKEN=		"Does not install/compile"
-
 BUILD_DEPENDS=	imake:${PORTSDIR}/devel/imake-4
 
 USE_XLIB=	yes
--- patch-simpack-hello ends here ---

--- patch-lex.yy.c begins here ---
--- func/event/pkgs/minigpss/gpsource/lex.yy.c.orig	Wed Jun 11 04:40:52 2003
+++ func/event/pkgs/minigpss/gpsource/lex.yy.c	Wed Jun 11 04:41:43 2003
@@ -1,4 +1,5 @@
-# include "stdio.h"
+# include <stdio.h>
+# include <unistd.h>
 # define U(x) x
 # define NLSTATE yyprevious=YYNEWLINE
 # define BEGIN yybgin = yysvec + 1 +
@@ -17,7 +18,7 @@
 int yymorfg;
 extern char *yysptr, yysbuf[];
 int yytchar;
-FILE *yyin = {stdin}, *yyout = {stdout};
+FILE *yyin = {STDIN_FILENO}, *yyout = {STDOUT_FILENO};
 extern int yylineno;
 struct yysvf { 
 	struct yywork *yystoff;
--- patch-lex.yy.c ends here ---

--- patch-y.tab.c begins here ---
--- func/event/pkgs/minigpss/gpsource/y.tab.c.orig	Wed Jun 11 04:46:08 2003
+++ func/event/pkgs/minigpss/gpsource/y.tab.c	Wed Jun 11 04:46:40 2003
@@ -1,4 +1,3 @@
-extern char *malloc(), *realloc();
 
 # line 2 "parse.y"
 #define MAXINT "2147483647"
--- patch-y.tab.c ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19Q1hV-0009sm-NJ>