Compile error Linux-3.0

Help
engywook
2011-09-07
2013-05-08
  • engywook

    engywook - 2011-09-07

    Hello

    First of all, thanks for making these drivers, I've had them working before and it was great to have the tablet buttons working.

    I've run into some trouble compiling them now for the 3.0 kernel. Is it supposed to work on 3.0? I'm now running archlinux on my T4220 but I'm not sure if I ran archlinux when I had the buttons working. Anyhow, here's the output from make:

    [fjbtndrv-2.2.1]$ make
    make  all-recursive
    make[1]: Entering directory `/home/engy/Downloads/fjbtndrv-2.2.1'
    Making all in src
    make[2]: Entering directory `/home/engy/Downloads/fjbtndrv-2.2.1/src'
    Making all in linux
    make[3]: Entering directory `/home/engy/Downloads/fjbtndrv-2.2.1/src/linux'
    make -C /lib/modules/3.0-ARCH/build M=/home/engy/Downloads/fjbtndrv-2.2.1/src/linux modules
    make[4]: Entering directory `/usr/src/linux-3.0-ARCH'
      CC [M]  /home/engy/Downloads/fjbtndrv-2.2.1/src/linux/fsc_btns.o
    In file included from include/linux/bitops.h:22:0,
                     from include/linux/kernel.h:17,
                     from /home/engy/Downloads/fjbtndrv-2.2.1/src/linux/fsc_btns.c:24:
    /usr/src/linux-3.0-ARCH/arch/x86/include/asm/bitops.h: In function ‘fscbtns_isr_do’:
    /usr/src/linux-3.0-ARCH/arch/x86/include/asm/bitops.h:319:2: error: use of memory input without lvalue in asm operand 1 is deprecated [-Werror]
    cc1: all warnings being treated as errors
    make[5]: *** [/home/engy/Downloads/fjbtndrv-2.2.1/src/linux/fsc_btns.o] Error 1
    make[4]: *** [_module_/home/engy/Downloads/fjbtndrv-2.2.1/src/linux] Error 2
    make[4]: Leaving directory `/usr/src/linux-3.0-ARCH'
    make[3]: *** [fsc_btns.ko] Error 2
    make[3]: Leaving directory `/home/engy/Downloads/fjbtndrv-2.2.1/src/linux'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/engy/Downloads/fjbtndrv-2.2.1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/engy/Downloads/fjbtndrv-2.2.1'
    make: *** [all] Error 2
    
    /usr/src/linux-3.0-ARCH/arch/x86/include/asm/bitops.h: In function ‘fscbtns_isr_do’:
    /usr/src/linux-3.0-ARCH/arch/x86/include/asm/bitops.h:319:2: error: use of memory input without lvalue in asm operand 1 is deprecated [-Werror]
    

    Is it supposed to use x86 bit operations even though I'm running x86_64?

    Cheers,
    Phyrre

     
  • Anonymous - 2011-09-11

    i was able to compile the for-linux branch cleaning on linux-3.0 can you confirm this error with the for-linux kernel driver.

    note, in newer OS's such as fedora 16 the daemons will not compile as the daemons rely on HAL, which is deprecated. robert has pushed a  very experimental udev based version to git.

     
  • engywook

    engywook - 2011-09-13

    Thanks for your reply. The for-linux driver? What's that?

     
  • engywook

    engywook - 2011-09-13

    tried to compile what I think is the linux module(from git):

    make -C /lib/modules/3.0-ARCH/build M=/home/engy/temp/fjbtndrv/src/linux modules
    make[1]: Entering directory `/usr/src/linux-3.0-ARCH'
      CC [M]  /home/engy/temp/fjbtndrv/src/linux/fsc_btns.o
    In file included from include/linux/bitops.h:22:0,
                     from include/linux/kernel.h:17,
                     from /home/engy/temp/fjbtndrv/src/linux/fsc_btns.c:24:
    /usr/src/linux-3.0-ARCH/arch/x86/include/asm/bitops.h: In function ‘fscbtns_isr_do’:
    /usr/src/linux-3.0-ARCH/arch/x86/include/asm/bitops.h:319:2: error: use of memory input without lvalue in asm operand 1 is deprecated [-Werror]
    cc1: all warnings being treated as errors
    make[2]: *** [/home/engy/temp/fjbtndrv/src/linux/fsc_btns.o] Error 1
    make[1]: *** [_module_/home/engy/temp/fjbtndrv/src/linux] Error 2
    make[1]: Leaving directory `/usr/src/linux-3.0-ARCH'
    make: *** [fsc_btns.ko] Error 2
    [linux]$ pwd
    /home/engy/temp/fjbtndrv/src/linux
    
     
  • katay

    katay - 2011-10-26

    I have the same problem:

    ~/Programs/fjbtndrv-2.2.1$ make
    make  all-recursive
    make[1]: Entering directory `/home/stefano/Programs/fjbtndrv-2.2.1'
    Making all in src
    make[2]: Entering directory `/home/stefano/Programs/fjbtndrv-2.2.1/src'
    Making all in linux
    make[3]: Entering directory `/home/stefano/Programs/fjbtndrv-2.2.1/src/linux'
    make -C /lib/modules/3.0.0-12-generic/build M=/home/stefano/Programs/fjbtndrv-2.2.1/src/linux modules
    make[4]: Entering directory `/usr/src/linux-headers-3.0.0-12-generic'
      CC [M]  /home/stefano/Programs/fjbtndrv-2.2.1/src/linux/fsc_btns.o
    In file included from include/linux/bitops.h:22:0,
                     from include/linux/kernel.h:17,
                     from /home/stefano/Programs/fjbtndrv-2.2.1/src/linux/fsc_btns.c:24:
    /usr/src/linux-headers-3.0.0-12-generic/arch/x86/include/asm/bitops.h: In function ‘fscbtns_isr_do’:
    /usr/src/linux-headers-3.0.0-12-generic/arch/x86/include/asm/bitops.h:319:2: error: use of memory input without lvalue in asm operand 1 is deprecated [-Werror]
    cc1: all warnings being treated as errors
    make[5]: *** [/home/stefano/Programs/fjbtndrv-2.2.1/src/linux/fsc_btns.o] Error 1
    make[4]: *** [_module_/home/stefano/Programs/fjbtndrv-2.2.1/src/linux] Error 2
    make[4]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic'
    make[3]: *** [fsc_btns.ko] Error 2
    make[3]: Leaving directory `/home/stefano/Programs/fjbtndrv-2.2.1/src/linux'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/stefano/Programs/fjbtndrv-2.2.1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/stefano/Programs/fjbtndrv-2.2.1'
    make: *** [all] Error 2
    
     
  • Jim

    Jim - 2011-11-19

    FWIW, it compiles for me on 3.0.7 with Slackware64 13.37.

     
  • Robert Gerlach

    Robert Gerlach - 2011-11-19

    It should be fixed in the 2.3 release. Please give it a try and report.

     
  • Jim

    Jim - 2011-11-19

    The 2.3 release compiles for me on Slackware 64 13.37 running 3.0.7.
    Having said that, when I load the module, I see this in the output of dmesg:
    input: Fujitsu tablet buttons as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:09/FUJ02BF:00/input/input25
    which seems good.

    But if I unload the module, I see
    Trying to free nonexistent resource <000000000000fd70-000000000000fd77>
    which seems bad.

    and if I then reload it I see
    input: Fujitsu tablet buttons as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:09/FUJ02BF:00/input/input26
    fujitsu-tablet FUJ02BF:00: region 0xfd70 busy
    fujitsu-tablet: probe of FUJ02BF:00 failed with error -16

    Now the tablet buttons are not working any more.  (Moral of the story: don't unload the module. :-)

    This is on a T900.

    Thoughts or ideas?  I'm happy to try out any patches you have.

     
  • Robert Gerlach

    Robert Gerlach - 2011-11-19

    Sorry! new package on the way…

     
  • katay

    katay - 2011-11-20

    With version 2.3.1 I can compile and install. Everything seems to work, thanks.

     
  • Jim

    Jim - 2011-11-21

    2.3.1 compiles and loads and unloads correctly for me.
    However, when I run fscd all I get is
    x11 initalisation failed

    Thoughts?

    Thanks.

     
  • Robert Gerlach

    Robert Gerlach - 2011-11-21

    fscd from 2.3.1? please rebuild with debug.

     
  • Jim

    Jim - 2011-11-21

    Yes, the 2.3.1 version.  WIth the 2.3.1 kernel module

    ./src/fscd
    Found XInputExtension 2.2 extension (141, 0, 0)
    Found XTEST 2.2 extension (142, 0, 0)
    Found RANDR 2.2 extension (149, 0, 0)
    Found DPMS 2.2 extension (132, 0, 0)
    searching tablet buttons device …
    … device Virtual core pointer
    … device Virtual core keyboard
    … device Virtual core XTEST pointer
    … device Virtual core XTEST keyboard
    … device Power Button
    … device Fujitsu FUJ02E3
    … device Video Bus
    … device Fujitsu FUJ02B1
    … device Power Button
    … device CNF8248
    … device fsc tablet buttons
    … device AT Translated Set 2 keyboard
    … device PS/2 Generic Mouse
    … device SynPS/2 Synaptics TouchPad
    … device Serial Wacom Tablet stylus
    … device Serial Wacom Tablet eraser
    … device Serial Wacom Tablet touch
    xinput device not found
    x11 initalisation failed

     
  • Robert Gerlach

    Robert Gerlach - 2011-11-21

    … device fsc tablet buttons

    It's the old name. Unload and remove "fsc_btns" and load "fujitsu-tablet", then it should work.

     
  • Jim

    Jim - 2011-11-22

    Argh.  I did have fujitsu_tablet loaded, but I didn't notice that fscd was still hanging around (and loaded).  Thanks for the help.
    It's all good now.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks