I modified scarakins a couple years ago and it was working well for me. A while back, after an upgrade (I'm not sure which version) halcompile started failing. I don't use this machine much so ignored it assuming it was a bug someone would eventually address. It doesn't seem to be the case. In fact the scarakins.c module that ships in the 2.9.2 still fails with error.
Code:
Compiling realtime scarakins.c
Linking scarakins.so
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script
collect2: error: ld returned 1 exit status
make: *** [/usr/share/linuxcnc/Makefile.modinc:123: scarakins.so] Error 1
There are a few forum posts about it but the answer usually seems to be, "Don't do that. Instead use userkins.comp as a template"
Ok, Now I'm trying to port my forward/inverse functions to the userkins template. I'm a terrible C programmer and I'm stuck. It doesn't seem to be a problem with the functions themselves, just getting variables initialized. Could someone help me fix my code? I've attached the current gypsykins.comp module.