delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/05/16/07:01:30

Date: Tue, 16 May 2000 14:28:09 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp-workers AT delorie DOT com
Subject: Re: GDB 5.0 is in pretest
In-Reply-To: <39204C6A.31561.189A92F@localhost>
Message-ID: <Pine.SUN.3.91.1000516142734.24814A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 15 May 2000 pavenis AT lanet DOT lv wrote:

> > Sorry, my bad.  Either "bunzip2 -c ... > gdb-4.95.1.tar" or
> > "bunzip2 gdb-4.95.1.tar.bz2".
> 
> Well, I didn't notice similar stuff, as I'm using bzip2 without much 
> thinking

Yeah, me too.  That's why I made a mistake: instead of letting my
fingers type the right command, I actually tried to think what the
right command were ;-).

> > > D:/DJGPP/BIN/sh.exe ./../mkinstalldirs d:/djgpp/lib
> > > D:/DJGPP/BIN/sh.exe ./libtool  --mode=install D:/DJGPP/BIN/sh.exe
> > > d:/pub/gdb-5.0/gdb-4.95.1/install-sh -c libbfd.la d:/djgpp/lib/libbfd.la
> > > libtool: install: `d:/djgpp/lib/libbfd.la' is not a directory
> 
> Strange. I was not able to reproduce this problem.
> 	make install prefix=${DJDIR}
> works Ok for me

Perhaps because the literal "/bin/sh" works for you, or if $SHELL is
literally identical on your system to what gets prepended to the
libtool command above.  libtool has some complicated tests under the
"install" mode, which only work if the first argument is something
libtool expects.  But if the letter-case is different, or if there are
backslashes instead of slashes, that test fails.

Here's the relevant fragment from bfd/libtool:

  # libtool install mode
  install)
    modename="$modename: install"

    # There may be an optional sh(1) argument at the beginning of
    # install_prog (especially on Windows NT).
    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
      # Aesthetically quote it.
      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
      case "$arg" in
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)
	arg="\"$arg\""
	;;
      esac
      install_prog="$arg "
      arg="$1"
      shift
    else
      install_prog=
      arg="$nonopt"
    fi

If the test above fails, the script doesn't do the "shift", and then
the rest of the logic fails.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019