Here's a patch I used to compile '8hz-mp3.src.v02b.tar.gz' on
Linux/Alpha. Note that none of this is Alpha-specific; these problems
could come up on any platform.
The cast in huffman.c is necessary because HUFFBITS is long, which is
64 bits on Alpha.
I'm not on the mailing list, so please Cc: me on any replies.
diff -ur -x Makefile 8hz-mp3/huffman.c 8hz-mp3-patched/huffman.c
--- 8hz-mp3/huffman.c Sun May 31 06:41:30 1998
+++ 8hz-mp3-patched/huffman.c Sat Aug 22 15:49:38 1998
@@ -8,7 +8,7 @@
#include "huffman.h"
#include "bitstream.h"
-HUFFBITS dmask = 1 << (sizeof(HUFFBITS)*8-1);
+HUFFBITS dmask = (HUFFBITS)1 << (sizeof(HUFFBITS)*8-1);
unsigned int hs = sizeof(HUFFBITS)*8;
static HUFFBITS t1HB[] = {1, 1, 1, 0};
diff -ur -x Makefile 8hz-mp3/psy_data.h 8hz-mp3-patched/psy_data.h
--- 8hz-mp3/psy_data.h Sun May 31 19:14:56 1998
+++ 8hz-mp3-patched/psy_data.h Sat Aug 22 15:42:24 1998
@@ -1,5 +1,3 @@
-#warning HURL, this should be different, lazyness....
-
char* psy_data[] = {
"freq = 48000.0 partition = 61 ",
"No= 0 #lines= 1 minval=24.5 qthr= 4.532 norm=0.970 bval= 0.000",
diff -ur -x Makefile 8hz-mp3/types.h 8hz-mp3-patched/types.h
--- 8hz-mp3/types.h Tue May 12 12:48:25 1998
+++ 8hz-mp3-patched/types.h Sat Aug 22 15:41:46 1998
@@ -8,8 +8,8 @@
#ifdef PI
#undef PI
-#define PI 3.14159265358979
#endif
+#define PI 3.14159265358979
#define PI4 PI/4
#define PI64 PI/64
#define SQRT2 1.41421356237
diff -ur -x Makefile 8hz-mp3/wave.c 8hz-mp3-patched/wave.c
--- 8hz-mp3/wave.c Mon Jun 1 04:41:16 1998
+++ 8hz-mp3-patched/wave.c Sat Aug 22 15:41:02 1998
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <string.h>
#include "portableio.h"
#include "types.h"
-andy
--
Andy Isaacson [EMAIL PROTECTED] [EMAIL PROTECTED] Fight Spam, join CAUCE:
http://www.csl.mtu.edu/~adisaacs/ http://www.cauce.org/