Gentoo Archives: gentoo-hardened

From: Alexander Gabert <pappy@g.o>
To: Rujinschi Remus <deltha@××××××.ro>
Cc: gentoo-hardened@g.o
Subject: Re: [gentoo-hardened] Re: sys-apps/mkinitrd-3.5.7 failure
Date: Sat, 22 Nov 2003 17:10:00
Message-Id: 1069521086.3261.14.camel@camille.external
In Reply to: [gentoo-hardened] Re: sys-apps/mkinitrd-3.5.7 failure by Rujinski Remus
1 hi
2
3 to temporarily dry run it, use hcc -r
4
5 if this works, try CC="${CC} -yet_exec -yno_propolice"
6 this bug you encountering is known and happening with automatic
7 propolice
8
9 TIA,
10
11 Alex
12
13 On Sat, 2003-11-22 at 16:25, Rujinski Remus wrote:
14 > Hello,
15 >
16 > with -yet_exec :
17 >
18 > nash # make
19 > diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -c -o nash.o nash.c
20 > nash.c: In function `my_pivot_root':
21 > nash.c:521: warning: implicit declaration of function `pivot_root'
22 > nash.c: In function `runStartup':
23 > nash.c:1158: warning: implicit declaration of function `display_uuid_cache'
24 > diet gcc -g -o nash nash.o mount_by_label.o
25 > /usr/diet/lib-i386/libc.a(sprintf.o)(.text+0x2a): In function `sprintf':
26 > : warning: warning: Avoid *sprintf; use *snprintf. It is more secure.
27 > nash.o(.text+0x1580): In function `echoCommand':
28 > /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).
29 > /usr/diet/lib-i386/libc.a(vsnprintf.o)(.text+0xf3): In function `vsnprintf':
30 > : warning: warning: the printf functions add several kilobytes of bloat.
31 > /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/libgcc.a(_stack_smash_handler.oS)(.text+0xb9): In function `__stack_smash_handler':
32 > /var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/libgcc2.c:2107: undefined reference to `sigfillset'
33 > /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:
34 > undefined reference to `sigdelset'
35 > /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:
36 > undefined reference to `sigprocmask'
37 > /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:
38 > undefined reference to `__progname'
39 > /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:
40 > undefined reference to `strncat'
41 > /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:
42 > undefined reference to `strncat'
43 > /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:
44 > undefined reference to `strncat'
45 > /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:
46 > undefined reference to `socket'
47 > /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:
48 > undefined reference to `sendto'
49 > /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:
50 > undefined reference to `sigfillset'
51 > /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:
52 > undefined reference to `sigaction'
53 > /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:
54 > undefined reference to `getpid'
55 > /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:
56 > undefined reference to `kill'
57 > collect2: ld returned 1 exit status
58 > make: *** [nash] Error 1
59 >
60 > Saturday, November 22, 2003, 2:55:14 PM, you wrote:
61 >
62 > AG> hi,
63 >
64 > AG> either the assembler construction of the syscall must be commented out,
65 > AG> like we did in libcap, or the package must be built with CC="${CC}
66 > AG> -yet_exec"
67 >
68 > AG> HTH,
69 >
70 > AG> Alex
71 >
72 > AG> On Fri, 2003-11-21 at 23:23, Rujinski Remus wrote:
73 >
74 >
75 >
76 >
77 > Saturday, November 22, 2003, 12:23:22 AM, I wrote:
78 >
79 > RR> Hello,
80 >
81 > RR> I couldn't mkinitrd on stage3-x86-etdyn-ssp-20031107 based gentoo...
82 > RR> How to fix that?
83 >
84 > RR> cdimage / # emerge mkinitrd
85 > RR> Calculating dependencies ...done!
86 > >>>> emerge (1 of 1) sys-apps/mkinitrd-3.5.7 to /
87 > >>>> md5 src_uri ;-) mkinitrd-3.5.7.tar.bz2
88 > >>>> Unpacking source...
89 > >>>> Unpacking mkinitrd-3.5.7.tar.bz2 to /var/tmp/portage/mkinitrd-3.5.7/work
90 > >>>> Source unpacked.
91 > RR> diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -c -o nash.o nash.c
92 > RR> diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -c -o mount_by_label.o mount_by_label.c
93 > RR> nash.c: In function `runStartup':
94 > RR> nash.c:1158: warning: implicit declaration of function `display_uuid_cache'
95 > RR> nash.c: In function `pivot_root':
96 > RR> nash.c:76: can't find a register in class `BREG' while reloading `asm'
97 > RR> make: *** [nash.o] Error 1
98 >
99 > RR> !!! ERROR: sys-apps/mkinitrd-3.5.7 failed.
100 > RR> !!! Function src_compile, Line 33, Exitcode 2
101 > RR> !!! nash compile failed.
102 >
103 >
104 > RR> And verbose :
105 >
106 > RR> nash # make
107 > RR> diet gcc -Wall -DVERSION=\"3.5.7\" -g -DUSE_DIET=1 -v -c -o nash.o nash.c
108 > RR> Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/specs
109 > 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
110 > 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
111 > 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
112 > 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
113 > RR> --enable-shared --enable-nls --without-included-gettext
114 > RR> Thread model: posix
115 > RR> gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
116 > 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__
117 > 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
118 > 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
119 > RR> /tmp/ccaUk7rv.s
120 > RR> GNU CPP version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) (cpplib) (i386 Linux/ELF)
121 > RR> GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) (i386-pc-linux-gnu)
122 > RR> compiled by GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice).
123 > RR> ignoring nonexistent directory "/usr/local/include"
124 > RR> ignoring nonexistent directory "/usr/i386-pc-linux-gnu/include"
125 > RR> #include "..." search starts here:
126 > RR> #include <...> search starts here:
127 > RR> /usr/diet/include
128 > RR> /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.3/include
129 > RR> /usr/include
130 > RR> End of search list.
131 > RR> nash.c: In function `runStartup':
132 > RR> nash.c:1158: warning: implicit declaration of function `display_uuid_cache'
133 > RR> nash.c: In function `pivot_root':
134 > RR> nash.c:76: can't find a register in class `BREG' while reloading `asm'
135 > RR> make: *** [nash.o] Error 1
136 >
137 >
138 >
139 >
140 >
141
142
143 --
144 gentoo-hardened@g.o mailing list