Hi there ...
The attached patch allowed compiling fsl-4.0.1 on 32bit debian sarge.
I post the patch to get some comments on it. Also it may help others
to compile it on there systems.
Please remember that I only *compiled* fsl, but I'm unable to *test*
whether it is really working as I do not know what fsl is for. ;-)
Thomas
--- config/linux_32-gcc3.3/systemvars.mk
+++ config/linux_32-gcc3.3/systemvars.mk
@@ -29,7 +29,7 @@
OPTFLAGS = -O3 -fexpensive-optimizations ${ARCHFLAGS}
MACHDBGFLAGS = -g
-GNU_ANSI_FLAGS = -Wall -ansi -pedantic -Wno-long-long
+GNU_ANSI_FLAGS = -Wall -pedantic -Wno-long-long
SGI_ANSI_FLAGS = -ansi -fullwarn
ANSI_FLAGS = ${GNU_ANSI_FLAGS}
--- etc/fslconf/fslmachtype.sh
+++ etc/fslconf/fslmachtype.sh
@@ -49,6 +49,7 @@
fi
;;
Linux)
+ [ -z "$gcc_os_name" ] && gcc_os_name=linux
if [ "${gcc_cpu_type}" = "x86_64" -o "${gcc_cpu_type}" = "x86-64" ]; then
gcc_host="${gcc_os_name}_64"
elif [ `echo ${gcc_cpu_type} | grep i.86` ]; then
--- src/fast/zimage/math/mathcommon.h
+++ src/fast/zimage/math/mathcommon.h
@@ -26,7 +26,7 @@
bool svdcmp(ZMatrix<double>& U, ZVector<double>& W, ZMatrix<double>& V);
bool LUdcmp(ZMatrix<double>& A);
bool LUdcmp(ZMatrix<double>& A, ZVector<int>& indx);
-bool LUdcmp(ZMatrix<float>& A);
+bool LUdcmp(ZMatrix<float>& A, void *ptr);
bool LUdcmp(ZMatrix<float>& A, ZVector<int>& indx);
void LUbksb (const ZMatrix<double>& A, const ZVector<int>& indx, ZVector<double>& B );
void LUbksb (const ZMatrix<float>& A, const ZVector<int>& indx, ZVector<float>& B );
|