bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with sh "shift" command in config.status on HP-UX


From: Daniel Richard G.
Subject: Problem with sh "shift" command in config.status on HP-UX
Date: Thu, 26 Mar 2009 00:06:45 -0400

I upgraded my copy of Automake from 1.10.1 to 1.10.2, and suddenly, builds are 
failing on two separate HP-UX systems (B.11.00 on 32-bit PA-RISC, and B.11.23 
on IA64).

What's happening is that the $(top_builddir)/libtool script is not being 
generated, so makefiles trying to invoke it error out. The issue appears to be 
in the config.status script, because I see this at the end:

...
config.status: creating src/winutil/Makefile
config.status: creating ttest/Makefile
config.status: creating config.h
config.status: executing depfiles commands
./config.status[1763]: shift: The specified number is not valid for this 
command.

(That's the point where you normally see "executing libtool commands".)


The relevant portion of the script is as follows:

----(cut here)----
# are listed without --file.  Let's play safe and only enable the eval
# if we detect the quoting.
case $CONFIG_FILES in
*\'*) eval set x "$CONFIG_FILES" ;;
*)   set x $CONFIG_FILES ;;
esac
shift                   <== line 1763
for mf
do
  # Strip MF so we end up with the name of the file.
  mf=`echo "$mf" | sed -e 's/:.*$//'`
  # Check whether this is an Automake generated Makefile or not.
----(snip snip snip)----

I suspect the real problem is that "shift" is being called when there are no 
positional parameters ($1, $2, ...) to shift. (Sure enough, just before the 
shift, $# is 0.)

Some background details:

        SHELL = /usr/bin/posix/sh
        autoconf 2.60
        libtool 2.2.6

I'm reporting this against Automake because the problem cropped up on 
upgrading it. (Autoconf and Libtool have not been touched.)


--Daniel


-- 
Daniel Richard G. || address@hidden || Software Developer
Teragram Linguistic Technologies (a division of SAS)
http://www.teragram.com/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]