Find the answer to your Linux question:
Results 1 to 10 of 10
When applying a pair of patches to my zd1211rw wireless driver, I get the following error when issuing make and make install commands: make -C /lib/modules/2.6.31.5-127.fc12.i686/build M=/home/zach/Documents/compat-wireless-2010-10-05 modules make: *** ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    11

    make: *** [modules] Error 2

    When applying a pair of patches to my zd1211rw wireless driver, I get the following error when issuing make and make install commands:

    make -C /lib/modules/2.6.31.5-127.fc12.i686/build M=/home/zach/Documents/compat-wireless-2010-10-05 modules
    make: *** /lib/modules/2.6.31.5-127.fc12.i686/build: No such file or directory. Stop.
    make: *** [modules] Error 2

    and then when I go to the parent directory "/lib/modules/2.6.31.5-127.fc12.i686/" and ls -l, the "build" is flashing red. Not sure what is going on here, but it appears to be preventing make and make install from succeeding.

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Try to install kernel-headers and kernel-devel, this should fix that problem.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    11
    # yum install kernel-headers kernel-devel
    Loaded plugins: presto, refresh-packagekit
    Setting up Install Process
    Package kernel-headers-2.6.32.21-168.fc12.i686 already installed and latest version
    Package kernel-devel-2.6.32.21-168.fc12.i686 already installed and latest version
    Nothing to do

    2.6.32.21-168? That's different than the 2.6.31.5-127 in the module path that make is trying to use. Is this part of the problem?

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Depends on the kernel version that you have, but it could be.
    What do you get from
    Code:
    uname -a
    You might want to do a yum update to insure that all of your headers match your kernel version, updates your gcc and make, as well.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  5. #5
    Just Joined!
    Join Date
    Feb 2008
    Posts
    11
    Yes, just ran a yum update. How do I check headers versions? uname -a returns 2.6.31.5-127.fc12.i686 .

  6. #6
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    That would be what you're running right now.
    After a system update, do a reboot and run make for your patch.

    Post back on how it goes.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  7. #7
    Just Joined!
    Join Date
    Feb 2008
    Posts
    11
    Hey hey! Thanks for the help. The reboot fixed it and right now the make is ticking off the files.

    Nice Orin.

  8. #8
    Just Joined!
    Join Date
    Feb 2008
    Posts
    11
    Ok, make got a few minutes in and gave me this error instead:

    error: ‘struct mmc_host’ has no member named ‘max_segs’

    after

    drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c: In function ‘SetupHIFScatterSupport’

  9. #9
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Hi there... sorry about the delay!

    I'm kinds stuck here for a minute, but I'll be searching for info.
    Maybe someone else will pop in with better info in the meanwhile!

    Gimme a bit...
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  10. #10
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    MAy I ask why you are compiling this driver/patches anyway? It's been in the kernel since....kernel-2.6.18.
    Does that not work for you?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Posting Permissions

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