Gentoo Archives: gentoo-hardened

From: Mansour Moufid <mansourmoufid@×××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Compile problems - possibly gcc issue?
Date: Sun, 28 Jun 2009 19:42:00
Message-Id: 44a1f4d20906281241y20308d42w75a4f1b5912703fc@mail.gmail.com
In Reply to: Re: [gentoo-hardened] Compile problems - possibly gcc issue? by Ed W
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Sun, Jun 28, 2009 at 10:28 AM, Ed W<lists@××××××××××.com> wrote:
5 > Ed W wrote:
6 >>
7 >> Hmm, the relevant config.log snippet is shown below, but it's not 100%
8 >> obvious what creates the error - I guess it would be the
9 >>
10 >> | #define LIBC_VERSION "libc.so.0
11 >> | ld-uClibc.so.0"
12 >>
13 >> Which seems peculiarly split over two lines?
14 > The test is:
15 >
16 > LIBC_VERSION=$(
17 > $READELF -d libctest | \
18 > $EGREP NEEDED.*libc\\.so | \
19 > $AWK '{print $NF}' | sed -e 's:\[::' -e 's:\]::'
20 > )
21 >
22 >
23 > readelf gives me:
24 >
25 > 0x00000001 (NEEDED) Shared library: [libc.so.0]
26 > 0x00000001 (NEEDED) Shared library: [ld-uClibc.so.0]
27
28 Hello,
29
30 I'm not familiar with this thread, but it seems that, for whatever reason,
31 awk and sed are returning more than one line, i.e. $ echo ${LIBC_VERSION}
32 would give "libc.so.0\nld-uClibc.so.0" (where \n is an actual newline).
33 If this is the case, perhaps the following would give the expected result:
34
35 LIBC_VERSION=$(
36 $READELF -d libctest | \
37 $EGREP NEEDED.*libc\\.so | \
38 $AWK '{print $NF}' | sed -e 's:\[::' -e 's:\]::' | \
39 $HEAD -1
40 )
41
42 - --
43 Mansour Moufid
44 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x95BBC25F
45 -----BEGIN PGP SIGNATURE-----
46 Version: GnuPG v1.4.9 (GNU/Linux)
47
48 iEYEARECAAYFAkpHxvYACgkQ83JwsZW7wl/lEgCgje7sNB9MQkXfE1ZBlRFYV5Oq
49 Zu4AoJs5y3XbF99nY681dSRARbt8XT9A
50 =iv2c
51 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-hardened] Compile problems - possibly gcc issue? Ed W <lists@××××××××××.com>