LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 06-28-2011, 05:31 AM   #1
r2rX
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
A small issue with 'symbol lookup error - g_date_time_unref'..assistance appreciated.


Hey guys,

I've been experimenting with Linux for a few years now; pretty much Debian-based distros -> Ubuntu and, now, Linux Mint Debian Edition.

Linux Mint Debian Edition x64 is installed and running quite nicely. But as most 64bit users know, you have to take care of the 32bit libraries in order to run alot of software....well, only if you need to run 32bit software.

So, in practice, the first steps are to install ia32-libs and ia32-libs-gtk. That's the foundation. But sometimes that isn't enough....so, depending on your application, you have to discover it's dependencies....via 'ldd'.

For whichever libraries are required, I head over to the Debian 'testing' respository (which LMDE is based off) and search. So after satisfying the dependencies it should be good....take the following as example:

Code:
xxx@xxx ~/Floola $ ldd Floola
	linux-gate.so.1 =>  (0xf772b000)
	libgtk-x11-2.0.so.0 => /usr/lib32/libgtk-x11-2.0.so.0 (0xf732e000)
	libgdk-x11-2.0.so.0 => /usr/lib32/libgdk-x11-2.0.so.0 (0xf7293000)
	libgmodule-2.0.so.0 => /usr/lib32/libgmodule-2.0.so.0 (0xf728f000)
	libglib-2.0.so.0 => /lib32/libglib-2.0.so.0 (0xf71c6000)
	libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf71c1000)
	libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf7177000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib32/libgdk_pixbuf-2.0.so.0 (0xf715b000)
	libpango-1.0.so.0 => /usr/lib32/libpango-1.0.so.0 (0xf7117000)
	libpangocairo-1.0.so.0 => /usr/lib32/libpangocairo-1.0.so.0 (0xf710c000)
	libpangoft2-1.0.so.0 => /usr/lib32/libpangoft2-1.0.so.0 (0xf70e6000)
	libpthread.so.0 => /lib32/libpthread.so.0 (0xf70cc000)
	libdl.so.2 => /lib32/libdl.so.2 (0xf70c8000)
	libXi.so.6 => /usr/lib32/libXi.so.6 (0xf70bb000)
	libXext.so.6 => /usr/lib32/libXext.so.6 (0xf70ac000)
	libX11.so.6 => /usr/lib32/libX11.so.6 (0xf6f8f000)
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf6ea1000)
	libm.so.6 => /lib32/libm.so.6 (0xf6e7a000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf6e5d000)
	libc.so.6 => /lib32/libc.so.6 (0xf6d03000)
	libcairo.so.2 => /usr/lib32/libcairo.so.2 (0xf6c4d000)
	libXcomposite.so.1 => /usr/lib32/libXcomposite.so.1 (0xf6c4a000)
	libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf6c46000)
	libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf6c41000)
	libatk-1.0.so.0 => /usr/lib32/libatk-1.0.so.0 (0xf6c25000)
	libgio-2.0.so.0 => /usr/lib32/libgio-2.0.so.0 (0xf6b1f000)
	libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf6aa8000)
	libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf6a78000)
	librt.so.1 => /lib32/librt.so.1 (0xf6a6f000)
	libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf6a66000)
	libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf6a63000)
	libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf6a5c000)
	libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf6a52000)
	libpcre.so.3 => /lib32/libpcre.so.3 (0xf6a1f000)
	libz.so.1 => /usr/lib32/libz.so.1 (0xf6a0b000)
	/lib/ld-linux.so.2 (0xf772c000)
	libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf69f2000)
	libpixman-1.so.0 => /usr/lib32/libpixman-1.so.0 (0xf697c000)
	libpng12.so.0 => /lib32/libpng12.so.0 (0xf6958000)
	libxcb-shm.so.0 => /usr/lib32/libxcb-shm.so.0 (0xf6955000)
	libxcb-render.so.0 => /usr/lib32/libxcb-render.so.0 (0xf694e000)
	libresolv.so.2 => /lib32/libresolv.so.2 (0xf693a000)
	libselinux.so.1 => /lib32/libselinux.so.1 (0xf691e000)
	libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf68f8000)
	libXau.so.6 => /usr/lib32/libXau.so.6 (0xf68f5000)
	libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf68f0000)
