LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2012, 05:05 PM   #1
sedna06
LQ Newbie
 
Registered: Jul 2012
Posts: 23

Rep: Reputation: Disabled
Compiling GLIb Problems


Hey Guys n Gals,

I have been trying to compile GLIB for some time now and cant seem to get it to work I have ran ./configure and it passed ok its when I run make and I get these errors

Code:
make  all-recursive
make[1]: Entering directory `/home/joe/Downloads/glib-2.31.8'
Making all in .
make[2]: Entering directory `/home/joe/Downloads/glib-2.31.8'
make[2]: Leaving directory `/home/joe/Downloads/glib-2.31.8'
Making all in m4macros
make[2]: Entering directory `/home/joe/Downloads/glib-2.31.8/m4macros'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/joe/Downloads/glib-2.31.8/m4macros'
Making all in glib
make[2]: Entering directory `/home/joe/Downloads/glib-2.31.8/glib'
make  all-recursive
make[3]: Entering directory `/home/joe/Downloads/glib-2.31.8/glib'
Making all in libcharset
make[4]: Entering directory `/home/joe/Downloads/glib-2.31.8/glib/libcharset'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/joe/Downloads/glib-2.31.8/glib/libcharset'
Making all in pcre
make[4]: Entering directory `/home/joe/Downloads/glib-2.31.8/glib/pcre'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/joe/Downloads/glib-2.31.8/glib/pcre'
Making all in update-pcre
make[4]: Entering directory `/home/joe/Downloads/glib-2.31.8/glib/update-pcre'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/joe/Downloads/glib-2.31.8/glib/update-pcre'
Making all in .
make[4]: Entering directory `/home/joe/Downloads/glib-2.31.8/glib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/joe/Downloads/glib-2.31.8/glib'
Making all in tests
make[4]: Entering directory `/home/joe/Downloads/glib-2.31.8/glib/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/joe/Downloads/glib-2.31.8/glib/tests'
make[3]: Leaving directory `/home/joe/Downloads/glib-2.31.8/glib'
make[2]: Leaving directory `/home/joe/Downloads/glib-2.31.8/glib'
Making all in gmodule
make[2]: Entering directory `/home/joe/Downloads/glib-2.31.8/gmodule'
make  all-am
make[3]: Entering directory `/home/joe/Downloads/glib-2.31.8/gmodule'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/joe/Downloads/glib-2.31.8/gmodule'
make[2]: Leaving directory `/home/joe/Downloads/glib-2.31.8/gmodule'
Making all in gthread
make[2]: Entering directory `/home/joe/Downloads/glib-2.31.8/gthread'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/joe/Downloads/glib-2.31.8/gthread'
Making all in gobject
make[2]: Entering directory `/home/joe/Downloads/glib-2.31.8/gobject'
make  all-recursive
make[3]: Entering directory `/home/joe/Downloads/glib-2.31.8/gobject'
Making all in .
make[4]: Entering directory `/home/joe/Downloads/glib-2.31.8/gobject'
  CC     libgobject_2_0_la-gclosure.lo
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/joe/Downloads/glib-2.31.8/gobject'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/joe/Downloads/glib-2.31.8/gobject'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/joe/Downloads/glib-2.31.8/gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joe/Downloads/glib-2.31.8'
make: *** [all] Error 2
[joe@localhost glib-2.31.8]$
that is my output of running make as you can see it fails and I am not sure why?

p.s.

this is my LIBFFI_CFLAGS=/usr/local/lib/libffi-3.0.11/include/ variable setting

I would be very grateful for your all help

Joe
 
Old 07-26-2012, 01:36 AM   #2
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
Quote:
Originally Posted by sedna06 View Post
Hey Guys n Gals,

I have been trying to compile GLIB for some time now and cant seem to get it to work I have ran ./configure and it passed ok its when I run make and I get these errors

this is my LIBFFI_CFLAGS=/usr/local/lib/libffi-3.0.11/include/ variable setting

Is the variable
Code:
$LIBFFI_CFLAGS
global or you do have do export it ??

before make
type
Code:
 echo $LIBFFI_CFLAGS
and see the if output is LIBFFI_CFLAGS=/usr/local/lib/libffi-3.0.11/include/


If it does not work try to use your package manager and install it!

else try here http://sourceware.org/ml/libffi-discuss/
 
Old 07-26-2012, 03:39 AM   #3
sedna06
LQ Newbie
 
Registered: Jul 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jheengut View Post
Is the variable
Code:
$LIBFFI_CFLAGS
global or you do have do export it ??

before make
type
Code:
 echo $LIBFFI_CFLAGS
and see the if output is LIBFFI_CFLAGS=/usr/local/lib/libffi-3.0.11/include/


If it does not work try to use your package manager and install it!

else try here http://sourceware.org/ml/libffi-discuss/
@jheengut,

Thanks for replying to my post, I can confirm that I have set $LIBFFI_CFLAGS and have exported it so that it is global, any other ideas as to why this still does not work?

Joe
 
Old 07-26-2012, 03:51 PM   #4
sedna06
LQ Newbie
 
Registered: Jul 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hey Guys n Gals,

I have got a bit further but I am getting this error below are my cmds and the error

Code:
./configure LIBFFI_LIBS=/usr/local/lib/libffi.so.6 LIBFFI_CFLAGS=-I/usr/local/lib/libffi-3.0.11/include LIBFFI_CFLAGS=-L/usr/local/lib ZLIB_LIBS=/usr/local/lib/ ZLIB_CFLAGS=/usr/local/include/ CC=/usr/bin/gcc
and the error
Code:
make[4]: Entering directory `/home/joe/Downloads/glib-2.32.4/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[4]: *** [gobject-query] Error 1
make[4]: Leaving directory `/home/joe/Downloads/glib-2.32.4/gobject'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/joe/Downloads/glib-2.32.4/gobject'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/joe/Downloads/glib-2.32.4/gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joe/Downloads/glib-2.32.4'
make: *** [all] Error 2

any help would be great

Joe
 
Old 07-31-2012, 01:12 PM   #5
sedna06
LQ Newbie
 
Registered: Jul 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
I am just seeing if any one has an answer for me
 
Old 03-15-2013, 09:10 AM   #6
Swarnalatha
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
HI,

I am getting similar issue in compiling glib.

./.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'

Can you please let me know, how to solve this issue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glib problem while compiling djabbot Linux - Software 13 03-08-2005 07:03 PM
[GLIB] Problems Installing GLIB ThA_eLMo_GoD Linux - Newbie 2 09-04-2004 05:27 PM
Compiling GAIM says i need GLib 2.0, yet i have GLib 2.4 MadSkillzMan Linux - Newbie 3 07-10-2004 04:10 AM
Problems relating to glib 1.2.10 and glib 1.2.9 p3ngu!n Mandriva 10 05-23-2004 09:03 PM
compiling Glib king_nothingzzz Linux - Software 7 08-21-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration