bengt@debian:~/linuxcnc$ halcompile gearblocker.comp bengt@debian:~/linuxcnc$ halcompile --compile gearblocker.comp make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae' CC [M] /tmp/tmpciwS6W/gearblocker.o gearblocker.comp: In function ‘_’: gearblocker.comp:36:1: error: duplicate case value gearblocker.comp:27:1: error: previously used here gearblocker.comp:39:1: error: duplicate case value gearblocker.comp:27:1: error: previously used here gearblocker.comp:42:6: error: expected expression before ‘else’ gearblocker.comp:42:6: error: ‘else’ without a previous ‘if’ gearblocker.comp:42:10: error: expected expression before ‘:’ token gearblocker.comp:46:1: error: implicit declaration of function ‘min_speed’ [-Werror=implicit-function-declaration] gearblocker.comp:46:1: error: implicit declaration of function ‘max_speed’ [-Werror=implicit-function-declaration] gearblocker.comp:47:23: error: ‘spindle_speed_’ undeclared (first use in this function) gearblocker.comp:47:23: note: each undeclared identifier is reported only once for each function it appears in gearblocker.comp:23:5: warning: unused variable ‘i’ [-Wunused-variable] cc1: some warnings being treated as errors make[4]: *** [/tmp/tmpciwS6W/gearblocker.o] Fel 1 make[3]: *** [_module_/tmp/tmpciwS6W] Fel 2 make[2]: *** [sub-make] Fel 2 make[1]: *** [all] Fel 2 make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae' make: *** [modules] Fel 2 bengt@debian:~/linuxcnc$