An untested lib can be found here: [http://sites.google.com/site/nyhusr/Home/haiku-os-files/files/libffi-3.0.8-haiku.zip libffi-3.0.8-haiku.zip] when building pre-2.6 python, use --with-system-ffi