Errors Compiling Speakup Against RHEL Kernel

Trevor Astrope astrope at tabbweb.com
Thu Nov 5 14:12:43 EST 2009


Hello,

I'm trying to recompile a RHEL 5 kernel with speakup support. I'm getting 
warnings about "trying to assign nonexistent symbol" for the speakup 
modules during the `make ARCH=x86_64 nonint_oldconfig' step that cause the 
rpm build to die, but I don't get the warnings when I run it from the 
command line.

That's ok. I can live without the rpm. However, when I make the modules, I 
get the errors below. Any ideas? I'm using the version of speakup I cloned
  from git a couple of days ago...


   CC [M]  drivers/speakup/speakup_acntsa.o
In file included from drivers/speakup/speakup_acntsa.c:26:
drivers/speakup/spk_priv.h:60: warning: 'struct kobj_attribute' declared 
inside parameter list
drivers/speakup/spk_priv.h:60: warning: its scope is only this definition 
or declaration, which is probably not what you want
drivers/speakup/spk_priv.h:62: warning: 'struct kobj_attribute' declared 
inside parameter list
drivers/speakup/speakup_acntsa.c:49: error: variable 
'caps_start_attribute' has initializer but incomplete type
drivers/speakup/speakup_acntsa.c:50: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:50: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:50: error: (near initialization for 
'caps_start_attribute')
drivers/speakup/speakup_acntsa.c:50: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:50: warning: (near initialization for 
'caps_start_attribute')
drivers/speakup/speakup_acntsa.c:50: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:50: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:50: warning: (near initialization for 
'caps_start_attribute')
drivers/speakup/speakup_acntsa.c:50: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:50: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:50: warning: (near initialization for 
'caps_start_attribute')
drivers/speakup/speakup_acntsa.c:51: error: variable 'caps_stop_attribute' 
has initializer but incomplete type
drivers/speakup/speakup_acntsa.c:52: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:52: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:52: error: (near initialization for 
'caps_stop_attribute')
drivers/speakup/speakup_acntsa.c:52: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:52: warning: (near initialization for 
'caps_stop_attribute')
drivers/speakup/speakup_acntsa.c:52: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:52: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:52: warning: (near initialization for 
'caps_stop_attribute')
drivers/speakup/speakup_acntsa.c:52: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:52: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:52: warning: (near initialization for 
'caps_stop_attribute')
drivers/speakup/speakup_acntsa.c:53: error: variable 'pitch_attribute' has 
initializer but incomplete type
drivers/speakup/speakup_acntsa.c:54: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:54: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:54: error: (near initialization for 
'pitch_attribute')
drivers/speakup/speakup_acntsa.c:54: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:54: warning: (near initialization for 
'pitch_attribute')
drivers/speakup/speakup_acntsa.c:54: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:54: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:54: warning: (near initialization for 
'pitch_attribute')
drivers/speakup/speakup_acntsa.c:54: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:54: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:54: warning: (near initialization for 
'pitch_attribute')
drivers/speakup/speakup_acntsa.c:55: error: variable 'rate_attribute' has 
initializer but incomplete type
drivers/speakup/speakup_acntsa.c:56: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:56: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:56: error: (near initialization for 
'rate_attribute')
drivers/speakup/speakup_acntsa.c:56: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:56: warning: (near initialization for 
'rate_attribute')
drivers/speakup/speakup_acntsa.c:56: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:56: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:56: warning: (near initialization for 
'rate_attribute')
drivers/speakup/speakup_acntsa.c:56: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:56: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:56: warning: (near initialization for 
'rate_attribute')
drivers/speakup/speakup_acntsa.c:57: error: variable 'tone_attribute' has 
initializer but incomplete type
drivers/speakup/speakup_acntsa.c:58: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:58: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:58: error: (near initialization for 
'tone_attribute')
drivers/speakup/speakup_acntsa.c:58: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:58: warning: (near initialization for 
'tone_attribute')
drivers/speakup/speakup_acntsa.c:58: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:58: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:58: warning: (near initialization for 
'tone_attribute')
drivers/speakup/speakup_acntsa.c:58: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:58: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:58: warning: (near initialization for 
'tone_attribute')
drivers/speakup/speakup_acntsa.c:59: error: variable 'vol_attribute' has 
initializer but incomplete type
drivers/speakup/speakup_acntsa.c:60: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:60: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:60: error: (near initialization for 
'vol_attribute')
drivers/speakup/speakup_acntsa.c:60: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:60: warning: (near initialization for 
'vol_attribute')
drivers/speakup/speakup_acntsa.c:60: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:60: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:60: warning: (near initialization for 
'vol_attribute')
drivers/speakup/speakup_acntsa.c:60: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:60: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:60: warning: (near initialization for 
'vol_attribute')
drivers/speakup/speakup_acntsa.c:62: error: variable 
'delay_time_attribute' has initializer but incomplete type
drivers/speakup/speakup_acntsa.c:63: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:63: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:63: error: (near initialization for 
'delay_time_attribute')
drivers/speakup/speakup_acntsa.c:63: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:63: warning: (near initialization for 
'delay_time_attribute')
drivers/speakup/speakup_acntsa.c:63: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:63: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:63: warning: (near initialization for 
'delay_time_attribute')
drivers/speakup/speakup_acntsa.c:63: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:63: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:63: warning: (near initialization for 
'delay_time_attribute')
drivers/speakup/speakup_acntsa.c:64: error: variable 'full_time_attribute' 
has initializer but incomplete type
drivers/speakup/speakup_acntsa.c:65: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:65: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:65: error: (near initialization for 
'full_time_attribute')
drivers/speakup/speakup_acntsa.c:65: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:65: warning: (near initialization for 
'full_time_attribute')
drivers/speakup/speakup_acntsa.c:65: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:65: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:65: warning: (near initialization for 
'full_time_attribute')
drivers/speakup/speakup_acntsa.c:65: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:65: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:65: warning: (near initialization for 
'full_time_attribute')
drivers/speakup/speakup_acntsa.c:66: error: variable 
'jiffy_delta_attribute' has initializer but incomplete type
drivers/speakup/speakup_acntsa.c:67: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:67: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:67: error: (near initialization for 
'jiffy_delta_attribute')
drivers/speakup/speakup_acntsa.c:67: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:67: warning: (near initialization for 
'jiffy_delta_attribute')
drivers/speakup/speakup_acntsa.c:67: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:67: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:67: warning: (near initialization for 
'jiffy_delta_attribute')
drivers/speakup/speakup_acntsa.c:67: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:67: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:67: warning: (near initialization for 
'jiffy_delta_attribute')
drivers/speakup/speakup_acntsa.c:68: error: variable 
'trigger_time_attribute' has initializer but incomplete type
drivers/speakup/speakup_acntsa.c:69: error: unknown field 'attr' specified 
in initializer
drivers/speakup/speakup_acntsa.c:69: error: extra brace group at end of 
initializer
drivers/speakup/speakup_acntsa.c:69: error: (near initialization for 
'trigger_time_attribute')
drivers/speakup/speakup_acntsa.c:69: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:69: warning: (near initialization for 
'trigger_time_attribute')
drivers/speakup/speakup_acntsa.c:69: error: unknown field 'show' specified 
in initializer
drivers/speakup/speakup_acntsa.c:69: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:69: warning: (near initialization for 
'trigger_time_attribute')
drivers/speakup/speakup_acntsa.c:69: error: unknown field 'store' 
specified in initializer
drivers/speakup/speakup_acntsa.c:69: warning: excess elements in struct 
initializer
drivers/speakup/speakup_acntsa.c:69: warning: (near initialization for 
'trigger_time_attribute')
drivers/speakup/speakup_acntsa.c:76: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:77: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:78: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:79: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:80: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:81: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:82: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:83: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:84: error: invalid use of undefined type 
'struct kobj_attribute'
drivers/speakup/speakup_acntsa.c:85: error: invalid use of undefined type 
'struct kobj_attribute'
make[2]: *** [drivers/speakup/speakup_acntsa.o] Error 1
make[1]: *** [drivers/speakup] Error 2
make: *** [drivers] Error 2


Thanks,

Trevor




More information about the Speakup mailing list