Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  8 May 2005 00:35:50 +0200 (CEST)
From:      Martin Kaeske <Martin.Kaeske@Stud.TU-Ilmenau.DE>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/80740: [Patch] unbrake games/flightgear on 4.x
Message-ID:  <20050507223550.3900C256222@fourier.hh59.local>
Resent-Message-ID: <200505072240.j47Me16P062664@freefall.freebsd.org>

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

>Number:         80740
>Category:       ports
>Synopsis:       [Patch] unbrake games/flightgear on 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 07 22:40:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kaeske
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD fourier.hh59.local 4.11-STABLE FreeBSD 4.11-STABLE #0: Fri Apr 1 19:37:18 CEST 2005 martin@fourier.hh59.local:/usr/obj/usr/src/sys/FOURIER i386


	
>Description:
	The port games/flightgear is marked as broken on FreeBSD-4.x.
	The error is that snprintf() cannot be found, this is due to a
	missing "#include <cstdio>" in the affected source files.
>How-To-Repeat:
	Comment out the "BROKEN" line in the Makefile and try to
	compile.
>Fix:

	Put the attached patch files to games/flightgear/files and build
	the port.

--- patch-FGEngine.cpp begins here ---
--- src/FDM/JSBSim/FGEngine.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGEngine.cpp	Sat May  7 15:57:56 2005
@@ -52,6 +52,7 @@
 #    include <fstream>
 #  endif
 #endif
+#include <cstdio>
 
 #include "FGEngine.h"
 #include "FGTank.h"
--- patch-FGEngine.cpp ends here ---

--- patch-FGFCS.cpp begins here ---
--- src/FDM/JSBSim/FGFCS.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGFCS.cpp	Sat May  7 15:57:43 2005
@@ -36,6 +36,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 INCLUDES
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+#include <cstdio>
 
 #include "FGFCS.h"
 #include "FGFDMExec.h"
--- patch-FGFCS.cpp ends here ---

--- patch-FGNozzle.cpp begins here ---
--- src/FDM/JSBSim/FGNozzle.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGNozzle.cpp	Sat May  7 15:57:32 2005
@@ -36,6 +36,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 #include <sstream>
+#include <cstdio>
 
 #include "FGNozzle.h"
 #include "FGAtmosphere.h"
--- patch-FGNozzle.cpp ends here ---

--- patch-FGPropeller.cpp begins here ---
--- src/FDM/JSBSim/FGPropeller.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGPropeller.cpp	Sat May  7 15:57:23 2005
@@ -36,6 +36,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 #include <sstream>
+#include <cstdio>
 
 #include "FGPropeller.h"
 #include "FGPropagate.h"
--- patch-FGPropeller.cpp ends here ---

--- patch-FGState.cpp begins here ---
--- src/FDM/JSBSim/FGState.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGState.cpp	Sat May  7 15:57:13 2005
@@ -51,6 +51,8 @@
 //#define snprintf _snprintf
 #endif
 
+#include <cstdio>
+
 #include "FGState.h"
 
 namespace JSBSim {
--- patch-FGState.cpp ends here ---

--- patch-FGThruster.cpp begins here ---
--- src/FDM/JSBSim/FGThruster.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGThruster.cpp	Sat May  7 15:56:47 2005
@@ -36,6 +36,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 #include <sstream>
+#include <cstdio>
 
 #include "FGThruster.h"
 
--- patch-FGThruster.cpp ends here ---

--- patch-FGTrim.cpp begins here ---
--- src/FDM/JSBSim/FGTrim.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGTrim.cpp	Sat May  7 15:56:25 2005
@@ -45,6 +45,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 #include <stdlib.h>
+#include <cstdio>
 
 #include "FGFDMExec.h"
 #include "FGAtmosphere.h"
--- patch-FGTrim.cpp ends here ---

--- patch-FGTurbine.cpp begins here ---
--- src/FDM/JSBSim/FGTurbine.cpp.orig	Sat May  7 15:55:16 2005
+++ src/FDM/JSBSim/FGTurbine.cpp	Sat May  7 15:56:36 2005
@@ -41,6 +41,7 @@
 
 #include <vector>
 #include <sstream>
+#include <cstdio>
 
 #include "FGTurbine.h"
 
--- patch-FGTurbine.cpp ends here ---


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


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