Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Installing driver from 2002, header issues


    Hello to all scary Linux people!

    I am porting a Python program to Linux (which I'm a first time user of). The program uses ADAM modules for which I need the driver installed. My problem is compiling a file "usbserial.c" into "usbserial.o" in order to do makefile install.

    I've replaced the config.h with autoconf.h. I entered "sudo apt-get upgrade", though I don't know why. Now my src folder looks like this:


    ERROR MESSAGE from typing "gcc usbserial.c":
    In file included from usbserial.c 270:0:
    /usr/src/linux-headers-2.6.38-8-generic/include/linux/init.h :4:28: Fatal error
    :linux/compiler.h No such file or directory

    /usr/src/linux-headers-2.6.38-8-generic/include/linux/compiler.h does in fact exist.

    Thank you for any and all help.
    Last edited by sebastr; 06-16-2011 at 01:47 PM. Reason: SOLVED

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    .o is the commonly used suffix for 2.4 kernels.
    These are old. Or rather: ancient

    As kernel code has evolved since then, I donīt think one can easily compile a 2.4 module for a 2.6 kernel.

    On the good side: usbserial.ko is a standard kernelmodule.
    *Any* distribution has this.

    It should already be loaded, if you have a "usb to serial" device connected.
    Check with
    lsmod |grep serial
    If not, try:
    modprobe usbserial
    and watch dmesg and tail -f /var/log/syslog
    You must always face the curtain with a bow.

  3. #3
    Thanks for the reply, Irithori The commands seems helpful for the future.

    Turns out we didn't even need the driver (usb-to-serial device)! Starting to like this OS.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts