Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389239 - dev-libs/glib-2.30.0 fail if pkgconfig not installed
Summary: dev-libs/glib-2.30.0 fail if pkgconfig not installed
Status: RESOLVED DUPLICATE of bug 385561
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 20:51 UTC by Naohiro Aota
Modified: 2012-05-10 11:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2011-11-01 20:51:27 UTC
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.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-11-02 01:12:31 UTC
patch against main tree please. I don't /quite/ understand when people hit this issue though (yet)
Comment 2 Fabian Groffen gentoo-dev 2011-11-04 10:16:59 UTC
confirmed here.
Comment 3 Fabian Groffen gentoo-dev 2011-11-04 10:24:54 UTC
fixed by adding the missing ${EPREFIX}-es, thanks naota
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-05-10 11:52:42 UTC

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