Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194632 - dev-python/pygobject-2.14.0 fails to emerge
Summary: dev-python/pygobject-2.14.0 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 198875
Blocks:
  Show dependency tree
 
Reported: 2007-10-03 17:53 UTC by Andrés Becerra Sandoval
Modified: 2008-05-25 21:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,27.71 KB, text/plain)
2007-10-04 14:20 UTC, Andrés Becerra Sandoval
Details
emerge --info (info.txt,3.20 KB, text/plain)
2007-10-04 14:20 UTC, Andrés Becerra Sandoval
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrés Becerra Sandoval 2007-10-03 17:53:56 UTC
Compilation fails in this stage:

i686-pc-linux-gnu-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/lib/libgobject-2.0.so -L/usr/lib /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so -lffi  -march=athlon -pthread -Wl,-soname -Wl,_gobject.so -Wl,-version-script -Wl,.libs/_gobject.ver -o .libs/_gobject.so
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lffi

I have dev-libs/libffi-3.4.3 installed, and the previous version of pygobject 2.12.3 emerged fine on my system.



Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-03 19:01:36 UTC
Reopen with config.log attached and emerge --info output; thanks.
Comment 2 Andrés Becerra Sandoval 2007-10-04 14:20:31 UTC
Created attachment 132562 [details]
config.log
Comment 3 Andrés Becerra Sandoval 2007-10-04 14:20:48 UTC
Created attachment 132563 [details]
emerge --info
Comment 4 Andrés Becerra Sandoval 2007-10-04 14:23:50 UTC
Reopening bug with config.log and emerge --info output attached!
Comment 5 Dan Coats 2007-10-04 18:36:21 UTC
equery d libffi

If nothing depends on it then emerge -C libffi && emerge -av pygobject
Comment 6 Andrés Becerra Sandoval 2007-10-04 22:28:49 UTC
I have squeak installed and depending on libffi, so  I followed Dan's suggestion backing up libffi:

quickpkg libffi
emerge -C libffi
emerge -1 pygobject
emerge -1K libffi

Now pygobject emerged correctly, thanks!
Comment 7 Petr Pisar 2007-11-18 20:02:25 UTC
Problem is in configure.ac wich checks only the presence of ffi.h. At compile time libffi.so can not be found because it's located in non-standard directory /usr/lib/libffi. The dev-libs/libffi defines variables in /etc/env.d/99libffi (CPATH, LDPATH) but only CPATH is exported into user shell. The LDPATH=/usr/li/libffi doesn't present in /etc/profile.env for some reason.
Comment 8 Henrique Rodrigues 2007-12-19 17:20:33 UTC
According to dev-libs/libffi description:

"libffi (from gcc) does not commonly build unless gcj is compiled, but is used by other projects, like GNUstep."

pygobject should depend on dev-libs/libffi if gcc hasn't been compiled with the gcj USE flag.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-25 21:24:58 UTC
gcc and pygobject-2.14.2 should now be able to use libffi properly. Please reopen if it's not the case.