From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 27 07:30:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4407D106564A for ; Fri, 27 Jul 2012 07:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0300F8FC12 for ; Fri, 27 Jul 2012 07:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6R7U68C093551 for ; Fri, 27 Jul 2012 07:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6R7U6eH093550; Fri, 27 Jul 2012 07:30:06 GMT (envelope-from gnats) Resent-Date: Fri, 27 Jul 2012 07:30:06 GMT Resent-Message-Id: <201207270730.q6R7U6eH093550@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Kazarov Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E681106566B for ; Fri, 27 Jul 2012 07:27:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EDB5F8FC19 for ; Fri, 27 Jul 2012 07:27:31 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6R7RVOE067031 for ; Fri, 27 Jul 2012 07:27:31 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q6R7RVjK067030; Fri, 27 Jul 2012 07:27:31 GMT (envelope-from nobody) Message-Id: <201207270727.q6R7RVjK067030@red.freebsd.org> Date: Fri, 27 Jul 2012 07:27:31 GMT From: Dmitry Kazarov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/170207: ports/audio/ctronome does not produce sound on amd64 platform. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2012 07:30:07 -0000 >Number: 170207 >Category: ports >Synopsis: ports/audio/ctronome does not produce sound on amd64 platform. >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: Fri Jul 27 07:30:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Dmitry Kazarov >Release: 9.1-PRERELEASE >Organization: >Environment: FreeBSD Trudiaga.localdomain 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sun Jul 22 23:13:15 MSK 2012 root@Trudiaga.localdomain:/var/obj/usr/src/sys/GENERIC amd64 >Description: Due to incorrect width of integers used in bitwise operations ctronome produce no sound on amd64 platform. >How-To-Repeat: Compile port on 64-bit FreeBSD and start it. >Fix: Patch attached with submission follows: --- ./ctronome.h.orig 2012-07-22 15:14:52.000000000 +0400 +++ ./ctronome.h 2012-07-22 15:15:31.000000000 +0400 @@ -1,4 +1,6 @@ #include +#include + #define MYNAME "ctronome" #define VERSION "0.5.3" #define CREDITS "homepage: http://ctronome.kign.org/\n" @@ -28,9 +30,9 @@ for defaults/limits and required WAV format see README\n" /* my lazy type definitions */ -typedef unsigned long int DWORD; -typedef unsigned short int WORD; -typedef unsigned char BYTE; +typedef uint32_t DWORD; +typedef uint16_t WORD; +typedef uint8_t BYTE; typedef DWORD dword; typedef WORD word; typedef BYTE byte; >Release-Note: >Audit-Trail: >Unformatted: