LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   problems installing ligtk2.0 (https://www.linuxquestions.org/questions/debian-26/problems-installing-ligtk2-0-a-307348/)

joseao 03-29-2005 08:03 AM

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

joseao 03-30-2005 09:57 AM

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

firstfire 03-24-2006 03:30 AM

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).


All times are GMT -5. The time now is 11:24 PM.