LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-29-2005, 08:03 AM   #1
joseao
LQ Newbie
 
Registered: Dec 2003
Location: Campina Grande -PB - Brazil
Distribution: Debian, RedHat
Posts: 3

Rep: Reputation: 0
problems installing ligtk2.0


Hi misters,
i'm trying to install libgtk2.0 on debian - sarge by apt-get, and got:
Setting up libgtk2.0-bin ...
Updating the IM modules list for GTK+-2.4.0...Cannot load module
/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so:
/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so: undefined symbol:
g_assert_warning
/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so does not export GTK+ IM module
API: /usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so: undefined symbol:
g_assert_warning

Somebody knows what was wrong?
thank's, in advance.

joseao
 
Old 03-30-2005, 09:57 AM   #2
joseao
LQ Newbie
 
Registered: Dec 2003
Location: Campina Grande -PB - Brazil
Distribution: Debian, RedHat
Posts: 3

Original Poster
Rep: Reputation: 0
Hi. I found the problem: gtk2-0.pc in /usr/local/lib/pkgconfig and /usr/lib/pkgconfig. Removing gtk2's libs and pc files was the solution.
thanks
 
Old 03-24-2006, 03:30 AM   #3
firstfire
Member
 
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian, Ubuntu
Posts: 709

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
Brute force method. I use static library (im-xim.a).
First, extract objects from `.a' via command:
$ ar -x im-xim.a
Place next code to file b.c:
// file b.c
void g_assert_warning() { }
// end b.c
and compile:
$ gcc -fPIC -c b.c
Run next:
$ gcc -Wl,-export-dynamic -shared -o lib.so gtkimcontextxim.o imxim.o b.o
to obtain new library (lib.so). Replace im-xim.so with this file.
Of course it just prevent error messages, it's not a solution. Solution
is replace whole gtk with new version (i think).
 
  


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
Problems installing amsn (TK compiling problems) JNewton Linux - Software 0 05-24-2004 12:07 PM
Problems installing sogates Mandriva 4 04-30-2004 09:09 AM
problems installing redhat 9; usb problems (I think) nhelseth Linux - Newbie 2 04-27-2004 04:17 PM
Problems installing RH 7.2 greycelt Linux - Newbie 2 03-17-2003 09:37 PM
problems installing from the cd rhstudent Linux - Software 3 02-03-2002 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:55 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