[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'set -u' and $SHELL in makefiles [was: GNU M4]
From: |
Eric Blake |
Subject: |
Re: 'set -u' and $SHELL in makefiles [was: GNU M4] |
Date: |
Wed, 30 Jan 2008 14:23:50 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Chan, Lawson on 1/30/2008 1:19 PM:
| Hi Eric,
|
| 1) I am sorry that I couldn't use a free webmail account at work.
| 2) Running the 'env | grep SHELL' gives SHELL=/usr/bin/ksh
So your default shell is ksh, but the error message seen during make was
coming from bash, so something else is going on here. We need to figure
out how SHELL is getting changed when used by the Makefile.
| 3) I use the following commands to start the execution
| ./configure
| make
OK - seems simple enough.
| 4) I tried to use the command " set +u" to disable the u option before
running the ./configure and it gives me exactly the same result.
Do you normally run with 'set -u'? What does 'echo $-' say? When you
reran ./configure, was it from a fresh unpacking, or were there leftovers
from your first attempt?
| 5) I tried using make -k to build M4 and it gives me the same error.
What does 'grep SHELL Makefile config.log' say?
How about 'make --version'?
|
| Do you know where should I investigate on this issue?
What about in a temporary directory (and use TAB for indenting):
$ cat <<\EOF > Makefile
all:
echo - $(SHELL) - $(MAKE) - $(MAKEFLAGS) - $$MAKEFLAGS -
EOF
$ make
Then repeat, but with adding the same 'SHELL = ...' line at the beginning
that was in m4/Makefile?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHoOrm84KuGfSFAYARAgRHAKCcS0okmGlugyJBZpPYUH0Qa0kpwwCbBsuQ
J7G+mGwjrAeS1VGbw8hsQOE=
=Be3e
-----END PGP SIGNATURE-----