[hfs-user] Problems with MacBinaries - first solution

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


--OXfL5xGRrasGEqWY
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:
DEFINES =       -DHAVE_CONFIG_H
there should be:
DEFINES =       -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64

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.)

Sincerely,
Marcin

--OXfL5xGRrasGEqWY
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; }
 fi
 
+echo -n "checking the machine type ..."
+MACHINE_TYPE=`uname -m`
+MACHINE_CLASS=$MACHINE_TYPE
+case "$MACHINE_TYPE" in
+	i385|i486|i586|i686)
+		MACHINE_CLASS="ix86"
+		;;
+esac
+
+echo "$MACHINE_TYPE/$MACHINE_CLASS"
 
 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 @@
 
 DEFS=-DHAVE_CONFIG_H
 
+if test "$MACHINE_CLASS" = "ix86"; then
+	DEFS="$DEFS -D_FILE_OFFSET_BITS=64"
+fi
+
 # Without the "./", some shells look in PATH for config.status.
 : ${CONFIG_STATUS=./config.status}
 

--OXfL5xGRrasGEqWY--