Date: Thu, 27 Apr 2006 15:35:03 +0300 (EEST) From: Andriy Gapon <avg@icyb.net.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/96411: [maintainer-update] games/oolite fails to build on 4.X because of missing stdint.h header Message-ID: <200604271235.k3RCZ3qP034193@oddity.topspin.kiev.ua> Resent-Message-ID: <200604271240.k3RCeIv2049456@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 96411 >Category: ports >Synopsis: [maintainer-update] games/oolite fails to build on 4.X because of missing stdint.h header >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 27 12:40:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Andriy Gapon >Release: FreeBSD 5.4-RELEASE-p3 i386 >Organization: >Environment: System: FreeBSD 4.X oolite-1.62.5 >Description: Thanks to Kris Kennaway for reporting and diagnosting this problem. oolite source includes <stdint.h>, but 4.X is not POSIX-compliant in regard to this header - it is not present. using <inttypes.h> on all versions of FreeBSD should correct this problem, because inttypes.h actually declares a superset of stdint.h declarations. please add the attached patch to files/ sub-directory of this port. P.S. incluing stdint.h versus inttypes.h conditionally, based on __FreeBSD_version, does not make any sense because sys/param.h which defines __FreeBSD_version is a superset of both mentioned headers. >How-To-Repeat: try to build this port on supported 4.X system (e.g. 4.11) >Fix: please add the attached patch to files/ sub-directory of this port. --- stdint.patch begins here --- --- OOCocoa.h.orig Thu Apr 27 14:16:30 2006 +++ OOCocoa.h Thu Apr 27 15:14:04 2006 @@ -1,7 +1,7 @@ // Import OpenStep main headers and define some Macisms and other compatibility stuff. #if defined(GNUSTEP) && !defined(OOLITE_SDL_MAC) -#include <stdint.h> +#include <inttypes.h> #define Boolean unsigned char #define Byte unsigned char #define true 1 --- stdint.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604271235.k3RCZ3qP034193>