[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian 12: Failure to build ALPS kernel module



Hi,

I have a 10 year-old Dell E6230 laptop which I have updated regularly,
starting from Squeeze and have now updated to Bookworm.  Everything
seems to work except for the fact that a module fails to build for the
new kernel:

  Error! Bad return status for module build on kernel: 6.1.0-10-amd64 (x86_64)
  Consult /var/lib/dkms/psmouse/alps-1.3/build/make.log for more information.

In the log file it says

  /var/lib/dkms/psmouse/alps-1.3/build/src/alps.c:1821:9: error: implicit declaration of function ‘setup_timer’; did you mean ‘del_timer’? [-Werror=implicit-function-declaration]
   1821 |         setup_timer(&priv->timer, alps_flush_packet, (unsigned long)psmouse);
        |         ^~~~~~~~~~~
        |         del_timer

and a bit of peering around on the internet reveals that the function
'setup_timer' is called 'time_setup' for newer kernels.

The sources seem to be the ones being used since I got the laptop

  # ll -d /usr/src/psmouse-alps-1.3/
  drwxr-xr-x 3 loris loris 4096 Feb 11  2013 /usr/src/psmouse-alps-1.3/

So do I need a patched version of alps.c?

Cheers,

Loris

-- 
This signature is currently under constuction.


Reply to: