2012/6/25 andy pugh <bodge...@gmail.com>:
>
> Try it and see what happens?

I need some help finding out, why am I receiving this error:
vie@ubuntu:~/linuxcnc-dev/src/emc/kinematics$ sudo comp --install nhckins.c
[sudo] password for vie:
make 
KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers
-C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
  CC [M]  /tmp/tmpvJHWwB/nhckins.o
/tmp/tmpvJHWwB/nhckins.c: In function ‘init_module’:
/tmp/tmpvJHWwB/nhckins.c:107: error: expected identifier before ‘(’ token
/tmp/tmpvJHWwB/nhckins.c:110: error: expected identifier before ‘(’ token
make[2]: *** [/tmp/tmpvJHWwB/nhckins.o] Error 1
make[1]: *** [_module_/tmp/tmpvJHWwB] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
make: *** [modules] Error 2
vie@ubuntu:~/linuxcnc-dev/src/emc/kinematics$

The lines it is complaining are:
106   result = hal_pin_float_new("nhckins.nhc-offset", HAL_IN,
107                              &(haldata->nhc_offset), comp_id);
108   if(result < 0) goto error;
109   result = hal_pin_float_new("nhckins.nozzle-offset", HAL_IN,
110                              &(haldata->nozzle_offset), comp_id);
111   if(result < 0) goto error;

I am implementing 2 HAL pins there.
I have done this before, so I suspect I am making some obviously
stupid mistake. Just can't understand, what exactly.

The whole module can be downloaded here:
http://www.cutting.lv/fileadmin/user_upload/nhckins.c

I would greatly appreciate, if anyone could point me to the cause of
the problem.
Thanks!

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to