non standart path to linux kernel source

  • gibus_92

    gibus_92 - 2006-08-12

    I use to build ndiswrapper rpm on SUSE 10.0 distribution with 2.6.13-15.11 kernel version

    I invoque the command " make rpm " and I get the following error message :

    • make all KVERS=2.6.13-15.11-default KSRC=/lib/modules/2.6.13-15.11-default/build
      make[1]: Entering directory /usr/src/packages/BUILD/ndiswrapper-1.23' make -C driver make[2]: Entering directory/usr/src/packages/BUILD/ndiswrapper-1.23/driver'
      Can't find kernel build files in /lib/modules/2.6.13-15.11-default/build;
      give the path to kernel build directory with
      KSRC=<path> argument to make
      make[2]: *** [prereq_check] Error 1

    Please consider that KSRC=/lib/modules/2.6.13-15.11-default/build is an erroneous path to linux kernel sources

    The right path shoud be :

    Hence, ndiswrapper.spec has to be patched :

    --- 2006-08-10 18:06:19.000000000 +0200
    +++ ndiswrapper.spec 2006-08-12 11:36:58.000000000 +0200
    @@ -4,7 +4,7 @@

    # Define kernel version if not already defined
    %{!?kernel: %define kernel %(uname -r)}
    -%{!?ksrc: %define ksrc /lib/modules/%{kernel}/build}
    +%{!?ksrc: %define ksrc /lib/modules/%{kernel}/source}
    %{!?_inst_dir: %define _inst_dir /lib/modules/%{kernel}/misc}

    %define _sbinrootdir /sbin

    • Giridhar Pemmasani

      Thanks; patch committed to svn.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks