Skip to contentSkip to conversation

Compile problems - keymap stuff (ho, humm)

DISCUSSION [email protected] 2 participants 4 messages Apr 24, 2002

lore
Share & tools
lore
#0 lore raw

Dev86 0.16.0
elks cvs
egcs-2.91.66

Don't have time to look right now:

Basic config with GENERIC_DISK removed.

make[3]: Entering directory `/home/pauln/src/elks/arch/i86/drivers/char'
bcc -0 -i -O -I/home/pauln/src/elks/include -DELKS_VERSION_CODE=0x0000FF04 -DUTS_RELEASE=\"0.1.0-pre4\" -D__KERNEL__ -ansi -c -o xt_key.o xt_key.c xt_key.c:157.22: error: xtkb_scan_caps undeclared
xt_key.c:157.27: error: illegal indirection
xt_key.c:159.25: error: xtkb_scan_shifted undeclared
xt_key.c:159.30: error: illegal indirection
xt_key.c:164.26: error: xtkb_scan_ctrl_alt undeclared
xt_key.c:164.31: error: illegal indirection
xt_key.c:171.31: error: illegal indirection
xt_key.c:174.17: error: xtkb_scan undeclared
xt_key.c:174.22: error: illegal indirection
xt_key.c:177.30: error: illegal indirection
xt_key.c:179.30: error: illegal indirection
make[3]: *** [xt_key.o] Error 1
make[3]: Leaving directory `/home/pauln/src/elks/arch/i86/drivers/char'
make[2]: *** [drivers/char/chr_drv.a] Error 2
make[2]: Leaving directory `/home/pauln/src/elks/arch/i86'
make[1]: *** [Image] Error 2
make[1]: Leaving directory `/home/pauln/src/elks'
make: *** [elks] Error 2

Seems to be the KeyMap stuff:

find . -type f -exec grep -l xtkb_scan \{\} \;
./arch/i86/drivers/char/KeyMaps/keys-be.h
./arch/i86/drivers/char/KeyMaps/keys-de.h
./arch/i86/drivers/char/KeyMaps/keys-dv.h
./arch/i86/drivers/char/KeyMaps/keys-es.h
./arch/i86/drivers/char/KeyMaps/keys-fr.h
./arch/i86/drivers/char/KeyMaps/keys-se.h
./arch/i86/drivers/char/KeyMaps/keys-uk.h
./arch/i86/drivers/char/KeyMaps/keys-us.h
./arch/i86/drivers/char/xt_key.c

Paul

#1 lore raw
Quoted 5 lines · On Wed, Apr 24, 2002 at 07:40:32PM +0100, [email protected] wrote:

Dev86 0.16.0
elks cvs
egcs-2.91.66

Don't have time to look right now:

I lied :)

The mkcfg script was creating a blank Config.in,

This seems to be as it is being clobbered by the Config.tmp file

./mkcfg auto directs to config.in

The Makefile automatically clobbers this by redirecting the output to Config.tmp then mv'ing it into place.

I enclose a patch that strips the redirects to Config.in

Paul

Index: mkcfg
===================================================================
RCS file: /cvsroot/elks/elks/arch/i86/drivers/char/KeyMaps/mkcfg,v retrieving revision 1.1

mkcfg +4 -4
diff -u -r1.1 mkcfg
@@ -11,7 +11,7 @@
     local CODE FILE NAME SEP='"'
 
     while read FILE CODE NAME ; do
-	printf '\t\\\n\t%-12s\tCONFIG_KEYMAP_%s' >> Config.in \
+	printf '\t\\\n\t%-12s\tCONFIG_KEYMAP_%s'  \
 		"${SEP}${NAME}" "${CODE}"
 	SEP=' '
 	printf '#include "%s"\t\t/* %s\t%-9s\t*/\n' >> keymaps.h \
@@ -20,7 +20,7 @@
 }
 
 printf '/* Automatically created - do not edit */\n\n' > keymaps.h
-printf '# Automatically created - do not edit.\n\n' > Config.in
-printf "choice 'XT Keyboard support'\t\t" >> Config.in
+printf '# Automatically created - do not edit.\n\n' 
+printf "choice 'XT Keyboard support'\t\t" 
 codes | sort +1f | process
-printf '"\t\tAmerican\n\n# EOF.\n' >> Config.in
+printf '"\t\tAmerican\n\n# EOF.\n' 
#2 lore raw
In reply to [email protected]

[Would help if I replied to list, apologies if this appears twice, etc]

I'll take my muppet hat off now :)

Quoted 5 lines · On Wed, Apr 24, 2002 at 07:40:32PM +0100, [email protected] wrote:

Dev86 0.16.0
elks cvs
egcs-2.91.66

Don't have time to look right now:

I lied :)

The mkcfg script was creating a blank Config.in,

This seems to be as it is being clobbered by the Config.tmp file

./mkcfg auto directs to config.in

The Makefile automatically clobbers this by redirecting the output to Config.tmp then mv'ing it into place.

I enclose a patch that strips the redirects to Config.in

Paul

Index: mkcfg
===================================================================
RCS file: /cvsroot/elks/elks/arch/i86/drivers/char/KeyMaps/mkcfg,v retrieving revision 1.1

mkcfg +4 -4
diff -u -r1.1 mkcfg
@@ -11,7 +11,7 @@
     local CODE FILE NAME SEP='"'
 
     while read FILE CODE NAME ; do
-	printf '\t\\\n\t%-12s\tCONFIG_KEYMAP_%s' >> Config.in \
+	printf '\t\\\n\t%-12s\tCONFIG_KEYMAP_%s'  \
 		"${SEP}${NAME}" "${CODE}"
 	SEP=' '
 	printf '#include "%s"\t\t/* %s\t%-9s\t*/\n' >> keymaps.h \
@@ -20,7 +20,7 @@
 }
 
 printf '/* Automatically created - do not edit */\n\n' > keymaps.h
-printf '# Automatically created - do not edit.\n\n' > Config.in
-printf "choice 'XT Keyboard support'\t\t" >> Config.in
+printf '# Automatically created - do not edit.\n\n' 
+printf "choice 'XT Keyboard support'\t\t" 
 codes | sort +1f | process
-printf '"\t\tAmerican\n\n# EOF.\n' >> Config.in
+printf '"\t\tAmerican\n\n# EOF.\n' 
#3 lore raw

Hi Paul.

Quoted 4 lines
Quoted 1 line

Don't have time to look right now:

The mkcfg script was creating a blank Config.in,

Quoted 8 lines

This seems to be as it is being clobbered by the Config.tmp file

./mkcfg auto directs to config.in

The Makefile automatically clobbers this by redirecting the output to Config.tmp then mv'ing it into place.

I enclose a patch that strips the redirects to Config.in

Many thanks for that, applied and committing now...

Best wishes from Riley.