Menu

0.8.3 compile error

2005-07-09
2013-04-15
  • Sune Mølgaard

    Sune Mølgaard - 2005-07-09

    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

     
    • Sheldon Lee Wen

      Sheldon Lee Wen - 2005-07-09

      Those are warnings, not errors. That should not stop you from compiling.

       
    • Sune Mølgaard

      Sune Mølgaard - 2005-07-11

      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

       
      • Sheldon Lee Wen

        Sheldon Lee Wen - 2005-07-11

        Please send your /usr/include/linux/input.h file to leewsb at hotmail.com

         
    • Sheldon Lee Wen

      Sheldon Lee Wen - 2005-07-11

      Oh, also please tell me what version of the linux kernel you are using.

       
    • Sheldon Lee Wen

      Sheldon Lee Wen - 2005-07-24

      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.

       

Log in to post a comment.