Results 1 to 10 of 10

Thread: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

  1. #1
    Join Date
    Feb 2009
    Location
    Concordia, MO, USA
    Posts
    156

    Question netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    I'm running 13.1 x86_64, trying to build netatop. The http://www.atoptool.nl/downloadnetatop.php instructions say that kernel-devel and zlib-devel are requirements, and I have them installed, as well as kernel-desktop-devel; but when I make, I get this error:
    Code:
    $make
    ./mkversion
    cd module; make
    make[1]: Entering directory `/home/leslie/Downloads/Packages/Non-RPMs/Linux/NetATop/netatop-0.4/module'
    echo start the make
    start the make
    make -C /lib/modules/3.11.6-4-desktop/build M=/home/leslie/Downloads/Packages/Non-RPMs/Linux/NetATop/netatop-0.4/module modules
    make: Entering an unknown directory
    make: *** /lib/modules/3.11.6-4-desktop/build: No such file or directory.  Stop.
    make: Leaving an unknown directory
    make[1]: *** [netatop.ko] Error 2
    make[1]: Leaving directory `/home/leslie/Downloads/Packages/Non-RPMs/Linux/NetATop/netatop-0.4/module'
    make: *** [all] Error 2
    I ran zypper search to see what provides this, and I get
    Code:
    $zypper se --provides /lib/modules/3.11.6-4-desktop
    Loading repository data...
    Reading installed packages...
    
    S | Name           | Summary                          | Type
    --+----------------+----------------------------------+--------
    i | kernel-desktop | Kernel optimized for the desktop | package
    but
    Code:
    $rpm -q kernel-desktop-devel --filesbypkg|grep /lib/modules/3\.11\..*-desktop/
    kernel-desktop-devel      /lib/modules/3.11.10-21-desktop/build
    kernel-desktop-devel      /lib/modules/3.11.10-21-desktop/source
    kernel-desktop-devel      /lib/modules/3.11.10-25-desktop/build
    kernel-desktop-devel      /lib/modules/3.11.10-25-desktop/source
    does not contain this directory. Querying without --filesbypkg shows
    Code:
    $rpm -q kernel-desktop-devel
    kernel-desktop-devel-3.11.10-21.1.x86_64
    kernel-desktop-devel-3.11.10-25.1.x86_64
    and zypper search --provides tells me
    Code:
    $zypper se --provides kernel-desktop-devel-3.11.6.4
    Loading repository data...
    Reading installed packages...
    No packages found.
    Is there a way for me to install some backlevel kernel-desktop-devel package to obtain the required directory and its contents?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,202
    Blog Entries
    15

    Default Re: netatop build fails, missing/lib/modules/3.11.6-4-desktop/build

    On Mon 22 Dec 2014 05:26:02 AM CST, jlturriff wrote:


    I'm running *13.1 x86_64*, trying to build *netatop*. The
    http://www.atoptool.nl/downloadnetatop.php instructions say that
    *kernel-devel* and *zlib-devel* are requirements, and I have them
    installed, as well as *kernel-desktop-devel*; but when I *make*, I get
    this error:

    Code:
    --------------------

    *$make*
    ./mkversion
    cd module; make
    make[1]: Entering directory
    `/home/leslie/Downloads/Packages/Non-RPMs/Linux/NetATop/netatop-0.4/module'
    echo start the make start the make
    make -C /lib/modules/3.11.6-4-desktop/build
    M=/home/leslie/Downloads/Packages/Non-RPMs/Linux/NetATop/netatop-0.4/module
    modules make: Entering an unknown directory *make:
    *** /lib/modules/3.11.6-4-desktop/build: No such file or directory.
    Stop.* make: Leaving an unknown directory make[1]: *** [netatop.ko]
    Error 2 make[1]: Leaving directory
    `/home/leslie/Downloads/Packages/Non-RPMs/Linux/NetATop/netatop-0.4/module'
    make: *** [all] Error 2
    --------------------


    I ran *zypper search* to see what provides this, and I get

    Code:
    --------------------

    *$zypper se --provides /lib/modules/3.11.6-4-desktop*
    Loading repository data...
    Reading installed packages...

    S | Name | Summary | Type
    --+----------------+----------------------------------+--------
    i | kernel-desktop | Kernel optimized for the desktop | package

    --------------------


    but

    Code:
    --------------------

    *$rpm -q kernel-desktop-devel
    --filesbypkg|grep /lib/modules/3\.11\..*-desktop/*
    kernel-desktop-devel /lib/modules/3.11.10-21-desktop/build
    kernel-desktop-devel /lib/modules/3.11.10-21-desktop/source
    kernel-desktop-devel /lib/modules/3.11.10-25-desktop/build
    kernel-desktop-devel /lib/modules/3.11.10-25-desktop/source
    --------------------


    does not contain this directory. Querying without* --filesbypkg* shows

    Code:
    --------------------

    *$rpm -q kernel-desktop-devel*
    kernel-desktop-devel-3.11.10-21.1.x86_64
    kernel-desktop-devel-3.11.10-25.1.x86_64

    --------------------


    and* zypper search --provides *tells me

    Code:
    --------------------

    $ZYPPER SE --PROVIDES KERNEL-DESKTOP-DEVEL-3.11.6.4[/B]
    LOADING REPOSITORY DATA...
    READING INSTALLED PACKAGES...
    [B]NO PACKAGES FOUND.
    --------------------


    Is there a way for me to install some backlevel kernel-desktop-devel
    package to obtain the required directory and its contents?


    Hi
    More of an issue with the makefiles and where you are and the
    kernel-source...

    I'm building as a kmp and netatop package for you at the moment,
    working fine on openSUSE 13.2. Just need to get a working systemd
    service....

    Should have something available for you later today for 13.1.

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,202
    Blog Entries
    15

    Default Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Hi
    Once finished building here;
    https://build.opensuse.org/package/s...ESTING/netatop

    Should be a package here built for the latest 13.1 kernel;
    http://download.opensuse.org/reposit...SE_13.1_Update

    You need to install the netatop and netatop-kmp-your_flavor (default or desktop) for your kernel, then;

    Code:
    modprobe netatop
    systemctl start netatopd.service
    systemctl status netatopd.service
    systemctl enable netatopd.service
    Both the module will be loaded at boot and the service started...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #4
    Join Date
    Feb 2009
    Location
    Concordia, MO, USA
    Posts
    156

    Default Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Once finished building here;
    https://build.opensuse.org/package/s...ESTING/netatop

    Should be a package here built for the latest 13.1 kernel;
    http://download.opensuse.org/reposit...SE_13.1_Update

    You need to install the netatop and netatop-kmp-your_flavor (default or desktop) for your kernel, then;

    Code:
    modprobe netatop
    systemctl start netatopd.service
    systemctl status netatopd.service
    systemctl enable netatopd.service
    Both the module will be loaded at boot and the service started...
    Wow! Thanks for the quick fix! So, is there in fact anything wrong with the 13.1 kernel-desktop-devel package?

  5. #5

    Default Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Quote Originally Posted by jlturriff View Post
    So, is there in fact anything wrong with the 13.1 kernel-desktop-devel package?
    No.
    You just seem to have kernel-desktop-3.11.6 installed, but not the matching kernel-desktop-devel-3.11.6.

    If you either installed the latter or removed the former, it should probably work.
    You can use YaST's "Versions" tab for this, or specify the version to zypper like you did earlier.

    But: 3.11.6-4 is _not_ the same as 3.11.6.4 .
    Run "zypper se -s kernel-desktop" to see all available versions, for both kernel-desktop and kernel-desktop-devel...

  6. #6
    Join Date
    Feb 2009
    Location
    Concordia, MO, USA
    Posts
    156

    Default Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Quote Originally Posted by wolfi323 View Post
    No.
    You just seem to have kernel-desktop-3.11.6 installed, but not the matching kernel-desktop-devel-3.11.6.

    If you either installed the latter or removed the former, it should probably work.
    You can use YaST's "Versions" tab for this, or specify the version to zypper like you did earlier.

    But: 3.11.6-4 is _not_ the same as 3.11.6.4 .
    Run "zypper se -s kernel-desktop" to see all available versions, for both kernel-desktop and kernel-desktop-devel...
    Okay; subtle difference there, 6-4 vs 6.4. :-)

  7. #7
    Join Date
    Feb 2009
    Location
    Concordia, MO, USA
    Posts
    156

    Default Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Once finished building here;
    https://build.opensuse.org/package/s...ESTING/netatop

    Should be a package here built for the latest 13.1 kernel;
    http://download.opensuse.org/reposit...SE_13.1_Update

    You need to install the netatop and netatop-kmp-your_flavor (default or desktop) for your kernel, then;

    Code:
    modprobe netatop
    systemctl start netatopd.service
    systemctl status netatopd.service
    systemctl enable netatopd.service
    Both the module will be loaded at boot and the service started...
    I successfully installed your package for 13.1, but it fails when I try to start it. According to journalctl -xn, netatop is missing; and looking at the list of files in your package, indeed, there is only netatopd there.

    Code:
    #journalctl -xn
    -- Subject: Unit netatopd.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit netatopd.service has begun starting up.
    Dec 23 11:52:37 pinto systemd[5441]: Failed at step EXEC spawning /usr/sbin/netatop: No such file or directory
    -- Subject: Process /usr/sbin/netatop could not be executed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/641257651c1b4ec9a8624d7a40a9e1e7
    --
    -- The process /usr/sbin/netatop could not be executed and failed.
    --
    -- The error number returned while executing this process is 2.
    Dec 23 11:52:37 pinto systemd[1]: netatopd.service: control process exited, code=exited status=203
    Dec 23 11:52:37 pinto systemd[1]: Failed to start Gather per-process statistics about network utilization.
    -- Subject: Unit netatopd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    --
    -- Unit netatopd.service has failed.
    --
    -- The result is failed.
    Dec 23 11:52:37 pinto systemd[1]: Unit netatopd.service entered failed state.
    Code:
     
    netatop - Kernel module to gather statistics for atop
    /usr/lib/modules-load.d/netatop.conf /usr/lib/systemd/system/netatopd.service /usr/sbin/netatopd /usr/sbin/rcnetatopd /usr/share/doc/packages/netatop /usr/share/doc/packages/netatop/ChangeLog /usr/share/man/man4/netatop.4.gz /usr/share/man/man8/netatopd.8.gz 8 files total

  8. #8

    Default Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Quote Originally Posted by jlturriff View Post
    I successfully installed your package for 13.1, but it fails when I try to start it. According to journalctl -xn, netatop is missing; and looking at the list of files in your package, indeed, there is only netatopd there.
    I suppose that's a typo in /usr/lib/systemd/system/netatopd.service.
    Try to open it in a text editor and change the ExecStart= line to say /usr/sbin/netatopd.

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,202
    Blog Entries
    15

    Default Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Quote Originally Posted by wolfi323 View Post
    I suppose that's a typo in /usr/lib/systemd/system/netatopd.service.
    Try to open it in a text editor and change the ExecStart= line to say /usr/sbin/netatopd.
    Hi
    Yup it was a typo.... fixed and uploaded to OBS...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  10. #10
    Join Date
    Feb 2009
    Location
    Concordia, MO, USA
    Posts
    156

    Thumbs up Re: netatop build fails, missing /lib/modules/3.11.6-4-desktop/build

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Yup it was a typo.... fixed and uploaded to OBS...
    My bad. As you can tell, I'm merely a somewhat knowledgable end-user when it comes to Linux.

    Thank you very much for providing OpenSuSE with the netatop component of atop.

Tags for this Thread

Posting Permissions

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