
mansourmoufid at gmail
Jun 28, 2009, 12:41 PM
Post #5 of 6
(1307 views)
Permalink
|
|
Re: Compile problems - possibly gcc issue?
[In reply to]
|
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Jun 28, 2009 at 10:28 AM, Ed W<lists [at] wildgooses> wrote: > Ed W wrote: >> >> Hmm, the relevant config.log snippet is shown below, but it's not 100% >> obvious what creates the error - I guess it would be the >> >> | #define LIBC_VERSION "libc.so.0 >> | ld-uClibc.so.0" >> >> Which seems peculiarly split over two lines? > The test is: > > LIBC_VERSION=$( > $READELF -d libctest | \ > $EGREP NEEDED.*libc\\.so | \ > $AWK '{print $NF}' | sed -e 's:\[::' -e 's:\]::' > ) > > > readelf gives me: > > 0x00000001 (NEEDED) Shared library: [libc.so.0] > 0x00000001 (NEEDED) Shared library: [ld-uClibc.so.0] Hello, I'm not familiar with this thread, but it seems that, for whatever reason, awk and sed are returning more than one line, i.e. $ echo ${LIBC_VERSION} would give "libc.so.0\nld-uClibc.so.0" (where \n is an actual newline). If this is the case, perhaps the following would give the expected result: LIBC_VERSION=$( $READELF -d libctest | \ $EGREP NEEDED.*libc\\.so | \ $AWK '{print $NF}' | sed -e 's:\[::' -e 's:\]::' | \ $HEAD -1 ) - -- Mansour Moufid http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x95BBC25F -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpHxvYACgkQ83JwsZW7wl/lEgCgje7sNB9MQkXfE1ZBlRFYV5Oq Zu4AoJs5y3XbF99nY681dSRARbt8XT9A =iv2c -----END PGP SIGNATURE-----
|