[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: link.test
From: |
Charles Wilson |
Subject: |
Re: link.test |
Date: |
Sat, 09 Oct 2004 22:33:51 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 MultiZilla/1.6.4.0b |
Albert Chin wrote:
On Sat, Oct 09, 2004 at 09:55:40PM -0400, Charles Wilson wrote:
The following two-line string, stored in the variable $linkresult
gcc -o .libs/gettext ../lib/libnlsut.a
What two-line string? Can you be more specific about line #1, line #2,
and where the lines begin/end (e.g.):
1. [gcc -o .libs/gettext]
2. [ ../lib/libnlsut.a]
Using the following patch to link.test, and running the test in verbose
mode:
-echo "$linkresult"
+echo "$linkresult" | sed -e 's/^/[/g' -e 's/$/]/g'
I get the following output
make[3]: Entering directory
`/usr/src/libtool/devel/CVS/libtool-b2.0/.build/tests'
link.test: === Running link.test
[gcc -o .libs/gettext ../lib/libnlsut.a]
[libtool: link: creating gettext.exe]
link.test: link.test: ../lib/libnlsut.a was not used as expected in linking
FAIL: link.test
So,
1. [gcc -o .libs/gettext ../lib/libnlsut.a]
2. [libtool: link: creating gettext.exe]
Any ideas? Should we strip off the first line of $linkresult and only
match that? Use *../lib/libnlsut.a\n*) or something as the match string
(How DO you encode a newline in a match string is POSIX sh?)
I tried the following but cannot duplicate your failure:
#!/bin/sh
linkresult="gcc -o .libs/gettext
../lib/libnlsut.a"
echo $linkresult
case "$linkresult" in
*../lib/libnlsut.a) ;;
*) echo fail ;;
esac
Me neither. Try THIS, instead
#!/bin/sh
linkresult="gcc -o .libs/gettext ../lib/libnlsut.a
libtool: link: creating gettext.exe"
echo $linkresult
case "$linkresult" in
*../lib/libnlsut.a) ;;
*) echo fail ;;
esac
The problem is, the check is trying to ensure that $linkresult ENDS
WITH "../lib/libnlsut.a". But, in my case, it doesn't -- but the first
line does. I don't know why "\nlibtool: link: creating gettext.exe" is
getting in there now, but didn't before.
--
Chuck