[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure
From: |
Nicolas Joly |
Subject: |
Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure |
Date: |
Wed, 5 Oct 2005 15:22:10 +0200 |
User-agent: |
Mutt/1.5.8i |
On Wed, Oct 05, 2005 at 10:43:40AM +0200, Ralf Wildenhues wrote:
> Hi Nicolas,
>
> * Nicolas Joly wrote on Tue, Oct 04, 2005 at 03:36:48PM CEST:
> > On Tue, Oct 04, 2005 at 12:09:26PM +0200, Ralf Wildenhues wrote:
> > > * Nicolas Joly wrote on Mon, Oct 03, 2005 at 05:57:01PM CEST:
> > >
> > > > Here follow a small summary for libtool HEAD on my Tru64 v5.1B
> > > > workstation.
> > >
> > > Could you report `libtool --version', so that, in case of doubt, we know
> > > which patches were incorporated and which weren't?
> >
> > address@hidden [temp/libtool]> ./libtool --version
> > ltmain.sh (GNU libtool 1.2109 2005/10/02 08:54:02) 2.1a
> >
> > > If it's before 2005-10-03, I ask you not to update until Gary's BSD make
> > > patch is in (so you don't unnecessarily experience a known and pending
> > > issue).
> >
> > I'm aware of this problem. For now, i'm using GNU make; for Tru64 make
> > we'll see later.
>
> You could try 290-gary-pmake-dot-slash-ignorance.diff, I believe it
> should work. But I bet Gary will have applied it before you read this.
> :)
Will do.
> > > > * With `lt_ECHO='printf %s\\n'; export lt_ECHO' set, configure
> > > > generate numerous `sed: Function 1s/^X//\n cannot be parsed'
> > > > messages.
> > >
> > > Should've been `lt_ECHO='printf %s\n'; export lt_ECHO'
> > > Sorry, I believe it was me who posted that wrongly back then.
> >
> > I've just restarted with the correct value. configure now pass, but
> > make aborts with:
> >
> > [...]
> > source='libltdl/loaders/preopen.c'
> > object='libltdl/loaders/libltdl_libltdl_la-preopen.lo' libtool=yes \
> > DEPDIR=.deps depmode=tru64 /bin/sh ./libltdl/config/depcomp \
> > /bin/sh ./libtool --tag=CC --mode=compile cc -DLTDL -DHAVE_CONFIG_H
> > -DLT_CONFIG_H='<config.h>' -I. -I. -I. -DLTDLOPEN=libltdl -I. -I.
> > -Ilibltdl -I./libltdl -I./libltdl/libltdl -g -c -o
> > libltdl/loaders/libltdl_libltdl_la-preopen.lo `test -f
> > 'libltdl/loaders/preopen.c' || echo './'`libltdl/loaders/preopen.c
> > ./libtool: bad substitution
> >
> > with `set -x', in libtool script:
> >
> > [...]
> > base_compile= cc -DLTDL -DHAVE_CONFIG_H "-DLT_CONFIG_H=<config.h>" -I. -I.
> > -I. -
> > DLTDLOPEN=libltdl -I. -I. -Ilibltdl -I./libltdl -I./libltdl/libltdl -g -c
> > + func_stripname -Wc, -Wc,-MD
> > func_stripname_result=-Wc,-MD
> > ./libtool: bad substitution
>
> Ahh. Please add another `set -x' at the top of func_stripname to see
> which of the parameter substitutions fail.
>
> Hmm, the Tru64 shell in POSIX mode documents support for ${foo#bar} and
> ${foo%bar}. I bet there's a shell bug lingering when bar is either
> double-quoted or bar is another parameter like `${1}'. Can you play
> around a bit to try this? For example, pdksh fails on
> ${1%$2}
> but works if we do
> arg2=$2
> ${1%$arg2}
> instead. Maybe
> arg1=$1
> arg2=$2
> echo ${arg1%$arg2}, ${arg1%"$arg2"}
> both work instead?
>
> We should then either fix func_stripname (and a couple of other ones)
> to work around this bug or fix _LT_CHECK_XSI_SHELL to expose the bug
> (and turn off the fast substitution functions).
Will try to have a look and report.
> > According to the Tru64 cc(1) man page, we need to use `-input_to_ld'
> > flag instead of `-input' which is only known by the linker. With this
> > small modification all previously failed tests are now successful.
>
> Ahh, ok. Do I gather correctly that the C++ compiler works with
> `-input' rather than `-input_to_ld'?
No, `-input' is for ld only; both Tru64 cc and cxx need to use
`-input_to_ld' flag. I just checked that mdemo compile with both
tools.
> Could you also try the new test suite?
> make check TESTS=
> and send tests/testsuite.log for errors.
Got 3 failures; log attached.
--
Nicolas Joly
Biological Software and Databanks.
Institut Pasteur, Paris.
testsuite.log
Description: Text document
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure, Nicolas Joly, 2005/10/03
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure, Ralf Wildenhues, 2005/10/04
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure, Nicolas Joly, 2005/10/04
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure, Ralf Wildenhues, 2005/10/05
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure,
Nicolas Joly <=
- FYI: fix simple C++ link code m4 quoting (was: FYI: ksh bug on Tru64 UNIX causes current libtool failure), Ralf Wildenhues, 2005/10/05
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure, Ralf Wildenhues, 2005/10/06
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure, Nicolas Joly, 2005/10/06
- Tru64 Fortran compiler support (was: FYI: ksh bug on Tru64 UNIX causes current libtool failure), Ralf Wildenhues, 2005/10/06
- Re: Tru64 Fortran compiler support (was: FYI: ksh bug on Tru64 UNIX causes current libtool failure), Nicolas Joly, 2005/10/07
- Re: FYI: ksh bug on Tru64 UNIX causes current libtool failure, Nicolas Joly, 2005/10/07