bugmake - Bugs: bug #2259, Cannot create variables for use...

 
 

bug #2259: Cannot create variables for use with the $(call varaiable,param,param,...) function

Submitted by:  None
Submitted on:  Mon 20 Jan 2003 04:36:46 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.79.1Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 20 Jan 2003 05:09:38 PM UTC, comment #2:

If a variable that is intended to be a function is exported it seems to be evaluated when exported.

Sample output & Makefiles:

Good:
tcsh> make --warn-undefined-variables all
Echoing call to FOO: $(call FOO,a,b)
b a
tcsh> cat Makefile
REVERSE=$(2) $(1)
FOO=$(call REVERSE,$(1),$(2))

all:
@echo "Echoing call to FOO: \$$(call FOO,a,b)"
@echo "$(call FOO,a,b)"

Bad:
tcsh> make --warn-undefined-variables all
make: warning: undefined variable `2'
make: warning: undefined variable `1'
make: warning: undefined variable `1'
make: warning: undefined variable `2'
Echoing call to FOO: $(call FOO,a,b)
b a
tcsh> cat Makefile
REVERSE=$(2) $(1)
FOO=$(call REVERSE,$(1),$(2))

export REVERSE FOO

all:
@echo "Echoing call to FOO: \$$(call FOO,a,b)"
@echo "$(call FOO,a,b)"

I have also seen failure by the call function to evaluate correctly if the variables have been exported, but do not have a simple reproducer.

Jon-Paul Sullivan <j3p0uk>
Mon 20 Jan 2003 05:07:14 PM UTC, comment #1:

Duplicate of bug # 2260

Paul D. Smith <psmith>
Project Administrator
Mon 20 Jan 2003 04:36:46 PM UTC, original submission:

Version is 3.79.1 from Red Hat Linux 7.2 on i386. No re-compilation of make, using as is from RH 7.2

Can't see any problems in Makefile. Usin --warn-undefined-variables can see that '1' is an undefined variable.

Can't get call function to work in even the simplest example from the documentation.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 20 Jan 2003 05:07:14 PM UTCpsmithStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1