Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 07:27:31 GMT
From:      Dmitry Kazarov <d.y.kazarov@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170207: ports/audio/ctronome does not produce sound on amd64 platform.
Message-ID:  <201207270727.q6R7RVjK067030@red.freebsd.org>
Resent-Message-ID: <201207270730.q6R7U6eH093550@freefall.freebsd.org>

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

>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 <sys/soundcard.h>
+#include <stdint.h>
+
 #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:



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