Cannot compile rs-422 serial driver. modversions.h file not found.

Asked by Jim Howk

USB --> RS-422 adapter for sending and receiving data over a serial connection.
Manufacturer sent Linux source code for the driver, but relies on old 2.4.x or 2.6.x kernel header files that are no longer available.
I need help getting the driver to compile with the new 3.x.x kernel on an Acer ASPIRE ONE 722 netbook.

AMD Dual-Core C60 1.333GHz
2GB Ram
Ubuntu 12.04

CLI make compilation error:

user@Puddle-Jumper:~$ cd /home/user/Downloads/9_Linux/ftdi_sio/
user@Puddle-Jumper:~/Downloads/9_Linux/ftdi_sio$ make
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/3.2.17/build/include -D__SMP__ -DSMP -DMODVERSIONS -include /lib/modules/3.2.17/build/include/linux/modversions.h -I/usr/src/linux-3.2.17/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c
cc1: fatal error: /lib/modules/3.2.17/build/include/linux/modversions.h: No such file or directory
compilation terminated.
make: *** [ftdi_sio.o] Error 1

I can upload source files if needed. (provided someone tells me where to upload to).

Files are:
* Linux USB Viewer_x86_64.tar.tar
* Linux_x86_64_drivers.tar.tar
* usbview_x86_64

Unpacked folder:
* ftdi_sio

ftdi_sio contents:
* ftdi_sio.c
* ftdi_sio.h
* Makefile
* Rules.make


Question information

English Edit question
Ubuntu gcc-defaults Edit question
No assignee Edit question
Solved by:
Jim Howk
Last query:
Last reply:
Revision history for this message
Warren Hill (warren-hill) said :

Have you looked here?

You can get the full source for 2.6,34.13 the header file should be in there somewhere

Revision history for this message
Daniel T Chen (crimsun) said :

Check the include path that the Makefile attempts to use. Modern kernel headers' locations can be clued from a package search, e.g., .

Revision history for this message
Jim Howk (howkj1) said :

Thanks for all the tips on places to look and double check.