Gentoo Archives: gentoo-user-de

From: Werner Jansen <jansenw@××××××.edu>
To: gentoo-user-de@l.g.o
Subject: [gentoo-user-de] Usermode-sources compilieren
Date: Sun, 05 Dec 2004 17:11:07
Message-Id: 20041205181104.2356e19a@tinydancer.phaoust.de
1 Moin alle!
2
3 Nachdem ich einige andere Dinge mehr oder weniger gut auf die Reihe
4 bekommen habe, wollt ich mich wieder dem Usermode Linux zuwenden. Mit
5 dem Ergebnis: Es will sich mir nicht zuwenden. :)
6
7 Beim compilieren der usermode-sourcen bekomme ich Fehlermeldungen.
8 Meist eine, die wohl schon bekannt ist
9 (http://bugs.gentoo.org/show_bug.cgi?id=49277):
10
11 vmlinux(.text+0xeef30): In function `strcpy':
12 lib/string.c:71: multiple definition of `strcpy'
13 arch/um/kernel/tt/unmap_fin.o(.text+0x39510): first defined here
14 /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linux-gn
15 u/bin/ld: Warning: size of symbol `strcpy' changed from 139 in
16 arch/um/kernel/tt/unmap_fin.o to 31 in vmlinux vmlinux(.text+0xef180):
17 In function `strrchr': lib/string.c:273: multiple definition of
18 `strrchr' arch/um/kernel/tt/unmap_fin.o(.text+0x6cc0): first defined
19 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
20 x-gnu/bin/ld: Warning: size of symbol `strrchr' changed from 441 in
21 arch/um/kernel/tt/unmap_fin.o to 47 in vmlinux vmlinux(.text+0xef110):
22 In function `strncmp': lib/string.c:236: multiple definition of
23 `strncmp' arch/um/kernel/tt/unmap_fin.o(.text+0x6be0): first defined
24 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
25 x-gnu/bin/ld: Warning: size of symbol `strncmp' changed from 216 in
26 arch/um/kernel/tt/unmap_fin.o to 55 in vmlinux vmlinux(.text+0xeef50):
27 In function `strncpy': lib/string.c:92: multiple definition of
28 `strncpy' arch/um/kernel/tt/unmap_fin.o(.text+0x8e0): first defined
29 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
30 x-gnu/bin/ld: Warning: size of symbol `strncpy' changed from 132 in
31 arch/um/kernel/tt/unmap_fin.o to 39 in vmlinux vmlinux(.text+0xf03b0):
32 In function `sscanf': lib/vsprintf.c:836: multiple definition of
33 `sscanf' arch/um/kernel/tt/unmap_fin.o(.text+0x36f80): first defined
34 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
35 x-gnu/bin/ld: Warning: size of symbol `sscanf' changed from 40 in
36 arch/um/kernel/tt/unmap_fin.o to 27 in vmlinux vmlinux(.text+0xef000):
37 In function `strncat': lib/string.c:162: multiple definition of
38 `strncat' arch/um/kernel/tt/unmap_fin.o(.text+0x830): first defined
39 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
40 x-gnu/bin/ld: Warning: size of symbol `strncat' changed from 168 in
41 arch/um/kernel/tt/unmap_fin.o to 75 in vmlinux vmlinux(.text+0xef0e0):
42 In function `strcmp': lib/string.c:215: multiple definition of
43 `strcmp' arch/um/kernel/tt/unmap_fin.o(.text+0x6ad0): first defined
44 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
45 x-gnu/bin/ld: Warning: size of symbol `strcmp' changed from 66 in
46 arch/um/kernel/tt/unmap_fin.o to 38 in vmlinux vmlinux(.text+0xef150):
47 In function `strchr': lib/string.c:257: multiple definition of
48 `strchr' arch/um/kernel/tt/unmap_fin.o(.text+0x6900): first defined
49 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
50 x-gnu/bin/ld: Warning: size of symbol `strchr' changed from 449 in
51 arch/um/kernel/tt/unmap_fin.o to 36 in vmlinux vmlinux(.text+0xef290):
52 In function `strpbrk': lib/string.c:394: multiple definition of
53 `strpbrk' arch/um/kernel/tt/unmap_fin.o(.text+0x39680): first defined
54 here/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.4/../../../../i586-pc-linu
55 x-gnu/bin/ld: Warning: size of symbol `strpbrk' changed from 179 in
56 arch/um/kernel/tt/unmap_fin.o to 66 in vmlinux collect2: ld returned 1
57 exit status
58
59 Hab bereits verschiedenste usermode-Kernel ausprobiert
60 (usermode-source-2.4 und 2.6.6 und 2.6.8), keine Veränderung. Hab wo
61 gelesen, daß es mit NPTL zusammenhängt angeblich, bei mir kann das
62 nicht sein, hab kein NPTL.
63
64 Die "Lösungsvorschläge" aus Bugzilla funktionieren auch alle nicht bei
65 mir, keine Ahnung, was ich noch machen soll ...
66
67
68 Bei der neuesten Version von usermode-sources-2.6.8-r5 mal was Neues:
69
70 [..]
71 CC net/unix/af_unix.o
72 net/unix/af_unix.c: In function `unix_dgram_recvmsg':
73 net/unix/af_unix.c:1549: error: structure has no member named
74 `protinfo' net/unix/af_unix.c:1604: error: structure has no member
75 named `protinfo' make[2]: *** [net/unix/af_unix.o] Error 1
76 make[1]: *** [net/unix] Error 2
77 make: *** [net] Error 2
78
79 (nach make oldconfig ARCH=um)
80
81 Mein System:
82 Linux hades 2.6.7-hardened-r8 #1 Sat Sep 18 15:43:44 CEST 2004 i686
83 VIA Samuel 2 CentaurHauls GNU/Linux
84
85 gcc (GCC) 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2,
86 pie-8.7.6)
87
88 GNU C Library 20040808 release version 2.3.4, by Roland McGrath et al.
89 Copyright (C) 2004 Free Software Foundation, Inc.
90 This is free software; see the source for copying conditions.
91 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
92 PARTICULAR PURPOSE.
93 Compiled by GNU CC version 3.3.4 20040623 (Gentoo Hardened Linux
94 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6).
95
96 Hat jemand von euch nen usermode-Kernel unter hardened-dev-sources zum
97 Laufen gebracht?
98
99 Hoping For An Answer ... :)
100
101 CU
102 Werner
103
104 --
105 gentoo-user-de@g.o mailing list