[Liboil] liboil on 64-bit system
Stephane Fillod
f8cfe at free.fr
Mon Oct 31 04:11:54 PST 2005
Hi,
I've tested current CVS liboil on Linux-Alpha, and found the attached
patch necessary. examples/oil-test.c needed appropriate format
specifiers. Some automake-1.9 warning silencing has been done (cheaply)
in the m4 files.
A "make check" returns success, however the Linux kernel complains
with unaligned traps in the stride testsuite. Remember, this is a
RISC Alpha CPU, and unaligned accesses are not good to them :-)
--
Stephane
-------------- next part --------------
--- configure.ac 29 Oct 2005 02:32:33 -0000 1.63
+++ configure.ac 31 Oct 2005 11:39:38 -0000
@@ -125,6 +125,8 @@ AC_CHECK_LIB(m, sincos,
AC_CHECK_HEADER(ieee754.h,
AC_DEFINE(HAVE_IEEE754_H, 1, [Define if ieee754.h exists]))
+AC_CHECK_HEADERS([inttypes.h])
+
AC_CHECK_FUNCS([gettimeofday])
AC_CHECK_FUNCS([sigaction])
--- examples/oil-test.c 15 Sep 2005 07:05:10 -0000 1.4
+++ examples/oil-test.c 31 Oct 2005 11:39:39 -0000
@@ -29,6 +29,10 @@
#include "config.h"
#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#include <liboil/liboil.h>
#include <liboil/liboilfunction.h>
#include <liboil/liboiltest.h>
@@ -107,10 +111,10 @@ dump_array (void *data, void *ref_data,
//DUMP(uint32_t, "%08x");
break;
case OIL_TYPE_s64p:
- DUMP(int64_t, "%lld");
+ DUMP(int64_t, "%"PRId64);
break;
case OIL_TYPE_u64p:
- DUMP(uint64_t, "%llu");
+ DUMP(uint64_t, "%"PRIu64);
break;
case OIL_TYPE_f32p:
DUMP(float, "%g");
--- m4/as-libtool.m4 7 Jan 2004 10:54:49 -0000 1.1
+++ m4/as-libtool.m4 31 Oct 2005 11:39:41 -0000
@@ -16,7 +16,7 @@ dnl if USE_RELEASE is used, then add a -
dnl with the given release version
dnl then use [$PREFIX]_LT_LDFLAGS in the relevant Makefile.am's
-AC_DEFUN(AS_LIBTOOL,
+AC_DEFUN([AS_LIBTOOL],
[
[$1]_CURRENT=[$2]
[$1]_REVISION=[$3]
--- m4/pkg.m4 9 Sep 2004 00:14:39 -0000 1.1
+++ m4/pkg.m4 31 Oct 2005 11:39:41 -0000
@@ -2,7 +2,7 @@
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
dnl also defines GSTUFF_PKG_ERRORS on error
-AC_DEFUN(PKG_CHECK_MODULES, [
+AC_DEFUN([PKG_CHECK_MODULES], [
succeeded=no
if test -z "$PKG_CONFIG"; then
More information about the Liboil
mailing list