[hfs-user] Problems with MacBinaries - first solution

m.siennicki@cloos.pl m.siennicki@cloos.pl
Thu, 22 Aug 2002 22:12:11 +0200

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Aug 21, 2002 at 12:27:50AM +0200, m.siennicki@cloos.pl wrote:
> I think the problem is that the source doesn't compile properly

And I'm right :) Linux users on ix86 should add (after doing ./configure)
following defines in Makefile, and libhfs/Makefile:

there is:
there should be:

it lets to do long seeks on /dev/sdX. It solves the problem
with hqx file (there was ``error seeking media''). I'll
try to find solution for wrong counted crc in MacBinary,
but maybe somebody knows it already?

(I attach the patch for Intel x86 users:
Copy it into hfsutils-3.2.6/ directory, then do:

$ patch -p1 < hfsutils-3.2.6-1.patch

Then configure, make, etc..., you do won't have to edit Makefiles.

I hope it can help somebody.)


Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hfsutils-3.2.6-1.patch"

--- hfsutils-3.2.6/configure	Tue Nov  3 00:33:47 1998
+++ hfsutils-3.2.6.new/configure	Thu Aug 22 21:53:02 2002
@@ -591,6 +591,16 @@
     { echo "configure: error: --with-tk requires --with-tcl" 1>&2; exit 1; }
+echo -n "checking the machine type ..."
+MACHINE_TYPE=`uname -m`
+case "$MACHINE_TYPE" in
+	i385|i486|i586|i686)
+		;;
 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 echo "configure:597: checking whether ${MAKE-make} sets \${MAKE}" >&5
@@ -1716,6 +1726,10 @@
+if test "$MACHINE_CLASS" = "ix86"; then
 # Without the "./", some shells look in PATH for config.status.
 : ${CONFIG_STATUS=./config.status}