LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-25-2003, 11:23 PM   #1
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
glib.h?


I'm trying to build the nightly tarball of Gaim. I ran ./configure, and it tells me I need to get glib 2.0 or greater. No problem, i downloaded and built that. However, when i run gaim ./configure again, it still tells me I need glib >= 2.0. I looked at the log for configure and the error, as far as I can tell, is it can't find a header called glib.h. I have that on my system, but it's in a folder called gilb-1.2 or some such so I'm not sure it'll work. So does anyone know where I can find glib.h for glib >= 2.0? All I can find are RPM's and seeing as I'm on Slackware, they don't really do me any good.
 
Old 03-26-2003, 10:01 AM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
 
Old 03-26-2003, 05:32 PM   #3
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Didn't work, same error as before...

Quote:
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.
 
Old 03-26-2003, 06:32 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What does
locate glib-2.0.pc
give you as a result (in case you do updatedb
on a regular basis ;})?

After installing glib2, did you run ldconfig?

I had no problems with installing glib2 from
source (well, except for having to get & install
a million other, new versions of stuff it depends
on ;}).

Cheers,
Tink
 
Old 03-27-2003, 07:36 PM   #5
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Ok, I fixed it, partly. I looked at config.log and saw that gcc wasn't looking in the right directory. Well, I set my CPPFLAGS to point to it and the test program compiles. Now, however, I get this error:

checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.

I've run ldconfig and set LD_LIBRARY_PATH, but that isn't working. Any ideas?

Last edited by Wynd; 03-27-2003 at 08:16 PM.
 
Old 03-27-2003, 08:29 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
It's a wild guess, but what happens if you swap
/usr/lib /usr/local/lib in your ld.so.conf, which
one comes first as of now?

Cheers,
Tink
 
Old 03-27-2003, 08:53 PM   #7
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Actually, /usr/lib isn't in there. I added it to try and fix the first problem I had, but it didn't help so I took it out. I'm pretty sure it doesn't make a difference for this part of the problem, since glib-2.0 is all in /usr/local/lib anyway, /usr/lib is all the 1.x stuff that came with Slackware
 
Old 03-28-2003, 01:25 AM   #8
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Well, I rebooted and came back later, and I get this:
Quote:
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.
When I look in the error log, there is this line:
Quote:
/usr/i386-slackware-linux/bin/ld: cannot find -lglib-2.0
This should point to libglib-2.0.so, right? I have that in /usr/local/lib, which is in the list of paths gcc is supposed to be looking for when it links. The compile command is:
Quote:
gcc -o conftest -I/opt/include -I$(top_srcdir) -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include conftest.c -L/usr/local/lib -lglib-2.0 -lnsl >&5
Why is it not finding the library?
 
Old 03-28-2003, 09:05 AM   #9
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Make sure the library is actually there? It sounds like it should find it.
 
Old 03-29-2003, 12:33 AM   #10
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Quote:
$ ls -l /usr/local/lib/libglib-2.0.so
lrwxrwxrwx 1 root root 22 Mar 25 19:12 /usr/local/lib/libglib-2.0.so -> libglib-2.0.so.0.200.1
 
Old 03-30-2003, 12:48 PM   #11
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Ok, from more trial and error and looking at config.log, I think it's telling me that the glib version in the headers is undefined. This is the error:
Quote:
configure:13390: undefined reference to `glib_major_version'
configure:13390: undefined reference to `glib_minor_version'
configure:13390: undefined reference to `glib_micro_version'
If I change these (in gutils.h) to reflect the correct version, it gives me an error saying the variables are both extern and initialized.
 
Old 03-30-2003, 01:14 PM   #12
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
I'm stumped. I don't know why that is happening, i've never seen this problem before.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conflicting glib versions and glib-config scius Linux - Software 5 06-03-2008 02:35 AM
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
[GLIB] Problems Installing GLIB ThA_eLMo_GoD Linux - Newbie 2 09-04-2004 05:27 PM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
Problems relating to glib 1.2.10 and glib 1.2.9 p3ngu!n Mandriva 10 05-23-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:18 PM.

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