[gtk-list] Re: getpwuid_r() + x io error : What the ... ?
- From: Matt Gushee <mgushee havenrock com>
- To: gtk-list redhat com
- Subject: [gtk-list] Re: getpwuid_r() + x io error : What the ... ?
- Date: Sun, 19 Dec 1999 03:00:13 -0500 (EST)
turnere writes:
> > > Matt Gushee <mgushee@havenrock.com> writes:
> > > > GLib-WARNING **: getpwuid_r(): failed due to: No such user 500.
> I've seen this same error when running a staticly compiled Gtk+/GLib
> program (compiled on a GLIBC 2.1 host) on a GLIBC 2.0 host. (RedHat 6.1
> vs. 5.2, in this case).
Hmm, okay. Well, I tried this:
$ ldd /usr/lib/libwx_gtk-2.1.so.11.0.0
libwcsmbs.so.0 => /lib/libwcsmbs.so.0 (0x403ba000)
libc.so.6 => /lib/libc.so.6 (0x403c0000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
Now, I would think it should be dynamically linked to libgtk, etc. And
$ grep configure /usr/src/redhat/SPECS/wxGTK.spec
./configure --prefix=%{pref} --enable-threads --disable-std_iostreams
--disable-newgrid
No --disable-shared . Nor can I find any other evidence that indicates
that it shouldn't have been dynamically linked with everything. Or
doesn't 'everything' include the GTK libs. Are there any wxWindows
users here who can comment?
> + Besides, I think the X io error is the critical one.
>
> Well, yes, it is. But it's distinctly possible that the io error is caused
> because of the uid error. If somehow the X client isn't getting your identity
> right, the server would probably refuse to let you connect.
>
> One workaround you might try is to give the command:
> xhost localhost
No go. I tried
$ xhost localhost
$ xhost + localhost
$ xhost + 127.0.0.1
$ xhost + matt@localhost (is this ok? the man page suggests it is)
$ xhost + matt@127.0.0.1
$ xhost +
$ xhost + 500
Didn't work.
Interestingly, though:
$ xhost + matt@localhost
matt@localhost being added to access control list
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0xfe
Serial number of failed request: 8
Current serial number in output stream: 10
and:
$ xhost + 500
500 being added to access control list
$ xhost
access control enabled, only authorized clients can connect
INET:0.0.1.244 # huh?
INET:localhost
LOCAL:
Are these significant clues?
Matt Gushee
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]