Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

non standart path to linux kernel source

Help
gibus_92
2006-08-12
2012-10-06
  • 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 :
    KSRC=/lib/modules/2.6.13-15.11-default/source

    Hence, ndiswrapper.spec has to be patched :

    --- ndiswrapper.spec.org 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

     
    • Thanks; patch committed to svn.