Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Fwd: FontForge needs conversion from ISO-8859-1 to UCS2 - iconv (glibc-2.3.5-r2) does not support it on amd64
Date: Wed, 26 Apr 2006 20:39:22
Message-Id: 20060426223451.06783334.hilse@web.de
In Reply to: Re: [gentoo-user] Fwd: FontForge needs conversion from ISO-8859-1 to UCS2 - iconv (glibc-2.3.5-r2) does not support it on amd64 by "Michael [Plouj] Ploujnikov"
1 Hi,
2
3 On Wed, 26 Apr 2006 14:09:18 -0400
4 "Michael [Plouj] Ploujnikov" <ploujj@×××××.com> wrote:
5
6 > Here is the strace output: http://plouj.sh.nu/straceiconv
7
8 from that output:
9 ---snip
10 open("/usr/lib32/gconv/UNICODE.so", O_RDONLY) = 4
11 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \5\0\000"..., 640) = 640
12 close(4) = 0
13 open("/usr/lib32/gconv/ISO8859-1.so", O_RDONLY) = 4
14 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\4\0"..., 640) = 640
15 close(4) = 0
16 ---snip
17
18 So it opens a file, reads 640 bytes and closes it. Note the "/lib32".
19 Now this is my output, 32bit platform:
20
21 ---snip
22 open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 3
23 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\4\0"..., 512) = 512
24 fstat64(3, {st_mode=S_IFREG|0755, st_size=9720, ...}) = 0
25 mmap2(NULL, 12316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7de4000
26 mmap2(0xb7de6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7de6000
27 ---snip
28
29 So after reading the first 512 bytes, it mmap's a code section and a
30 data section into address space. Dynamic loading, I'd say (without
31 further debugging). So this seems to fail for you and I think the
32 "lib32" indicates that the 64bit glibc errorneously tries to load the
33 wrong modules for iconv.
34
35 Maybe you can temporarily move the lib32/gconv dir and soft link the
36 lib64/gconf in place of it to verify my assumption (it should work
37 then, but this is obviously not a solution as it will break 32bit
38 environment). You might want to file a bug into gentoo's bugzilla
39 (after searching for an existing one, of course).
40
41 > By looking at /usr/lib{64,32}/gconv/gconv-modules (wich are identical)
42 > it looks like there really isn't any conversion specified from
43 > ISO-8859-1 to any other code.
44
45 Strange. Mine has:
46 ---snip
47 module ISO-8859-1// INTERNAL ISO8859-1 1
48 ---snip
49
50 (whatever that means)
51
52 -hwh
53 --
54 gentoo-user@g.o mailing list

Replies