After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 482788 - Pygobject fails to compile from libffi dependancy.
Pygobject fails to compile from libffi dependancy.
Status: RESOLVED DUPLICATE of bug 496006
Product: pygobject
Classification: Bindings
Component: general
Git master
Other All
: Normal blocker
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-03 00:30 UTC by Firebird8
Modified: 2007-11-12 07:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Firebird8 2007-10-03 00:30:55 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
Comment 1 Gustavo Carneiro 2007-10-03 10:00:29 UTC
pygobject configure checks for <ffi.h>.  So why does gentoo have ffi.h but not the  ffi library?
Comment 2 Firebird8 2007-10-03 19:12:24 UTC
(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
Comment 3 Gustavo Carneiro 2007-10-03 21:35:17 UTC
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?
Comment 4 Firebird8 2007-10-05 19:52:48 UTC
(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
Comment 5 Johan (not receiving bugmail) Dahlin 2007-11-12 07:54:51 UTC

*** This bug has been marked as a duplicate of 496006 ***