Results 1 to 5 of 5

Thread: Cpmpiling Driver (works fine in openSuSE)

  1. #1
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    Cpmpiling Driver (works fine in openSuSE)

    Hi all,

    I want to define my modem through compiling its driver. In openSuSE it works fine but in ubuntu compiling process didn't complete correctly because there are many missed header files.

    So could you please tell me what's wrong?

    Notes:
    * I'm using:
    Code:
    ubuntu 8.10
    gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2
    * In the attached files you'll find build log and driver source code.
    * Please be patient I've migrated from openSuSE a week ago.
    Attached Files Attached Files
    Last edited by mhdbnoimi; June 28th, 2009 at 05:22 AM.

  2. #2
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Cpmpiling Driver (works fine in openSuSE)

    It looks like you might have forgotten to attach the logs.

    By the way, have you already installed build-essential? If I recall correctly, it will help provide some of the missing header files.

  3. #3
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    Re: Cpmpiling Driver (works fine in openSuSE)

    sorry, now u can find the attachments

  4. #4
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    Re: Cpmpiling Driver (works fine in openSuSE)

    Do I need kernel source code for compiling this driver ? I just want a tip.

  5. #5
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    Re: Cpmpiling Driver (works fine in openSuSE)

    After installing kernel headers I got the following errors:

    Code:
    root@mbnoimi:~/Desktop/CNet/Modem/Linux/release# make all
    cd src/hamcore; make hamcore-release
    make[1]: Entering directory `/home/mbnoimi/Desktop/CNet/Modem/Linux/release/src/hamcore'
    cc -Wall -O -I /usr/include -I../inc   -c -o coredrv.o coredrv.c
    In file included from hamcore.h:38,
                     from coredrv.c:33:
    hamdefs.h:45:25: error: linux/config.h: No such file or directory
    hamdefs.h:89:8: warning: extra tokens at end of #endif directive
    In file included from coredrv.c:33:
    hamcore.h:39:27: error: linux/proc_fs.h: No such file or directory
    In file included from coredrv.c:33:
    hamcore.h:233: warning: ‘struct file’ declared inside parameter list
    hamcore.h:233: warning: its scope is only this definition or declaration, which is probably not what you want
    hamcore.h:261:8: warning: extra tokens at end of #endif directive
    coredrv.c:35:26: error: linux/module.h: No such file or directory
    coredrv.c:36:25: error: linux/delay.h: No such file or directory
    coredrv.c: In function ‘hamcore_init’:
    coredrv.c:54: error: ‘printk’ undeclared (first use in this function)
    coredrv.c:54: error: (Each undeclared identifier is reported only once
    coredrv.c:54: error: for each function it appears in.)
    coredrv.c:55: error: ‘schedule’ undeclared (first use in this function)
    coredrv.c:56: warning: implicit declaration of function ‘printk’
    coredrv.c:56: error: ‘KERN_DEBUG’ undeclared (first use in this function)
    coredrv.c:56: error: expected ‘)’ before string constant
    coredrv.c:59: error: ‘KERN_ALERT’ undeclared (first use in this function)
    coredrv.c:59: error: expected ‘)’ before string constant
    coredrv.c:64: error: expected ‘)’ before string constant
    coredrv.c:76: error: expected ‘)’ before string constant
    coredrv.c:86: error: expected ‘)’ before string constant
    coredrv.c:96: error: expected ‘)’ before string constant
    coredrv.c:106: error: expected ‘)’ before string constant
    coredrv.c:117: error: expected ‘)’ before string constant
    coredrv.c: In function ‘init_module’:
    coredrv.c:127: warning: implicit declaration of function ‘printk’
    coredrv.c: In function ‘hamdelay’:
    coredrv.c:138: warning: implicit declaration of function ‘mdelay’
    make[1]: *** [coredrv.o] Error 1
    make[1]: Leaving directory `/home/mbnoimi/Desktop/CNet/Modem/Linux/release/src/hamcore'
    make: *** [all] Error 2

Tags for this Thread

Bookmarks

Posting Permissions

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