Gentoo Archives: gentoo-hardened

From: Rujinski Remus <deltha@××××××.ro>
To: gentoo-hardened@g.o
Subject: [gentoo-hardened] Re: sys-apps/mkinitrd-3.5.7 failure
Date: Sat, 22 Nov 2003 15:26:01
Message-Id: 69195070967.20031122172559@analog.ro
In Reply to: [gentoo-hardened] sys-apps/mkinitrd-3.5.7 failure by Rujinski Remus
1 Hello,
2
3 with -yet_exec :
4
5 nash # make
6 diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -c -o nash.o nash.c
7 nash.c: In function `my_pivot_root':
8 nash.c:521: warning: implicit declaration of function `pivot_root'
9 nash.c: In function `runStartup':
10 nash.c:1158: warning: implicit declaration of function `display_uuid_cache'
11 diet gcc -g -o nash nash.o mount_by_label.o
12 /usr/diet/lib-i386/libc.a(sprintf.o)(.text+0x2a): In function `sprintf':
13 : warning: warning: Avoid *sprintf; use *snprintf. It is more secure.
14 nash.o(.text+0x1580): In function `echoCommand':
15 /var/tmp/portage/mkinitrd-3.5.7-r2/work/mkinitrd-3.5.7/nash/nash.c:563: warning: warning: your code uses stdio (7+k bloat).
16 /usr/diet/lib-i386/libc.a(vsnprintf.o)(.text+0xf3): In function `vsnprintf':
17 : warning: warning: the printf functions add several kilobytes of bloat.
18 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0xb9): In function `__stack_smash_handler':
19 /var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2107: undefined reference to `sigfillset'
20 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0xc3):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2108:
21 undefined reference to `sigdelset'
22 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0xd0):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2109:
23 undefined reference to `sigprocmask'
24 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0xea):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2115:
25 undefined reference to `__progname'
26 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0xf9):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2115:
27 undefined reference to `strncat'
28 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x130):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2117:
29 undefined reference to `strncat'
30 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x164):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2118:
31 undefined reference to `strncat'
32 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x1a0):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2123:
33 undefined reference to `socket'
34 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x1ee):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2132:
35 undefined reference to `sendto'
36 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x213):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2142:
37 undefined reference to `sigfillset'
38 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x234):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2145:
39 undefined reference to `sigaction'
40 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x23e):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2146:
41 undefined reference to `getpid'
42 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0x246):/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2146:
43 undefined reference to `kill'
44 collect2: ld returned 1 exit status
45 make: *** [nash] Error 1
46
47 Saturday, November 22, 2003, 2:55:14 PM, you wrote:
48
49 AG> hi,
50
51 AG> either the assembler construction of the syscall must be commented out,
52 AG> like we did in libcap, or the package must be built with CC="${CC}
53 AG> -yet_exec"
54
55 AG> HTH,
56
57 AG> Alex
58
59 AG> On Fri, 2003-11-21 at 23:23, Rujinski Remus wrote:
60
61
62
63
64 Saturday, November 22, 2003, 12:23:22 AM, I wrote:
65
66 RR> Hello,
67
68 RR> I couldn't mkinitrd on stage3-x86-etdyn-ssp-20031107 based gentoo...
69 RR> How to fix that?
70
71 RR> cdimage / # emerge mkinitrd
72 RR> Calculating dependencies ...done!
73 >>>> emerge (1 of 1) sys-apps/mkinitrd-3.5.7 to /
74 >>>> md5 src_uri ;-) mkinitrd-3.5.7.tar.bz2
75 >>>> Unpacking source...
76 >>>> Unpacking mkinitrd-3.5.7.tar.bz2 to /var/tmp/portage/mkinitrd-3.5.7/work
77 >>>> Source unpacked.
78 RR> diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -c -o nash.o nash.c
79 RR> diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -c -o mount_by_label.o mount_by_label.c
80 RR> nash.c: In function `runStartup':
81 RR> nash.c:1158: warning: implicit declaration of function `display_uuid_cache'
82 RR> nash.c: In function `pivot_root':
83 RR> nash.c:76: can't find a register in class `BREG' while reloading `asm'
84 RR> make: *** [nash.o] Error 1
85
86 RR> !!! ERROR: sys-apps/mkinitrd-3.5.7 failed.
87 RR> !!! Function src_compile, Line 33, Exitcode 2
88 RR> !!! nash compile failed.
89
90
91 RR> And verbose :
92
93 RR> nash # make
94 RR> diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -v -c -o nash.o nash.c
95 RR> Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/specs
96 RR> Configured with: /var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/include
97 RR> --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.2/info --enable-shared
98 RR> --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio
99 RR> --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local
100 RR> --enable-shared --enable-nls --without-included-gettext
101 RR> Thread model: posix
102 RR> gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
103 RR> /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/cc1 -lang-c -v -I/usr/diet/include -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__
104 RR> -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__PIC__ -D__pic__ -Acpu=i386 -Amachine=i386 -Di386 -D__i386
105 RR> -D__i386__ -D__tune_i386__ -DVERSION="3.5.7" -DUSE_DIET=1 -D__dietlibc__ -include /usr/diet/include/dietref.h nash.c -fPIC -fstack-protector -quiet -dumpbase nash.c -g -Wall -version -o
106 RR> /tmp/ccaUk7rv.s
107 RR> GNU CPP version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) (cpplib) (i386 Linux/ELF)
108 RR> GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) (i386-pc-linux-gnu)
109 RR> compiled by GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice).
110 RR> ignoring nonexistent directory "/usr/local/include"
111 RR> ignoring nonexistent directory "/usr/i386-pc-linux-gnu/include"
112 RR> #include "..." search starts here:
113 RR> #include <...> search starts here:
114 RR> /usr/diet/include
115 RR> /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/include
116 RR> /usr/include
117 RR> End of search list.
118 RR> nash.c: In function `runStartup':
119 RR> nash.c:1158: warning: implicit declaration of function `display_uuid_cache'
120 RR> nash.c: In function `pivot_root':
121 RR> nash.c:76: can't find a register in class `BREG' while reloading `asm'
122 RR> make: *** [nash.o] Error 1
123
124
125
126
127
128
129 --
130 Best regards,
131 Rujinski mailto:deltha@××××××.ro
132
133
134 --
135 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] Re: sys-apps/mkinitrd-3.5.7 failure Alexander Gabert <pappy@g.o>