Gentoo Archives: gentoo-embedded

From: Ned Ludd <solar@g.o>
To: Natanael Copa <mlists@××××××.org>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] uclibc don't compile with USE="hardened"
Date: Tue, 10 Aug 2004 20:47:55
Message-Id: 1092170792.20143.78.camel@simple
In Reply to: [gentoo-embedded] uclibc don't compile with USE="hardened" by Natanael Copa
1 I've run into this when using spanky's stages.
2 Oddly enough it does not happen for me when I started with the
3 initial hardened stage1 from Peter, nor any time I remerge uclibc and I
4 use the hardened exclusively. Anyway chances of a user getting his/her
5 userland correct when using a non hardened-uclibc stage are probably
6 slim, unless your willing to recompile everything a few times. The
7 default method in the future will be to start from a hardened-uclibc
8 stage.
9
10 Anyway if you want a binary pkgs of a hardened uclibc toolchain I can
11 post them for you. From then on you should be able to recompile your
12 world correctly.
13
14 Oh and let me know when you have a patch that fixes this.
15
16 On Tue, 2004-08-10 at 10:24, Natanael Copa wrote:
17 > I run this:
18 > ucgentoo:/ # ROOT=/usr/src/alpine/live/ CFLAGS="-Os -march=i386" USE="hardened" emerge uclibc
19 >
20 > Here is the last of the output:
21 >
22 > ../../../../include/bits/socket.h:55:1: warning: this is the location of the previous definition
23 > In file included from ../../../../include/bits/socket.h:305,
24 > from ../../../../include/sys/socket.h:35,
25 > from ssp.c:29:
26 > ../../../../include/asm/socket.h:58:1: warning: "SOCK_PACKET" redefined
27 > In file included from ../../../../include/sys/socket.h:35,
28 > from ssp.c:29:
29 > ../../../../include/bits/socket.h:59:1: warning: this is the location of the previous definition
30 > In file included from ../../../../include/linux/list.h:5,
31 > from ../../../../include/linux/sysctl.h:23,
32 > from ../../../../include/sys/sysctl.h:28,
33 > from ssp.c:33:
34 > ../../../../include/linux/prefetch.h: In function `prefetch_range':
35 > ../../../../include/linux/prefetch.h:62: warning: implicit declaration of function `__cast__'
36 > ../../../../include/linux/prefetch.h:62: error: syntax error before "char"
37 > ../../../../include/linux/prefetch.h:64: error: syntax error before "char"
38 > ../../../../include/linux/prefetch.h:64: error: syntax error before ')' token
39 > ../../../../include/linux/prefetch.h:64: warning: statement with no effect
40 > make[4]: *** [ssp.o] Error 1
41 > make[4]: Leaving directory `/var/tmp/portage/uclibc-0.9.26-r5/work/uClibc-0.9.26/libc/sysdeps/linux/common'
42 > make[3]: *** [common] Error 2
43 > make[3]: Leaving directory `/var/tmp/portage/uclibc-0.9.26-r5/work/uClibc-0.9.26/libc/sysdeps/linux'
44 > make[2]: *** [_dir_linux] Error 2
45 > make[2]: Leaving directory `/var/tmp/portage/uclibc-0.9.26-r5/work/uClibc-0.9.26/libc/sysdeps'
46 > make[1]: *** [_dir_sysdeps] Error 2
47 > make[1]: Leaving directory `/var/tmp/portage/uclibc-0.9.26-r5/work/uClibc-0.9.26/libc'
48 > make: *** [_dir_libc] Error 2
49 >
50 > !!! ERROR: dev-libs/uclibc-0.9.26-r5 failed.
51 > !!! Function src_compile, Line 202, Exitcode 2
52 > !!! could not make
53 >
54 >
55 > It compiled without hardened in USE flags and with
56 > CFLAGS="-fstack-protector" but I haven't checked if it really was
57 > compiled with -fstack-protector. (How do I do that?)
58 --
59 Ned Ludd <solar@g.o>
60 Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-embedded] uclibc don't compile with USE="hardened" Natanael Copa <mlists@××××××.org>