Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » libffi problems when compiling glib-2.31.0 [RSS Feed]

#1 Nov. 1, 2011 02:35:36

Jonathan G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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: *** Error 1
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make: *** Error 1
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make: *** Error 2
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make: *** Error 1
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0'
make: *** 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: jgrn***@*otmail.com, Gchat: jgrn307, Skype: jgrn3007http://www.geog.illinois.edu/people/JonathanGreenberg.html_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 Nov. 1, 2011 05:02:00

Victor A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

libffi problems when compiling glib-2.31.0


On Mon, 31 Oct 2011 18:35:18 -0700
Jonathan Greenberg <j***@*llinois.edu> wrote:

> 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?
>

simply add "/mypath/lib/pkgconfig" to PKG_CONFIG_PATH shell variable



>
> --
> 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: jgrn***@*otmail.com, Gchat: jgrn307, Skype: jgrn3007
>http://www.geog.illinois.edu/people/JonathanGreenberg.html> _______________________________________________
> gtk-list mailing list
> gtk-l***@*nome.org
>http://mail.gnome.org/mailman/listinfo/gtk-list--
Victor Ananjevsky <anana***@*mail.com>
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#3 Nov. 1, 2011 06:06:33

Jonathan G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

libffi problems when compiling glib-2.31.0


Victor:

Thanks -- I got a bit farther (and did what you suggested), but now
I'm getting this:

make: Entering directory `/home/jgrn/code/src/glib-2.31.0/gobject'
CCLD gobject-query
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_pointer'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_float'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_void'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_sint64'
./.libs/libgobject-2.0.so: undefined reference to `ffi_prep_cif'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_uint32'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_double'
./.libs/libgobject-2.0.so: undefined reference to `ffi_call'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_sint32'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_uint64'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make: *** Error 1
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make: *** Error 2
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0/gobject'
make: *** Error 1
make: Leaving directory `/home/jgrn/code/src/glib-2.31.0'
make: *** Error 2

Thoughts?

--j

On Mon, Oct 31, 2011 at 9:01 PM, Victor Ananjevsky <anana***@*mail.com> wrote:
> On Mon, 31 Oct 2011 18:35:18 -0700
> Jonathan Greenberg <j***@*llinois.edu> wrote:
>
>> 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?
>>
>
> simply add "/mypath/lib/pkgconfig" to PKG_CONFIG_PATH shell variable
>
>
>
>>
>> --
>> 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: jgrn***@*otmail.com, Gchat: jgrn307, Skype: jgrn3007
>>http://www.geog.illinois.edu/people/JonathanGreenberg.html>> _______________________________________________
>> gtk-list mailing list
>> gtk-l***@*nome.org
>>http://mail.gnome.org/mailman/listinfo/gtk-list>
>
> --
> Victor Ananjevsky <anana***@*mail.com>
> _______________________________________________
> gtk-list mailing list
> gtk-l***@*nome.org
>http://mail.gnome.org/mailman/listinfo/gtk-list>



--
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: jgrn***@*otmail.com, Gchat: jgrn307, Skype: jgrn3007http://www.geog.illinois.edu/people/JonathanGreenberg.html_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#4 Nov. 1, 2011 09:17:20

David N.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

libffi problems when compiling glib-2.31.0


On Mon, Oct 31, 2011 at 10:06:15PM -0700, Jonathan Greenberg wrote:
> Thanks -- I got a bit farther (and did what you suggested), but now
> I'm getting this:
>
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_pointer'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_float'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_void'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_sint64'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_prep_cif'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_uint32'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_double'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_call'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_sint32'
> ./.libs/libgobject-2.0.so: undefined reference to `ffi_type_uint64'
>
> Thoughts?

It is not linking with libffi. Did you unset LIBFFI_{CFLAGS,LIBS} and
re-configured? What

pkg-config --libs libffi

prints? Is it the same as the value of LIBFFI_LIBS in Makefile?

Yeti

_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#5 Feb. 28, 2017 01:44:04

ScottNit
Registered: 2017-02-27
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

libffi problems when compiling glib-2.31.0

This post is being moderated

Offline

#6 July 9, 2017 20:37:01

HolliMiz
Registered: 2017-07-07
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

libffi problems when compiling glib-2.31.0

This post is being moderated

Offline

  • Root
  • » GTK+
  • » libffi problems when compiling glib-2.31.0 [RSS Feed]

Board footer

Moderator control

Enjoy the 21st of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support