NetBSD Problem Report #36584

From martin@duskware.de  Sun Jul  1 16:22:48 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 047C663B882
	for <gnats-bugs@gnats.netbsd.org>; Sun,  1 Jul 2007 16:22:48 +0000 (UTC)
Message-Id: <20070701154813.A7B5863B8E6@narn.NetBSD.org>
Date: Sun,  1 Jul 2007 15:48:13 +0000 (UTC)
From: jruschme@comcast.net
Reply-To: jruschme@comcast.net
To: netbsd-bugs-owner@NetBSD.org
Subject: multimedia/libdvdread does not compile under Interix
X-Send-Pr-Version: www-1.0

>Number:         36584
>Category:       pkg
>Synopsis:       multimedia/libdvdread does not compile under Interix
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    interix-pkg-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 01 16:25:00 +0000 2007
>Last-Modified:  Mon Jul 02 00:01:12 +0000 2007
>Originator:     John Ruschmeyer
>Release:        pkgsrc 2007Q1
>Organization:
>Environment:
Interix enterprise 3.5 SP-8.0.1969.1 x86 Intel_x86_Family15_Model0_Stepping7
>Description:
The multimedia/libdvdread package does not curretnly build under Interix/SFU because Interix does not provide either <inttypes.h> or <stdint.h>. This is so that the code can use definitions for severl unsigned types. NetBSD has equivalent types, but defines them with diffent names and in a different include file.

This problem is especially series because libdvdread is a dependency of a number of other packages.
>How-To-Repeat:

>Fix:
Starting at line 26 of dvdread/ifo_types.h is a block which begins "#if defined(__BEOS__)" and contains the test in question in the #else clause.

This block should be replaced with:

#if defined(__BEOS__)
#if !defined(_INTTYPES_H_) && !defined(_INTTYPES_H) && !defined(_STDINT_H_) && !
defined(_STDINT_H)
#error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
#endif
#else
#if defined(__INTERIX)
#include <sys/types.h>

#define uint8_t u_int8_t
#define uint16_t u_int16_t
#define uint32_t u_int32_t
#define uint64_t u_int64_t

#else
#if !defined(UINT8_MAX) || !defined(UINT16_MAX) || !defined(INT32_MAX)
#error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
#endif
#endif
#endif

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->interix-pkg-people
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Mon, 02 Jul 2007 00:01:12 +0000
Responsible-Changed-Why:
Interix specific problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.