However, when trying to run the program the following error occurs:

Code:
xxx@xxx ~/Floola $ ./Floola
./Floola: symbol lookup error: /usr/lib32/libgobject-2.0.so.0: undefined symbol: g_date_time_unref
So from some research, this indicates an issue with a date stamp/version conflict...if this is incorrect, please enlighten me....this is part of the learning process.

Anyway, this error occurs with other 32bit software i'm trying to run.

The strange thing, though, is that i've done a fresh install of LMDE and ran the same process of setting up the 32bit libs as I did before....but this time I get this error.

So what does this error mean? And how can it be corrected?

All the help is appreciated,

r2rX
 
Old 06-29-2011, 03:34 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,953

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Thinking, it seems that it passes the library as ok, but misses that symbol. At some stage the cpu goes to execute a library routine and doesn't get it. Usually, lib is too old.

Does it pass ldd?

ldd /path/to/executable |grep found

should return nothing
 
Old 07-03-2011, 04:46 PM   #3
r2rX
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Hey,

Sorry for the late reply......I ran the command...it returned nothing, as you said.

r2rX
 
Old 07-07-2011, 05:00 AM   #4
r2rX
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid
OK. Let's go back to the error.
Quote:
./Floola: symbol lookup error: /usr/lib32/libgobject-2.0.so.0: undefined symbol: g_date_time_unref
That library can be referenced as folliows
libgobject-2.0.so (symlink)
libgobject-2.0.so.0 (symlink)
libgobject-2.0.so.0.n.n where n.n are extra version numbers. For instance, on this box,
libgobject-2.0.so.0.2800.6 is provided by glib2-2.28.6.

ls -l /usr/lib(64)/libgobject-2.0.so* #should tell you what you have

I imagine you may need to update glib.
Thanks for the reply, business_kid. The info is as follows:

Code:
r2rx@r2rx ~/Desktop $ ls -l /usr/lib/libgobject-2.0.so*
lrwxrwxrwx 1 root root     26 Jun 27 22:14 /usr/lib/libgobject-2.0.so.0 -> libgobject-2.0.so.0.2800.6
-rw-r--r-- 1 root root 331720 Apr 14 11:08 /usr/lib/libgobject-2.0.so.0.2800.6
r2rx@r2rx ~/Desktop $ ls -l /usr/lib64/libgobject-2.0.so*
lrwxrwxrwx 1 root root     26 Jun 27 22:14 /usr/lib64/libgobject-2.0.so.0 -> libgobject-2.0.so.0.2800.6
-rw-r--r-- 1 root root 331720 Apr 14 11:08 /usr/lib64/libgobject-2.0.so.0.2800.6
Both the 32-bit and 64-bit libs seem to be the same version.....

r2rX
 
Old 07-08-2011, 03:13 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,953

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Start googling that symbol. The first interesting read I found was comment #2 on this
http://www.linuxquestions.org/questi...system-867795/
 
Old 07-25-2011, 04:19 AM   #6
r2rX
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Hey guys,

Sorry for the very late reply...but I managed to solve the issue...and it was quite silly.

Basically, there were two versions of libgobject in the /usr/lib32/ folder : libgobject-2.0.so.0.2800 and libgobject-2.0.so.0.2400....so, I removed the latter and it works now.

Thanks, business_kid, for the feedback.

r2rX
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_file_link bagi Slackware 3 05-17-2011 07:49 AM
glib error while installing patch: symbol lookup error undefined symbol: g_dgettext mthakare Linux - Software 1 06-14-2010 04:01 AM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 08:14 AM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 04:48 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration