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

Asked by Jim Howk on 2012-10-03

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
Last query:
Last reply:
Warren Hill (warren-hill) said : #1

Have you looked here?

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

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., .

Can you help with this problem?

Provide an answer of your own, or ask Jim Howk for more information if necessary.

To post a message you must log in.