Chameleon

Issue 184: cham-mklayout.c error

Reported by Carlos Porrito, Sep 21, 2011

trying make all for chameleon 2.0 trunk revision 1552
osX 10.7.1
Xcode Version 4.1 (4B110)
till rev 1526 all ok, after rev show this error

================= Making all in layouts =================
	[CC32] cham-mklayout.c
cham-mklayout.c:17:23: error: keylayout.h: No such file or directory
cham-mklayout.c:22: error: variable ‘default_layout’ has initializer 
but incomplete type
cham-mklayout.c:23: error: unknown field ‘keyboard_map’ specified in 
initializer
cham-mklayout.c:23: error: extra brace group at end of initializer
cham-mklayout.c:23: error: (near initialization for 
‘default_layout’)
cc1: warnings being treated as errors
cham-mklayout.c:31: warning: excess elements in struct initializer
cham-mklayout.c:31: warning: (near initialization for 
‘default_layout’)
cham-mklayout.c:32: error: unknown field ‘keyboard_map_shift’ 
specified in initializer
cham-mklayout.c:32: error: extra brace group at end of initializer
cham-mklayout.c:32: error: (near initialization for 
‘default_layout’)
cham-mklayout.c:40: warning: excess elements in struct initializer
cham-mklayout.c:40: warning: (near initialization for 
‘default_layout’)
cham-mklayout.c:41: error: unknown field ‘keyboard_map_alt’ 
specified in initializer
cham-mklayout.c:41: error: extra brace group at end of initializer
cham-mklayout.c:41: error: (near initialization for 
‘default_layout’)
cham-mklayout.c:49: warning: excess elements in struct initializer
cham-mklayout.c:49: warning: (near initialization for 
‘default_layout’)
cham-mklayout.c: In function ‘parse_scancode’:
cham-mklayout.c:216: error: ‘KEYBOARD_MAP_SIZE’ undeclared (first 
use in this function)
cham-mklayout.c:216: error: (Each undeclared identifier is reported 
only once
cham-mklayout.c:216: error: for each function it appears in.)
cham-mklayout.c: In function ‘create_keylayout’:
cham-mklayout.c:241: error: dereferencing pointer to incomplete type
cham-mklayout.c:246: error: dereferencing pointer to incomplete type
cham-mklayout.c:246: error: dereferencing pointer to incomplete type
cham-mklayout.c:256: error: dereferencing pointer to incomplete type
cham-mklayout.c:259: error: dereferencing pointer to incomplete type
cham-mklayout.c:262: error: dereferencing pointer to incomplete type
cham-mklayout.c:265: error: dereferencing pointer to incomplete type
cham-mklayout.c:270: error: dereferencing pointer to incomplete type
cham-mklayout.c:275: error: dereferencing pointer to incomplete type
cham-mklayout.c:280: error: dereferencing pointer to incomplete type
cham-mklayout.c: In function ‘write_layout’:
cham-mklayout.c:288: error: ‘KEYBOARD_LAYOUTS_VERSION’ undeclared 
(first use in this function)
cham-mklayout.c:289: error: ‘KEYBOARD_LAYOUTS_MAGIC’ undeclared 
(first use in this function)
cham-mklayout.c:289: error: ‘KEYBOARD_LAYOUTS_MAGIC_SIZE’ undeclared 
(first use in this function)
cham-mklayout.c:292: error: ‘KEYBOARD_LAYOUTS_MAP_OFFSET’ undeclared 
(first use in this function)
cham-mklayout.c:294: error: dereferencing pointer to incomplete type
make[5]: *** 
[/Volumes/diskxsy/bootbkp/chameleon/trunk/obj/i386/util/cham-mklayout
.o32] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [modules-builtin] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Comment 1 by Carlos Porrito, Sep 22, 2011

sorry, last rev working was 1528, not 1526, my problem is related to 
Keylayout module

Comment 2 by Carlos Porrito, Sep 26, 2011

added a copy of Keylayout.h named keylayout.h (since i use 
Case-sensitive filesystem) and keylayout compile go on ok but ending 
in error below


================= Embedding Symbols.dylib =================
	[MACHOCONV] boot
	******* Patching at 406048 ******
	[MACHOCONV] boot
	******* boot is 458496 bytes *******
Booter executable larger than 458240 bytes
make[3]: *** [boot] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Comment 3 by Carlos Porrito, Sep 26, 2011

changed keylayout.h to Keylayout.h in cham-mklayout.c so i dont need 
any copy of but still same error of hereup

Comment 4 by Carlos Porrito, Sep 26, 2011

solved not compiling module Keylayout, now the size is ok so no 
errors and boot perfectly, sorry for the monologues

Comment 5 by JrCs, Oct 22, 2011

Fixed in r1650
Status: Fixed

Created: 7 years 9 months ago by Carlos Porrito

Updated: 7 years 8 months ago

Status: Fixed

Followed by: 1 person

Labels:
Priority:Medium
Type:Defect