From alane@wwweasel.geeksrus.net  Fri Sep  6 04:33:35 2002
Return-Path: <alane@wwweasel.geeksrus.net>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 151A237B400; Fri,  6 Sep 2002 04:33:35 -0700 (PDT)
Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 4F88743E4A; Fri,  6 Sep 2002 04:33:34 -0700 (PDT)
	(envelope-from alane@wwweasel.geeksrus.net)
Received: from wwweasel.geeksrus.net (alane@localhost [127.0.0.1])
	by wwweasel.geeksrus.net (8.12.5/8.12.5) with ESMTP id g86BWqvB059741;
	Fri, 6 Sep 2002 07:32:52 -0400 (EDT)
	(envelope-from alane@wwweasel.geeksrus.net)
Received: (from alane@localhost)
	by wwweasel.geeksrus.net (8.12.5/8.12.5/Submit) id g86BWqdw059702;
	Fri, 6 Sep 2002 07:32:52 -0400 (EDT)
	(envelope-from alane)
Message-Id: <200209061132.g86BWqdw059702@wwweasel.geeksrus.net>
Date: Fri, 6 Sep 2002 07:32:52 -0400 (EDT)
From: Alan Eldridge <ports@geeksrus.net>
Reply-To: Alan Eldridge <ports@geeksrus.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sobomax@freebsd.org
Subject: graphics/jasper: jas_types.h refs undefined types
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42475
>Category:       ports
>Synopsis:       graphics/jasper: jas_types.h refs undefined types
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 06 04:40:01 PDT 2002
>Closed-Date:    Fri Sep 20 10:59:06 PDT 2002
>Last-Modified:  Fri Sep 20 10:59:06 PDT 2002
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Sat Aug 31 23:40:18 EDT 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386


>Description:

jas_types.h references undefined types when filling in stuff from stdint.h that
we don't have (why don't we have stdint.h??). This causes errors when, e.g.,
configuring ImageMagick, because jas_types.h doesn't compile without a bunch of
things defined for it.

>How-To-Repeat:
>Fix:

mkdir files
cvs add this file

==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Index: graphics/jasper/files/patch-src-libjasper-include-jasper-jas_types.h
===================================================================
RCS file: graphics/jasper/files/patch-src-libjasper-include-jasper-jas_types.h
diff -N graphics/jasper/files/patch-src-libjasper-include-jasper-jas_types.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ graphics/jasper/files/patch-src-libjasper-include-jasper-jas_types.h	6 Sep 2002 11:24:01 -0000
@@ -0,0 +1,43 @@
+--- src/libjasper/include/jasper/jas_types.h.orig	Tue Jan 15 17:07:34 2002
++++ src/libjasper/include/jasper/jas_types.h	Fri Sep  6 07:22:09 2002
+@@ -204,7 +204,7 @@
+ #endif
+ /**********/
+ #if !defined(UINT_FAST8_MIN)
+-typedef uchar uint_fast8_t;
++typedef unsigned char uint_fast8_t;
+ #define UINT_FAST8_MIN	0
+ #define UINT_FAST8_MAX	255
+ #endif
+@@ -216,7 +216,7 @@
+ #endif
+ /**********/
+ #if !defined(UINT_FAST16_MIN)
+-typedef ushort uint_fast16_t;
++typedef unsigned short uint_fast16_t;
+ #define UINT_FAST16_MIN	USHRT_MIN
+ #define UINT_FAST16_MAX	USHRT_MAX
+ #endif
+@@ -228,19 +228,19 @@
+ #endif
+ /**********/
+ #if !defined(UINT_FAST32_MIN)
+-typedef uint uint_fast32_t;
++typedef unsigned int uint_fast32_t;
+ #define UINT_FAST32_MIN	UINT_MIN
+ #define UINT_FAST32_MAX	UINT_MAX
+ #endif
+ /**********/
+ #if !defined(INT_FAST64_MIN)
+-typedef longlong int_fast64_t;
++typedef long long int_fast64_t;
+ #define INT_FAST64_MIN	LLONG_MIN
+ #define INT_FAST64_MAX	LLONG_MAX
+ #endif
+ /**********/
+ #if !defined(UINT_FAST64_MIN)
+-typedef ulonglong uint_fast64_t;
++typedef unsigned long long uint_fast64_t;
+ #define UINT_FAST64_MIN	ULLONG_MIN
+ #define UINT_FAST64_MAX	ULLONG_MAX
+ #endif
==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==


>Release-Note:
>Audit-Trail:

From: "Andrey A. Chernov" <ache@nagual.pp.ru>
To: Alan Eldridge <ports@geeksrus.net>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, sobomax@FreeBSD.ORG
Subject: Re: ports/42475: graphics/jasper: jas_types.h refs undefined types
Date: Fri, 6 Sep 2002 16:01:16 +0400

 On Fri, Sep 06, 2002 at 07:32:52 -0400, Alan Eldridge wrote:
 > 
 > jas_types.h references undefined types when filling in stuff from stdint.h that
 > we don't have (why don't we have stdint.h??). This causes errors when, e.g.,
 > configuring ImageMagick, because jas_types.h doesn't compile without a bunch of
 > things defined for it.
 
 Wrong patch. We have stdint.h, but Jasper's include files want HAVE_* 
 defines to sense it.
 
 -- 
 Andrey A. Chernov
 http://ache.pp.ru/

From: Alan E <alane@geeksrus.net>
To: "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, sobomax@FreeBSD.ORG
Subject: Re: ports/42475: graphics/jasper: jas_types.h refs undefined types
Date: Fri, 6 Sep 2002 08:10:53 -0400

 On Fri, Sep 06, 2002 at 04:01:16PM +0400, Andrey A. Chernov wrote:
 >On Fri, Sep 06, 2002 at 07:32:52 -0400, Alan Eldridge wrote:
 >> 
 >> jas_types.h references undefined types when filling in stuff from stdint.h that
 >> we don't have (why don't we have stdint.h??). This causes errors when, e.g.,
 >> configuring ImageMagick, because jas_types.h doesn't compile without a bunch of
 >> things defined for it.
 >
 >Wrong patch. We have stdint.h, but Jasper's include files want HAVE_* 
 >defines to sense it.
 
 Not in stable, we don't. So we need *both* patches, the one I did and
 the one to detect stdint.h.
 
 -- 
 Alan Eldridge
 Unix/C(++) IT Pro, 20 yrs, seeking new employment.
 (http://wwweasel.geeksrus.net/~alane/resume.txt)
 KDE, KDE-FreeBSD Teams (http://www.kde.org, http://freebsd.kde.org/)
State-Changed-From-To: open->closed 
State-Changed-By: alane 
State-Changed-When: Fri Sep 20 10:58:36 PDT 2002 
State-Changed-Why:  
Committed. Maintainer 2 week timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42475 
>Unformatted:
