evtest.c: In function `main':
evtest.c:111: warning: implicit declaration of function `exit'
evtest.c:168: error: `EV_SYN' undeclared (first use in this function)
evtest.c:168: error: (Each undeclared identifier is reported only once
evtest.c:168: error: for each function it appears in.)
make[2]: *** [evtest.o] Error 1
Any ideas?
Best regards,
Sune
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your kernel header that are installed in /usr/include/linux are old. You should update your /usr/include/linux/input.h file with the one from your linux kernel source directory (probably something under /usr/src/linux/include/.....)
Also, if you go and download 0.8.4-rc1 and compile that evtest is no longer made by default since you don't really need it for lineakd, only for finding out information about a keyboard.
Cheers,
Sheldon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
gcc -DHAVE_CONFIG_H -DCONFDIR=\"/usr/local/etc\" -DPLUGINDIR=\"/usr/local/lib/lineakd/plugins\" -I. -I. -I.. -I../lineak -I. -I.. -I.. -I../lineak -I../lineakd -I. -I.. -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -march=athlon-xp -O3 -Wformat-security -Wmissing-format-attribute -c `test -f 'evtest.c' || echo './'`evtest.c
evtest.c:36: warning: initialization discards qualifiers from pointer target type
evtest.c:36: warning: initialization discards qualifiers from pointer target type
evtest.c:36: warning: initialization discards qualifiers from pointer target type
evtest.c:36: warning: initialization discards qualifiers from pointer target type
evtest.c:37: warning: initialization discards qualifiers from pointer target type
evtest.c:37: warning: initialization discards qualifiers from pointer target type
evtest.c:37: warning: initialization discards qualifiers from pointer target type
evtest.c:37: warning: initialization discards qualifiers from pointer target type
...
Continues a fair bit with this error. How do I proceed?
Best regards,
Fjodor
Those are warnings, not errors. That should not stop you from compiling.
Correct. Do I feel stupid now :-)
The actual error occurs immediately afterwards:
evtest.c: In function `main':
evtest.c:111: warning: implicit declaration of function `exit'
evtest.c:168: error: `EV_SYN' undeclared (first use in this function)
evtest.c:168: error: (Each undeclared identifier is reported only once
evtest.c:168: error: for each function it appears in.)
make[2]: *** [evtest.o] Error 1
Any ideas?
Best regards,
Sune
Please send your /usr/include/linux/input.h file to leewsb at hotmail.com
Oh, also please tell me what version of the linux kernel you are using.
Your kernel header that are installed in /usr/include/linux are old. You should update your /usr/include/linux/input.h file with the one from your linux kernel source directory (probably something under /usr/src/linux/include/.....)
Also, if you go and download 0.8.4-rc1 and compile that evtest is no longer made by default since you don't really need it for lineakd, only for finding out information about a keyboard.
Cheers,
Sheldon.