Skip to contentSkip to conversation

invalid character 45 in exportstr for include-config

PATCH Matthew Wilcox 5 participants 6 messages Nov 3, 2002 – Nov 4, 2002 Kbuild

lore
Share & tools
lore
#0 lore raw

Anyone else seeing this error message? I figured out what it _actually_ means is that the character `-' is not permitted in the symbol being exported. so if we change include-config to include_config in Makefile and scripts/Makefile.build, everything is fine.

How about the following patch?

Makefile 3 Nov 2002 03:15:06 -0000 renamed from Makefile 31 Oct 2002 17:26:55 -0000 1.1.2.6 +1 -1
diff -u -p -r1.1.2.6 Makefile
@@ -214,7 +216,7 @@ SUBDIRS             :=
 
 ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
 
-export include-config := 1
+export include_config := 1
 
 -include .config
 
Makefile.build 3 Nov 2002 03:15:06 -0000 renamed from Makefile.build 31 Oct 2002 17:28:39 -0000 1.1.2.1 +1 -1
diff -u -p -r1.1.2.1 Makefile.build
@@ -7,7 +7,7 @@ src := $(obj)
 .PHONY: __build
 __build:
 
-ifdef include-config
+ifdef include_config
 include .config
 endif
 
Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw
Quoted 6 lines · Matthew Wilcox

Anyone else seeing this error message? I figured out what it _actually_ means is that the character `-' is not permitted in the symbol being exported. so if we change include-config to include_config in Makefile and scripts/Makefile.build, everything is fine.

How about the following patch?

Nice work Matthew, although you missed cleaning up a few remaining 'include-config' references in comments.

Kai, this fixes the problem I reported to you on sparc64 with
make-3.79 What version of make do you have which accepted this
variable name with a dash in it?

#2 lore raw
Quoted 3 lines · David S. Miller

Kai, this fixes the problem I reported to you on sparc64 with
make-3.79 What version of make do you have which accepted this
variable name with a dash in it?

The message is not coming from make, make accepts almost any variable name in export. The message comes from bash, which restricts the format of exported names.

#3 lore raw
In reply to David S. Miller
Quoted 6 lines · David S. Miller
Quoted 5 lines · Matthew Wilcox

Anyone else seeing this error message? I figured out what it _actually_ means is that the character `-' is not permitted in the symbol being exported. so if we change include-config to include_config in Makefile and scripts/Makefile.build, everything is fine.

Quoted 8 lines
Quoted 1 line

How about the following patch?

Nice work Matthew, although you missed cleaning up a few remaining 'include-config' references in comments.

Kai, this fixes the problem I reported to you on sparc64 with
make-3.79 What version of make do you have which accepted this
variable name with a dash in it?

Thank you guys, I'll push it to Linus if it's not merged already. As other people pointed out, it seems to be that various version of bash/sh seem to handle the '-' differently.

Makes me wonder if Pete's exporting of 'INIT-Y' is a good idea, you may want to change that to '_' as well.

--Kai

#4 lore raw
Quoted 10 lines

Date: Sun, 3 Nov 2002 13:17:22 -0600 (CST)
From: Kai Germaschewski <[email protected]>

Quoted 4 lines
Quoted 4 lines

Anyone else seeing this error message? I figured out what it _actually_ means is that the character `-' is not permitted in the symbol being exported. so if we change include-config to include_config in Makefile and scripts/Makefile.build, everything is fine.

Makes me wonder if Pete's exporting of 'INIT-Y' is a good idea, you may want to change that to '_' as well.

Sorry about that. It's already submitted, so I'll wait until it recycles through Dave's tree then change it. Thanks for letting me know, Kai.

-- Pete

#5 lore raw

From: Pete Zaitcev <[email protected]>
Date: Sun, 3 Nov 2002 14:22:23 -0500

Quoted 2 lines

Makes me wonder if Pete's exporting of 'INIT-Y' is a good idea, you may want to change that to '_' as well.

Sorry about that. It's already submitted, so I'll wait until it recycles through Dave's tree then change it. Thanks for letting me know, Kai.

None of your patches are applied yes, please feel free to submit a new batch and I will wait for that.