dev-libs/glib-2.30.0 fail if there is no pkgconfig installed (e.g. bootstrap time) CC libgobject_2_0_la-gparamspecs.lo /Users/naota/Gentoo/bin/bash ../libtool --silent --tag=CC --mode=compile i686-apple-darwin10-gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GLib-GObject\" -I.. -I../glib -I../glib -I.. -DG_DISABLE_CAS T_CHECKS -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -DGOBJECT_COMPILATION -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -I/usr/lib/libffi-*/include -march=core2 -msse4.2 -m32 -pipe -fomit-frame-pointer -O2 -Wall -c -o libgobject_2_0_la-gparamspecs.lo `test -f 'gparamspecs.c' || echo './'`gparamspecs.c gclosure.c:29:17: error: ffi.h: No such file or directory gclosure.c:946: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gclosure.c: In function 'g_cclosure_marshal_generic': gclosure.c:1103: error: 'ffi_type' undeclared (first use in this function) gclosure.c:1103: error: (Each undeclared identifier is reported only oncegclosure.c:1103: error: for each function it appears in.) gclosure.c:1103: error: 'rtype' undeclared (first use in this function)gclosure.c:1106: error: 'atypes' undeclared (first use in this function) gclosure.c:1109: error: 'ffi_cif' undeclared (first use in this function) gclosure.c:1109: error: expected ';' before 'cif' gclosure.c:1114: warning: implicit declaration of function 'value_to_ffi_type' gclosure.c:1118: error: 'ffi_type_void' undeclared (first use in this function) gclosure.c:1121: error: 'ffi_arg' undeclared (first use in this function) gclosure.c:1124: error: expected expression before ')' token gclosure.c:1131: error: 'ffi_type_pointer' undeclared (first use in this function) gclosure.c:1144: warning: implicit declaration of function 'ffi_prep_cif' gclosure.c:1144: error: 'cif' undeclared (first use in this function) gclosure.c:1144: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) gclosure.c:1144: error: 'FFI_OK' undeclared (first use in this function) gclosure.c:1147: warning: implicit declaration of function 'ffi_call' make[4]: *** [libgobject_2_0_la-gclosure.lo] Error 1 The cause of this error would be this gcc argument "-I/usr/lib/libffi-*/include" This should be "-I${EPREFIX}/usr/lib/libffi-*/include" The argument is added like this in the ebuild if ! has_version dev-util/pkgconfig; then export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" export DBUS1_LIBS="-ldbus-1" export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" export LIBFFI_LIBS="-lffi" fi We should fix these path to make it to look up Prefix directory.
patch against main tree please. I don't /quite/ understand when people hit this issue though (yet)
confirmed here.
fixed by adding the missing ${EPREFIX}-es, thanks naota
*** This bug has been marked as a duplicate of bug 385561 ***