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

Thanks!

Question information

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

Have you looked here?

http://www.kernel.org/

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 :
#2

Check the include path that the Makefile attempts to use. Modern kernel headers' locations can be clued from a package search, e.g., http://packages.ubuntu.com/search?searchon=contents&keywords=modversions.h&mode=filename&suite=precise&arch=any .

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

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