libffi problems when compiling glib-2.31.0



gtk'ers:

I'm having some problems getting glib-2.31.0 installed because I can't
seem to resolve the libffi dependency.  I installed libffi 3.0.10
using ./configure --prefix=/mypath/; make; make install

Initially, doing ./configure --prefix=/mypath/ failed with glib until I set
LIBFFI_LIBS=/mypath/lib
LIBFFI_CFLAGS=/mypath/include

This made it pass the configure check, but doing a "make" led to the
failure below. I next noticed that ffi.h and ffitarget.h are installed
in a weird location (/mypath/lib/libffi-3.0.10/include/ffi.h and
/mypath/lib/libffi-3.0.10/include/ffitarget.h so I tried to help out
with a ln -s:

ln -s /mypath/lib/libffi-3.0.10/include/ffi.h /mypath/include/
ln -s /mypath/lib/libffi-3.0.10/include/ffitarget.h /mypath/include/

This also didn't work (the error below was identical).  Any ideas on
how to fix this?

--j

***

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 'value_from_ffi_type':
gclosure.c:1035: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1035: error: (Each undeclared identifier is reported only once
gclosure.c:1035: error: for each function it appears in.)
gclosure.c:1035: error: 'int_val' undeclared (first use in this function)
gclosure.c:1035: error: expected expression before ')' token
gclosure.c: In function 'g_cclosure_marshal_generic':
gclosure.c:1126: error: 'ffi_type' undeclared (first use in this function)
gclosure.c:1126: error: 'rtype' undeclared (first use in this function)
gclosure.c:1129: error: 'atypes' undeclared (first use in this function)
gclosure.c:1132: error: 'ffi_cif' undeclared (first use in this function)
gclosure.c:1132: error: expected ';' before 'cif'
gclosure.c:1140: warning: implicit declaration of function 'value_to_ffi_type'
gclosure.c:1144: error: 'ffi_type_void' undeclared (first use in this function)
gclosure.c:1147: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1150: error: expected expression before ')' token
gclosure.c:1162: error: 'ffi_type_pointer' undeclared (first use in
this function)
gclosure.c:1186: warning: implicit declaration of function 'ffi_prep_cif'
gclosure.c:1186: error: 'cif' undeclared (first use in this function)
gclosure.c:1186: error: 'FFI_DEFAULT_ABI' undeclared (first use in
this function)
gclosure.c:1186: error: 'FFI_OK' undeclared (first use in this function)
gclosure.c:1189: warning: implicit declaration of function 'ffi_call'
make[4]: *** [libgobject_2_0_la-gclosure.lo] Error 1
make[4]: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jgrn/code/src/glib-2.31.0'
make: *** [all] Error 2


-- 
Jonathan A. Greenberg, PhD
Assistant Professor
Department of Geography
University of Illinois at Urbana-Champaign
607 South Mathews Avenue, MC 150
Urbana, IL 61801
Phone: 415-763-5476
AIM: jgrn307, MSN: jgrn307 hotmail com, Gchat: jgrn307, Skype: jgrn3007
http://www.geog.illinois.edu/people/JonathanGreenberg.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]