bug-automake
[Top][All Lists]
Advanced

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

RE: 'set -u' and $SHELL in makefiles [was: GNU M4]


From: Chan, Lawson
Subject: RE: 'set -u' and $SHELL in makefiles [was: GNU M4]
Date: Wed, 30 Jan 2008 17:26:04 -0500

Hi Eric,

1)  actually, I use the following commands to start the execution.  So I am in 
the bash shell.
    Bash
    ./configure
    make
    Even though I am in the bash shell, running the 'env | grep SHELL' gives 
SHELL=/usr/bin/ksh
2)  $echo $- returns bhimCBH
3)  I normally don't run set -u.  I still don't know why it is set initially.
4)  I run ./configure in a fresh location and it behaves the same.
5)  The output of 'grep SHELL Makefile config.log' is attached in this email.
6)  I am using make 3.81.

Thanks,

Lawson

-----Original Message-----
From: Eric Blake [mailto:address@hidden
Sent: Wednesday, January 30, 2008 4:24 PM
To: Chan, Lawson
Cc: address@hidden; address@hidden; address@hidden
Subject: Re: 'set -u' and $SHELL in makefiles [was: GNU M4]

-----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-----


********************
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is 
intended only for the use of the addressees and is confidential. 
If you are not an intended recipient or responsible for delivering 
the message to an intended recipient, any review, disclosure, 
conversion to hard copy, dissemination, reproduction or other use 
of any part of this communication is strictly prohibited, as is the 
taking or omitting of any action in reliance upon this communication. 
If you receive this communication in error or without authorization 
please notify us immediately by return e-mail or otherwise and 
permanently delete the entire communication from any computer, 
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at 
www.td.com/legal
                                                           
AVERTISSEMENT DE CONFIDENTIALITE                   
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement 
aux destinataires susmentionnés,  est confidentiel.  Si vous 
n’êtes pas le destinataire prévu ou un agent responsable de la 
livraison de ce courriel, tout examen, divulgation, copie, impression, 
reproduction, distribution, ou autre utilisation d’une partie de ce 
courriel est strictement interdit de même que toute intervention ou 
abstraction à cet égard.  Si vous avez reçu ce message par erreur ou 
sans autorisation, veuillez en aviser immédiatement l’expéditeur par 
retour de courriel ou par un autre moyen et supprimer immédiatement 
cette communication entière de tout système électronique.

Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous 
pouvez le consulter à www.td.com/francais/legale

Attachment: log.out
Description: log.out


reply via email to

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