Package: liboil0.3 Version: 0.3.8-1.1 Severity: normal Tags: patch Liboil does not correctly build the SSE-optimized functions because the configure check for the presence of SSE2 intrinsics is broken (the test program will always fail to compile).
The test program is trying to pass a variable of type '__m128d' to a function that expects '__128i'. The patch fixes this and allows the configure script to correctly detect the presence of SSE2 intrinsics. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-rc1-g385910f2-dirty Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages liboil0.3 depends on: ii libc6 2.3.6-7 GNU C Library: Shared libraries liboil0.3 recommends no packages. -- no debconf information
diff -Nru liboil-0.3.8/m4/as-intrinsics.m4 liboil-0.3.8.mod/m4/as-intrinsics.m4 --- liboil-0.3.8/m4/as-intrinsics.m4 2006-02-15 16:02:15.000000000 -0500 +++ liboil-0.3.8.mod/m4/as-intrinsics.m4 2006-04-26 18:36:27.000000000 -0400 @@ -69,7 +69,7 @@ save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -msse2" - AC_TRY_COMPILE([#include <emmintrin.h>], [__m128d a; a = _mm_setzero_pd(); a = _mm_srli_epi16(a,8)], [flag_ok=yes], [flag_ok=no]) + AC_TRY_COMPILE([#include <emmintrin.h>], [__m128i a; a = _mm_setzero_si128(); a = _mm_srli_epi16(a,8)], [flag_ok=yes], [flag_ok=no]) CFLAGS="$save_CFLAGS" $1="-msse2"