Gentoo Archives: gentoo-user

From: Matthias Bethke <matthias@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] QTrouble: static libraries?
Date: Sun, 14 May 2006 23:44:57
Message-Id: 20060514233552.GA2037@huxley
In Reply to: Re: [gentoo-user] QTrouble: static libraries? by Richard Fish
1 Hi Richard,
2 on Saturday, 2006-05-13 at 10:29:53, you wrote:
3 > Well the building of static libraries is on a per package basis, so I
4 > guess your fastest option here is to copy the qt ebuild to your
5 > overlay directory and modify it to make a static library. You could
6 > also file a bug report on bugzilla requesting the change for qt, if
7 > there isn't already an existing report for this.
8
9 OK, I'll try the local ebuild first.
10
11 > However, my guess is that you are on the wrong track. It really
12 > sounds like the DISPLAY environment variable is not set correctly, or
13 > possibly the program is modifying it's own environment for some
14 > reason....maybe an strace of the program would reveal more.
15
16 Well, other X programs work just fine from the same ssh session, so it
17 can't be the environment. The program doesn't modify anything in it
18 either, I checked that much. But the strace I hadn't tried yet---here's
19 the halfway interesting bit:
20 | access("/usr/lib/qt3//plugins", F_OK) = -1 ENOENT (No such file or directory)
21 | access("/root/.qt", F_OK) = 0
22 | lstat64("/root/.qt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
23 | brk(0x868a000) = 0x868a000
24 | access("/etc/X11//qtrc", F_OK) = -1 ENOENT (No such file or directory)
25 | access("/root/.qt/qtrc", F_OK) = 0
26 | [trying to read empty qtrc]
27 | munmap(0x40000000, 4096) = 0
28 | fcntl64(3, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}, 0xbf9dbe60) = 0
29 | close(3) = 0
30 | write(2, "usrmgr: cannot connect to X serv"..., 35usrmgr: cannot connect to X server ) = 35
31 It doesn't matter if the plugins dir ot /root/.qt/qtrc is there or not.
32 I can even put the old server's /etc/X11/qtrc in place, no difference.
33 I'll play with strace some more, looks like the program used some call
34 that's not traced by default because it's not even trying to read
35 $DISPLAY; the error seems to be something generic.
36
37 cheers!
38 Matthias
39 --
40 I prefer encrypted and signed messages. KeyID: FAC37665
41 Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665

Replies

Subject Author
Re: [gentoo-user] QTrouble: static libraries? Richard Fish <bigfish@××××××××××.org>