[cairo] linux 2.4

Soeren Sandmann sandmann at daimi.au.dk
Tue May 26 10:08:49 PDT 2009

Tom Vaughan <tom at software6.net> writes:

> Hi,
> When compiling pixman 0.15.6 on Linux 2.14.19:
> pixman-cpu.c:66:26: error: linux/auxvec.h: No such file or directory
> pixman-cpu.c: In function 'pixman_have_vmx':
> pixman-cpu.c:93: error: 'AT_HWCAP' undeclared (first use in this function)
> pixman-cpu.c:93: error: (Each undeclared identifier is reported only once
> pixman-cpu.c:93: error: for each function it appears in.)
> pixman-cpu.c:97: error: 'AT_NULL' undeclared (first use in this function)
> I've been able to compile previous versions. Has support for 2.4
> kernels been dropped? If so, in what version?

Support for PowerPC on Linux 2.4 was not deliberately dropped, but the
more obscure the platform, the more likely it is that you'll have to
keep it working yourself.

In this case, the auxvec.h file apparently doesn't exist on 2.4 which
means the check for Altivec instructions doesn't work
there. Previously we would do a check for SIGILL, and the code for
that is still around, so a simple fix might be to change this check:

        #elif defined (__linux__)

to a check for (__linux__ && HAVE_AUXVEC_H) and adding a
configure-time check for that file existing.


More information about the cairo mailing list