GNOME Bugzilla – Bug 482788
Pygobject fails to compile from libffi dependancy.
Last modified: 2007-11-12 07:54:51 UTC
Please describe the problem: Pygobject fails to compile due to: gcc -shared .libs/_gobject_la-gobjectmodule.o .libs/_gobject_la-pygboxed.o .libs/_gobject_la-pygenum.o .libs/_gobject_la-pygflags.o .libs/_gobject_la-pygobject.o .libs/_gobject_la-pygmaincontext.o .libs/_gobject_la-pygmainloop.o .libs/_gobject_la-pygparamspec.o .libs/_gobject_la-pygpointer.o .libs/_gobject_la-pygiochannel.o .libs/_gobject_la-pygsource.o .libs/_gobject_la-pygtype.o .libs/_gobject_la-pygoptioncontext.o .libs/_gobject_la-pygoptiongroup.o .libs/_gobject_la-ffi-marshaller.o /usr/lib64/libgobject-2.0.so -L/usr/lib64 /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libglib-2.0.so -lffi -pthread -Wl,-soname -Wl,_gobject.so -Wl,-version-script -Wl,.libs/_gobject.ver -o .libs/_gobject.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lffi This is even when libffi is installed. Steps to reproduce: 1. Retrieve pygobject from svn 2. Compile svn source Actual results: make fails on finding -lffi Expected results: make to compile pygobject and fail Does this happen every time? yes Other information: Architechture: AMD64 OS: Gentoo Python: Python2.5
pygobject configure checks for <ffi.h>. So why does gentoo have ffi.h but not the ffi library?
(In reply to comment #1) > pygobject configure checks for <ffi.h>. So why does gentoo have ffi.h but not > the ffi library? > gentoo does have the libffi lib but it is in a folder of its own (/usr/lib64/libffi) this folder is in ldconfig though
The compilation line shows "-L/usr/lib64 [...] -lffi". Are sure libffi is present? Could it have been renamed to libffi<number>.so or something like that?
(In reply to comment #3) > The compilation line shows "-L/usr/lib64 [...] -lffi". Are sure libffi is > present? Could it have been renamed to libffi<number>.so or something like > that? > files in the /usr/lib64/libtffi folder: libffi-2.00-beta.so libffi.a libffi.la libffi.so
*** This bug has been marked as a duplicate of 496006 ***