Re: Problems on Gtk2->init
- From: Leonardo Trentini Lang <tlang inf ufsc br>
- To: gtk-perl-list gnome org
- Subject: Re: Problems on Gtk2->init
- Date: Mon, 18 Aug 2003 16:23:14 -0300
Then i downloaded older releases, and had success using gtk2-perl-0.26.
All works well. Gtk2-0.90 didn't worked either.
...
its odd that 0.26 would work, but 0.9x didn't. there's been very little
(if any) change to the code involved with init.
indeed, the code for gtk_init>k_init_check in the bindings hasn't changed
since goran imported the last snapshot to sourceforge four months ago!
I have to say I'm not sure if it was 0.24 or 0.26, but the computer i've tried
both it's not online, and ~140km from here.
The order i tried there: 0.90 -> 0.24 -> 0.26.
So I am *SURE* 0.24 worked, but i am *almost sure* 0.26 worked too.
This computer is *really slow* for compiling/downloading things, so i only can
tell you, for sure, tomorrow.
Tried order:
Machine1: 0.90
Machine2: 0.90
Machine1: 0.24, 0.26
Machine3 (this): 0.94
BTW, I'll download 0.2{4,6} and try'em tonight.
let's do a sanity check:
- do you have only one version of gtk+-2.x installed on your system, and if
not, are you certain that the correct one is being used for build and link?
Yes. Default and clean Slackware installation for gnome and base packages on all
machines.
Last night i've upgraded to Gtk+ 2.2.2.
$ ls /usr/lib/libgtk-*2.0*.so* -la
/usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.200.2*
/usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.200.2*
/usr/lib/libgtk-x11-2.0.so.0.200.1*
/usr/lib/libgtk-x11-2.0.so.0.200.2*
The problem hasn't gone...
(/usr/local links to /usr in my box, so there's no way i've forgotten something
there pointing to another place).
- are you certain that the correct versions of libgtk/libgdk/libglib/etc are
being found at runtime?
There was only that version yesterday.
$ ldd `find /usr/lib/perl5 -name 'Gtk2.so'`
libgthread-2.0.so.0 => /usr/local/lib/libgthread-2.0.so.0 (0x40105000)
libgtk-x11-2.0.so.0 => /usr/local/lib/libgtk-x11-2.0.so.0 (0x4010a000)
libgdk-x11-2.0.so.0 => /usr/local/lib/libgdk-x11-2.0.so.0 (0x40316000)
(...)
So, they seem pointing to the most current version (2.2.2 today). Note the
'/usr/local' thing above.
- did 'make test' pass?
Glibc is ok. Gtk stops at Gtk2->init (4/15).
- did you do the tests with the two versions in the same environment? i.e.,
are you sure you had a connection to the X server in all testing
environments?
I've tried both versions over a clean Slackware 9 installation, in a AMD K6-II.
But the problem is the same for all other installations i've made (home - AMD
Athlon Thunderbird - and home2, here - Pentium II).
Yes, running under xterm, no 'su' open. I did the tests now at the same window
i've did the ldd.
I've even started another xterm inside that to make sure. :^)
- are you using Gtk2->init_add or quit_add? if so, does the problem go away
when you take it out?
Not using.
- are you passing any commandline arguments? i.e. does @ARGV have anything
in it?
I tried passing and not passing. Same thing...
- does it still fail when you hack up the bindings for Gtk2->init and pass a
dummy argc&argv, like this:
{
int argc = 1;
char * argv[] = { 'foo', NULL };
gtk_init (&argc, &argv);
}
Yes, failed. I've even been paranoid enought to g_strdup the strings, so Gtk
could play with them if he wanted to.
As should when some error happends, gtk_init doesn't return. But gtk_init_check
too! Very strange....
failing all of those, would you please send a copy of your script to me or
ross offlist?
Just cut-n-paste the main example from the Gtk2.pm.
Best regards,
--
Leonardo Trentini Lang AKA tlang inf ufsc br
--
Ciências da Computação (cco021)
Universidade Federal de Santa Catarina
--
Usuário GNU/(Linux #217916) -- BNU/SC, Brasil
**************************************************
O único lugar onde o sucesso vem antes do trabalho
é no dicionário. -- Albert Einstein.
**************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]