[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug with libtool-1.4.3 and tru64 5.1
From: |
Jean-Louis Martineau |
Subject: |
Re: bug with libtool-1.4.3 and tru64 5.1 |
Date: |
Fri, 1 Nov 2002 13:44:59 -0500 |
User-agent: |
Mutt/1.2.5.1i |
Hi,
My problem was because SHELL was still set to "/bin/sh" in the generated
libtool.
But why?
Because the SHELL variable was reset to /bin/sh somewhere else
in the configure script, before libtool was generated.
Maybe libtool should use it's own variable, like LIBTOOL_SHELL.
What I don't like with the current behavior is that it set 'SHELL = /bin/ksh'
in the Makefile. Now everything will use ksh only because libtool need it.
Jean-Louis
On Thu, Oct 31, 2002 at 05:57:34PM -0500, Jean-Louis Martineau wrote:
> Hello,
>
> I'm one of the maintainers of the amanda package.
>
> Nobody on tru64 5.1 was able to compile amanda since I upgraded
> to libtool-1.4.2 (same problem with 1.4.3).
>
> > /sbin/sh ../libtool --mode=link cc -g -o genversion genversion.o
>
> > versuff.o alloc.o clock.o debug.o error.o util.o file.o -lm
> > -ltermcap
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > ../libtool: print: not found
> > rm -f version.c
> > ...
>
> libtool don't find a good echo, so it use the ksh 'print -r'.
> The problem is that libtool is never executed with ksh.
>
> I include a patch to run libtool with the right shell.
> From a Makefile, it will be executed directly with ksh instead
> of sh and then do and 'exec ksh'.
>
> Maybe the bug is simply because SHELL is not set to /bin/ksh in libtool, but
> I don't know how to do it.
>
> Jean-Louis
> --
> Jean-Louis Martineau email: address@hidden
> Departement IRO, Universite de Montreal
> C.P. 6128, Succ. CENTRE-VILLE Tel: (514) 343-6111 ext. 3529
> Montreal, Canada, H3C 3J7 Fax: (514) 343-5834
> --- ../../../libtool-1.4.3/libtool.m4 Tue Oct 22 20:45:04 2002
> +++ libtool.m4i Thu Oct 31 16:56:03 2002
> @@ -31,7 +31,7 @@
> LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
>
> # Always use our own libtool.
> -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
> +LIBTOOL="$CONFIG_SHELL \$(top_builddir)/libtool"
> AC_SUBST(LIBTOOL)dnl
>
> # Prevent multiple expansion
> @@ -526,6 +526,10 @@
> fi
> fi
>
> +if test "X$CONFIG_SHELL" = "X"; then
> + CONFIG_SHELL="$SHELL"
> +fi
> +
> # Copy echo and quote the copy suitably for passing to libtool from
> # the Makefile, instead of quoting the original, which is used later.
> ECHO=$echo
> @@ -2511,7 +2515,7 @@
> done
>
> cat <<__EOF__ > "${ofile}T"
> -#! $SHELL
> +#! $CONFIG_SHELL
>
> # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building
> support services.
> # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
--
Jean-Louis Martineau email: address@hidden
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7 Fax: (514) 343-5834
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: bug with libtool-1.4.3 and tru64 5.1,
Jean-Louis Martineau <=