Subject: pkg/35181: devel/py-ctypes doesn't compile on NetBSD/macppc, doesn't use devel/libffi
To: None <firstname.lastname@example.org, email@example.com,>
From: Magnus Henoch <firstname.lastname@example.org>
Date: 12/04/2006 12:00:00
>Synopsis: devel/py-ctypes doesn't compile on NetBSD/macppc, doesn't use devel/libffi
>Arrival-Date: Mon Dec 04 12:00:00 +0000 2006
>Originator: Magnus Henoch
>Release: NetBSD 4.99.4
System: NetBSD zemdatav 4.99.4 NetBSD 4.99.4 (IBOOK) #20: Sun Dec 3 23:50:54 CET 2006 magnus@zemdatav:/usr/src/sys/arch/macppc/compile/IBOOK macppc
A couple of cascading errors. When building devel/py-ctypes
on NetBSD/macppc, configure fails with:
configure: error: "libffi has not been ported to powerpc-unknown-netbsd4.99.4."
The build process is not aborted by that, though.
Looking in the code, I found that py-ctypes uses its own copy
of libffi instead of the one in devel/libffi. I "fixed" that
by including devel/libffi/buildlink3.mk in the pkgsrc
changing LIBFFI_SOURCES to None in setup.py, adding "-lffi" to
extra_link_args in setup.py, and manually linking ffitarget.h
into the buildlink directory. After that, it seems to work.