Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] QTrouble: static libraries?
Date: Mon, 15 May 2006 01:31:13
Message-Id: 7573e9640605141819j2f6703dibb29242c4ef1d053@mail.gmail.com
In Reply to: Re: [gentoo-user] QTrouble: static libraries? by Matthias Bethke
1 On 5/14/06, Matthias Bethke <matthias@×××××××.de> wrote:
2 > I'll play with strace some more, looks like the program used some call
3 > that's not traced by default because it's not even trying to read
4 > $DISPLAY; the error seems to be something generic.
5
6 Just an FYI, you won't see the environment access with strace. Strace
7 works on system calls, and since reading or writing the environment
8 doesn't involve a call to the kernel, you won't see that there. You
9 can see the environment that the program is called with if you add the
10 -v option to strace however.
11
12 BUT, you should see at least an attempt to connect() to something. I
13 mean, how can it claim that it cannot connect to an X server without
14 even trying??? :-) For example, when running xclock locally, I see
15 these:
16
17 socket(PF_FILE, SOCK_STREAM, 0) = 3
18 ...
19 connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 19) = 0
20
21 When running over an ssh connection, I have:
22
23 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
24 setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
25 ...
26 setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
27 connect(3, {sa_family=AF_INET, sin_port=htons(6010),
28 sin_addr=inet_addr("127.0.0.1")}, 16) = 0
29
30 You should see something similar.
31
32 HTH,
33 -Richard
34
35 --
36 gentoo-user@g.o mailing list