Find the answer to your Linux question:
Results 1 to 4 of 4
I'm trying to compile a driver and it's going into the kernel source to build modules, and I'm getting the error: Code: Building modules, stage 2. MODPOST 1 modules /bin/sh: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    8

    No modpost directory


    I'm trying to compile a driver and it's going into the kernel source to build modules, and I'm getting the error:
    Code:
      Building modules, stage 2.
      MODPOST 1 modules
    /bin/sh: scripts/mod/modpost: No such file or directory
    make[3]: *** [__modpost] Error 127
    make[2]: *** [modules] Error 2
    before it drops out of making the driver. All google helped with this was to check menuconfig and see "Enable loadable module support" was enabled. Another poster somewhere suggested copying a modpost dir from another distro would work, but I don't know if I like that (and I don't have another distro).

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    I'm not shure but maybe you can first try before compiling the driver:

    Code:
    cd /usr/src/linux-2.6.12.2
    make scripts/mod/modpost
    Replace the version number with your version.

    Regards

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    8
    Quote Originally Posted by Franklin52 View Post
    I'm not shure but maybe you can first try before compiling the driver:

    Code:
    cd /usr/src/linux-2.6.12.2
    make scripts/mod/modpost
    Replace the version number with your version.

    Regards
    Hm, that echoed some stuff before spitting out:
    Code:
    ccl: error: unrecognized command line option "-m"
    make: *** [scripts/mod/modpost] Error 1

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2007
    Posts
    8
    Solved it - I just needed the kernel-devel RPM
    Thanks!

Posting Permissions

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