ports/170207: ports/audio/ctronome does not produce sound on amd64 platform.
Dmitry Kazarov
d.y.kazarov at mail.ru
Fri Jul 27 07:30:07 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list